volumeGetMaxLevel static method
A method to get the max volume level from the device.
streamType
- Type of volume stream such as alarm, media/music, notification volume level.
Implementation
static Future<double> volumeGetMaxLevel({
StreamType streamType = StreamType.music,
}) async {
final double? volumeLevel = await _methodChannel.invokeMethod(
'volumeGetMaxLevel',
{
'stream_type': VolumeStream.getType(streamType),
},
);
return volumeLevel ?? -1.0;
}