onAudioDeviceVolumeChanged property

(void Function(ZegoAudioDeviceType deviceType, String deviceID, int volume)?) onAudioDeviceVolumeChanged
read / write

The callback triggered when there is a change of the volume for the audio devices.

Available since: 1.1.0 Description: Audio device volume change event callback. When to trigger: After calling the startAudioDeviceVolumeMonitor function to start the device volume monitor, and the volume of the monitored audio device changes. Platform differences: Only supports Windows and macOS.

  • deviceType Audio device type
  • deviceID Audio device ID
  • volume audio device volume

Implementation

static void Function(
        ZegoAudioDeviceType deviceType, String deviceID, int volume)?
    onAudioDeviceVolumeChanged;