display_brightness_android 1.0.0
display_brightness_android: ^1.0.0 copied to clipboard
Android implementation of the display_brightness plugin.
display_brightness_android #
The Android implementation of display_brightness.
Usage #
This package is endorsed, which means you can simply use display_brightness normally. This package will be automatically included in your app when you do, so you do not need to add it to your pubspec.yaml.
However, if you import this package to use any of its APIs directly, you should add it to your pubspec.yaml as usual.
Implementation Details #
- Uses
WindowManager.LayoutParams.screenBrightnessfor setting brightness - Uses
ContentObserveronSettings.System.SCREEN_BRIGHTNESSfor change observation - Native bindings generated via jnigen (direct JNI/FFI, no method channels)
- No permissions required