12-01-2020 03:58
12-01-2020 03:58
I'm playing around with clock faces and would like to add a battery indicator. Is there a Fitbit standard image for a battery? Is there an example on how to fill the image based on the percentage of battery life?
thanks
Answered! Go to the Best Answer.
Best Answer12-08-2020 05:52
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.
12-08-2020 05:52
We don't currently provide the images, but you could screenshot from the simulator and match the positioning.
You can adjust a <rect> width to match the required size based on the battery percentage.
Let's say our battery fill is 30px and the charge level is 90%. rect.width = (30 / 100) * 90
12-08-2020 05:52
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.
12-08-2020 05:52
We don't currently provide the images, but you could screenshot from the simulator and match the positioning.
You can adjust a <rect> width to match the required size based on the battery percentage.
Let's say our battery fill is 30px and the charge level is 90%. rect.width = (30 / 100) * 90