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
-
current
→ Future<
double> -
Returns current screen brightness which is current screen brightness value.
no setter
-
hasChanged
→ Future<
bool> -
Returns boolean to identify brightness has changed with this plugin.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
isAnimate
→ Future<
bool> -
Returns boolean to identify will animate brightness transition
no setter
-
isAutoReset
→ Future<
bool> -
Returns boolean to identify will auto reset when application lifecycle
changed.
no setter
-
onCurrentBrightnessChanged
→ Stream<
double> -
Returns stream with screen brightness changes including
ScreenBrightness.setScreenBrightness
,ScreenBrightness.resetScreenBrightness
, 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 which is set when application is started.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resetScreenBrightness(
) → Future< void> - Reset screen brightness with (Android)-1 or (iOS)system brightness value.
-
setAnimate(
bool isAnimate) → Future< void> - Set animate when brightness transition
-
setAutoReset(
bool isAutoReset) → Future< void> - Set auto reset when application lifecycle changed
-
setScreenBrightness(
double brightness) → Future< void> - Set 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