BrightnessVolumeManager class

Manages device brightness and volume settings.

This class provides methods to get and set the device's brightness and volume, as well as control the screen's "stay on" status. It interfaces with the platform-specific implementation to perform the necessary operations.

Constructors

BrightnessVolumeManager()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getBrightness() Future<double>
Retrieves the current screen brightness.
getVolume() Future<double>
Retrieves the current volume level.
isScreenKeptOn() Future<bool>
Checks whether the screen is set to stay on.
keepScreenOn(bool status) Future<void>
Sets the screen to either stay on or turn off when idle.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resetCustomBrightness() Future<void>
Resets the custom brightness setting to the default system brightness.
setBrightness(double brightness) Future<void>
Sets the screen brightness to the specified value.
setVolume(double volume) Future<void>
Sets the system volume to the specified value.
toString() String
A string representation of this object.
inherited

Operators

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