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.
Best AnswerJon 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?
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?
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
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.
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.?
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
Use the onclick event instead.
Best Answer