09-02-2017 07:37
09-02-2017 07:37
Hello,
I've read the documentation for the physical buttons here
https://dev.fitbit.com/guides/user-interface/javascript/#using-the-physical-buttons
but just wanted to check if they are available to clock faces, and any limitations (eg not allowed to override the back button)
Thanks,
NiVZ
Answered! Go to the Best Answer.
09-02-2017 08:00
09-02-2017 08:00
Jon wrote the following in response to another thread:
"Clocks do not support buttons, but you can use touch events to navigate to a different screen within a clock."
Also, the glossary says this for "clock face":
"Clock faces are a special type of app that are primarily used to display the current date and time. Each device has a single clock face installed at any time, and interaction is limited to touch events only."
I'd love for some clarity on which sorts of touch events are available and why they might only be used to navigate to other screens within the clock app. It seems that if a clock app could detect touch events, it could emulate a button. Does FitBit handle touch detection and screen nav in clock apps?
09-02-2017 08:00
09-02-2017 08:00
Jon wrote the following in response to another thread:
"Clocks do not support buttons, but you can use touch events to navigate to a different screen within a clock."
Also, the glossary says this for "clock face":
"Clock faces are a special type of app that are primarily used to display the current date and time. Each device has a single clock face installed at any time, and interaction is limited to touch events only."
I'd love for some clarity on which sorts of touch events are available and why they might only be used to navigate to other screens within the clock app. It seems that if a clock app could detect touch events, it could emulate a button. Does FitBit handle touch detection and screen nav in clock apps?
09-03-2017 10:06
09-03-2017 10:06
Our touch events are currently prefixed "mouse", but they're really "touch". We have `onmouseup`, `onmousedown` and `onmousemove`.
https://dev.fitbit.com/guides/user-interface/javascript/#touch-events
Screen navigation (at the moment), is really only showing and hiding a container element in SVG.
There really is no difference between an app and a clock face, other than:
I hope that helps.
10-18-2017 13:20
10-18-2017 13:20
I want to change the view of the watchface.
For this I use the mouseup event, but the view also switches if I swipe to the menu.
How can I realize, that the view only changes if I don't go to the menu etc.?
10-18-2017 16:06
10-18-2017 16:06
Use the onclick event instead.
10-19-2017 12:43
10-19-2017 12:43
Thanks, then I got it wrong. Thought there were only mouse events