Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[@nativescript/brightness] Obtained values bigger than allowed #536

Open
guillemc23 opened this issue Oct 9, 2023 · 0 comments
Open

[@nativescript/brightness] Obtained values bigger than allowed #536

guillemc23 opened this issue Oct 9, 2023 · 0 comments

Comments

@guillemc23
Copy link
Contributor

guillemc23 commented Oct 9, 2023

Manually setting my brightness to a 100% using the system UI and just running this on an Android device:

const brightness = new Brightness();
console.log(brightness.get());
console.log(brightness.getNative());

returns the following values:

JS: 803
JS: 2047

Aren't the allowed values from 0-100 and 0-255? (from the docs)

As a consequence, setting the value programatically to the highest allowed value (100) in my case results in the following brightness indicator, which should be on 100%:

This might probably be related 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant