onAudioVolumeIndication property

void Function(int volume)? onAudioVolumeIndication
final

Reports the volume of the media player.

The SDK triggers this callback every 200 milliseconds to report the current volume of the media player.

  • volume The volume of the media player. The value ranges from 0 to 255.

Implementation

final void Function(int volume)? onAudioVolumeIndication;