MethodChannelScreenBrightness class

Implementation of screen brightness platform interface

Inheritance

Properties

application → Future<double>
Returns application screen brightness value.
no setteroverride
canChangeSystemBrightness → Future<bool>
Return can change system screen brightness
no setteroverride
hasApplicationScreenBrightnessChanged → Future<bool>
Returns boolean to identify application screen brightness has changed by this plugin.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
isAnimate → Future<bool>
Returns boolean to identify will animate when application screen brightness changed.
no setteroverride
isAutoReset → Future<bool>
Returns boolean to identify will auto reset to system brightness when application lifecycle changed.
no setteroverride
onApplicationBrightnessChanged → Stream<double>
Old API on onApplicationScreenBrightnessChanged
no setter
onApplicationScreenBrightnessChanged → Stream<double>
Returns stream with application screen brightness changes including ScreenBrightness.setApplicationScreenBrightness, ScreenBrightness.resetApplicationScreenBrightness, system control center or system setting.
no setteroverride
onSystemScreenBrightnessChanged → Stream<double>
Returns stream with system screen brightness changes including ScreenBrightness.setSystemScreenBrightness, system control center or system setting.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
system → Future<double>
Returns system screen brightness.
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resetApplicationScreenBrightness() → Future<void>
Reset application screen brightness with (Android) -1 or (iOS)system brightness value.
override
setAnimate(bool isAnimate) → Future<void>
Set will animate when application screen brightness changed.
override
setApplicationScreenBrightness(double brightness) → Future<void>
Set application screen brightness with double value.
override
setAutoReset(bool isAutoReset) → Future<void>
Set auto reset when application lifecycle changed
override
setSystemScreenBrightness(double brightness) → Future<void>
Set system screen brightness with double value.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited