RealVolume class Null safety

Constructors

RealVolume()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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

Static Properties

onRingerModeChanged Stream<RingerMode>
A listener that triggers a RingerMode event when device's ringer mode has changed. [...]
read-only
onVolumeChanged Stream<VolumeObj>
A listener that triggers a VolumeObj event when volumeLevel of any streamType has changed. [...]
read-only

Static Methods

getAudioMode() Future<AudioMode?>
Returns current audioMode. [...]
getCurrentVol(StreamType streamType) Future<double?>
Returns current volume for a streamType in percentage(from 0.0 to 1.0). [...]
getMaxVol(StreamType streamType) Future<int?>
Returns max volume for a streamType [...]
getMinVol(StreamType streamType) Future<int?>
Returns min volume for a streamType [...]
getRingerMode() Future<RingerMode?>
Returns current ringerMode. [...]
isPermissionGranted() Future<bool?>
Returns the status of the Do not Disturb access permission for this app. [...]
openDoNotDisturbSettings() Future<bool?>
Opens Do not Disturb access permission applications list. [...]
setAudioMode(AudioMode audioMode) Future<bool?>
Changes the audioMode of the device. [...]
setRingerMode(RingerMode ringerMode, {bool redirectIfNeeded = true}) Future<bool?>
Changes the ringerMode of the device. [...]
setVolume(double volumeLevel, {StreamType streamType = StreamType.SYSTEM, bool showUI = false}) Future<bool?>
Changes the volumeLevel of the device for a specific streamType. You can also open the default device ui using showUI. [...]