currentPlaybackType property

Future<AudioVolumeType> currentPlaybackType

Gets the volume type of the sound being currently played.

Implementation

Future<AudioVolumeType> get currentPlaybackType async {
  final String? type = await AudioManager._channel
      .invokeMethod<String>('getCurrentPlaybackType');
  return _stringToAudioVolumeType(type!);
}