onLocalAudioVolumeIndication method Null safety

void onLocalAudioVolumeIndication(
  1. int volume
)

Occurs when the system indicates the volume of the current local audio. This callback is disabled by default. You can enable the callback by calling the enableAudioVolumeIndication method. If the callback is enabled and a local user speaks, the SDK triggers the callback based on the time interval specified in the enableAudioVolumeIndication method. If the local user mutes the local audio by calling muteLocalAudio, the SDK no longer indicates the audio volume.

Implementation

// /[volume] indicates the mixing audio volume. Value range: [0, 100].
void onLocalAudioVolumeIndication(int volume);