Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DisplayBrightnessValue not working on latest 6.1 SDK

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);

Best Answer
0 Votes
2 REPLIES 2

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.

Peter McLennan
Gondwana Software
Best Answer
0 Votes

Not sure either... documentation is a bit vague. @JonFitbit  any thoughts on this? https://dev.fitbit.com/build/reference/device-api/display/

Best Answer
0 Votes