I need an example in how to use the function.
Thanks
I need an example in how to use the function.
Thanks
To use Attention and the flashlight you need the 4.2.0 beta 1 SDK. And the only supported device is the f7x and variants. And in the sim, neither the f7x nor the f7 System 6 preview work. But this does work on a real f7x, with the alpha FW that has CIQ 4.2.0 (version 11.15). Understand the flashlight is on top of the bezel, and isn't the screen itself.
if(Attention has :hasFlashlightColor && Attention has :setFlashlightMode) { System.println("flashlight ok"); if(Attention.hasFlashlightColor(Attention.FLASHLIGHT_COLOR_WHITE)) { System.println("Flashlight white ok"); System.println("Result="+Attention.setFlashlightMode(Attention.FLASHLIGHT_MODE_ON,{:color => Attention.FLASHLIGHT_COLOR_WHITE})); } }
Update: I wasn't looking in the right pace to see the flashlight state in the sim, and it only shows if it's red or green
Thank you for your reply.
How can I contact you to get your support?
post in the forum. I'm just another 3rd party dev.
Do you have any social media accounts? Like twitter instagram,…
Yes, but I don't use them for CIQ support. I don't work for Garmin. Just post questions here. Lots of folks here to answer questions