ScreenBrightnessPlatform class abstract

Screen brightness platform interface which is implemented with federated plugins

Inheritance
  • Object
  • PlatformInterface
  • ScreenBrightnessPlatform
Implementers

Constructors

ScreenBrightnessPlatform()
Default constructor for ScreenBrightnessPlatform

Properties

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

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.
setAnimate(bool isAnimate) → Future<void>
Set will animate when application screen brightness changed.
setApplicationScreenBrightness(double brightness) → Future<void>
Set application screen brightness with double value.
setAutoReset(bool isAutoReset) → Future<void>
Set auto reset when application lifecycle changed
setSystemScreenBrightness(double brightness) → Future<void>
Set system screen brightness with double value.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

instance ↔ ScreenBrightnessPlatform
The default instance of ScreenBrightnessPlatform to use.
getter/setter pair