06-11-2022 21:53
06-11-2022 21:53
Hi everyone,
I am currently working on ver1.5/2.0 version of my first watchface for Versa and Sense. One of the features I want to introduce is for the watchface to detect the display brightness in order to adjust the background accordingly. While reviewing the Display API page, there is a property named Display Brightness Value which is supposed to return./provide a string, however it does not appear to work. Any thoughts on what would be the right approach to acquire such value?
Below is a simple JS snippet I attempted:
import {display} from "display";
console.log(display.DisplayBrightnessValue);
06-11-2022 22:41
06-11-2022 22:41
I see what you mean. If forced to guess, I'd say that DisplayBrightnessValue is an enum type that specifies the values that can be used for the brightnessOverride property.
06-12-2022 20:34
06-12-2022 20:34
Not sure either... documentation is a bit vague. @JonFitbit any thoughts on this? https://dev.fitbit.com/build/reference/device-api/display/