Is it possible to use the Vivoactive 3's side swipe?

hi,

(Sorry if it was asked before, didn't find a clear answer)
Is it possible to detect and use the side swipe in Vivoactive 3? What about swiping Up or Down, from a post I saw looks like it's not possible to detect at all. Is it true?

Thanks!
  • Former Member
    Former Member
    It should be possible to detect swipes from left, right, up, and down in all views of a watch app and under certain views in a widget. I believe that a swipe up and down can not be detected on base view of a widget, but pushing another view on top of the base view should register swipes. In both cases a swipe right will also trigger a back event, and up and down swipes will trigger next and previous page events, respectively.
  • the "side swipe" (the actual side of the watch) shows up like swipe_up and swipe_down on the va3. There's no way to tell if it's a screen swipe or on the side of the watch that I've seen, BTW.

    As was posted, you won't see this in the main view of a widget (you need another view), as it's used to move through the widget loop, but can be used anywhere in watch-apps.
  • Thanks for the replies. Just to further clarify - I'm trying in an app (not widget), and I don't get swipe messages for this device in the simulator or in the actual device. I do get page up / down when swiping. In devices such as FR 630 I do get swipe events. Do you think I should in general not attempt to capture swipe events? And if not, is there a way to get the swipe speed?
  • What's your delegate look like? (you can post it here). There's no way to do the case swipe in the sim.

    The case side swipe can be disabled on the watch, but the speed can't be adjusted.

  • Former Member
    Former Member
    Thanks for the replies. Just to further clarify - I'm trying in an app (not widget), and I don't get swipe messages for this device in the simulator or in the actual device. I do get page up / down when swiping.

    What happens if you return false from the page event handlers? I would think it should then drop to the swipe event handler.
  • eran - You want to return true (in fact for any input you handled and don't want any native handling) . Returning false tells the FW to perform the native behavior, and not doing a return at all can have an unspecified effect based on the input and device

    If you want to see a working watch-app on the va3 that does a bunch of things, try something like my Hike2 app. Up/down swipes (screen or side) scroll through the pages when you are recording, and the right swipe exits the app if you're not recording, or marks waypoints if you are recording. The button is used to start/stop recording. Long press of the screen is the menu.

    If you've been asking about right/left swipes on the va3 (not the slider on the side of the case), right swipe is seen as onBack() (it's used that way in native stuff too. Left swipe is used in native apps to get to the widget loop.