onAudioDeviceVolumeChanged property

void Function(MediaDeviceType deviceType, int volume, bool muted)? onAudioDeviceVolumeChanged
final

Occurs when the volume of the audio device or app changes.

This callback is triggered when the volume of an audio playback or recording device or the app changes. This callback is only applicable to Windows and macOS.

  • deviceType The device type definition. See MediaDeviceType.
  • volume The volume, ranging from 0,255.
  • muted Whether the audio device is muted: true : The audio device is muted. false : The audio device is not muted.

Implementation

final void Function(MediaDeviceType deviceType, int volume, bool muted)?
    onAudioDeviceVolumeChanged;