Hi guys,
I just wanted to write a Torch app for my Ionic but unfortunately with the auto dim function it doesn't really work well. Do you guys know if there is a possibility to change the brightness to MAX when I am starting my Torch App? And of course setting it back to AUTO when I quit the App?
Thanks in advance
Answered! Go to the Best Answer.
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.
It's not in the current beta, but it will be available as:
import { display } from "display";
// force the screen brightness to maximum (100%)
display.brightnessOverride = 1.0;
// stop forcing the brightness and let the system manage it
display.brightnessOverride = undefined;
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.
It's not in the current beta, but it will be available as:
import { display } from "display";
// force the screen brightness to maximum (100%)
display.brightnessOverride = 1.0;
// stop forcing the brightness and let the system manage it
display.brightnessOverride = undefined;
The command "display.brightnessOverride" is now available in the Display API, but it seems like it is not working for me. Am I doing something wrong or is the command just not working for now?
Below is a snippet of the code.
display.autoOff = false;
display.on = true;
display.brightnessOverride = 1.0;
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.
Sorry, it's in the documentation now, but you need the new firmware too.
Best Answer@Henry727: To change the brightness of your Ionic, just open the Settings and the first entry is the brightness. Just tap on it, the available values are: Dim, Normal, Max and Auto.
This forum is for Developers, if you have further questions please change into the following forum:https://community.fitbit.com/t5/Ionic/bd-p/ionic
Best AnswerFor some reason, when I import the display directly above the code, it works, but of not, it doesn't. This is what worked for me (I need the brightness to be dim, but you can change that to 'max'):
import { display } from "display";
display.autoOff = false;
display.on = true;
display.brightnessOverride = "dim";
Best AnswerHi, I tap on it but it doesn't change. I tap into other features and change. What could be the problem?
Best Answer