What does BehaviorDelegate.onNextMode() do?

In another thread we were just talking about swipe left and what behavior it triggers.

When looking at the behaviors more closely I saw that there is an BehaviorDelegate.onNextMode(). Does anyone know what this is for? I could not find any simulator.json where this behavior is mapped to anything.

Top Replies

All Replies

  • Try the edge devices, I think the difference (i.e in onNextMode and onNextPage) is between horizontal and vertical swipes.

  • If you look at handheld outdoor devices like the GPSMAP devices, you'll see there's more than 5 buttons and there are things you won't see on a watch when it comes to input.

  • Interestingly, in the sim, none of the gpsmap66 keys trigger onNextMode or onPreviousMode. Same goes for oregon7xx and rino7xx (none of the physical buttons on these 2 devices seem to work in CIQ, as they seem to be too specialized - like volume controls or push-to-talk). I took a quick look at the manuals for those and didn't see any reference to "next mode" or "previous mode" keys although it's possible that I missed it.

    I tried edge_1000 in both landscape and portrait mode, and I couldn't trigger onNextMode or onPreviousMode with any kind of swipe.

    Perhaps it's relevant that all the other behaviours seem to be mapped to keys or touch gestures in simulator.json. e.g. search for "nextPage", "previousPage", "onMenu", "onSelect", and "onBack" - you'll find many hits in simulator.json for various devices. (Don't ask me why "nextPage" and "previousPage" omit the "on" prefix". There's no mention of nextMode, onNextMode, previousMode, or onPreviousMode in simulator.json.

    So at least from the sim's pov, maybe onNextMode and onPreviousMode don't exist? Searching for those CIQ functions on the internet, I don't see any examples except for generic boilerplate that doesn't really seem to do anything.

  • So at least from the sim's pov, maybe onNextMode and onPreviousMode don't exist?

    Yes, that was the point I was trying to make.

    Did anyone here ever use these behaviors?