rtcEngine$onAudioPlaybackDeviceTestVolume method
@hidden(iOS)
@detail callback
@author dixing
@region Audio Device Management
@brief Notification on the playing volume during the test for the local audio devices.
@param engine ByteRTCEngine object
@param volume Playing volume during the test for the local audio devices. The range is 0,255.
@note Start an audio-device test by calling startAudioPlaybackDeviceTest:interval:{@link #ByteRTCAudioDeviceManager#startAudioPlaybackDeviceTest:interval} or startAudioDeviceRecordTest:{@link #ByteRTCAudioDeviceManager#startAudioDeviceRecordTest} will register this callback for regular notification on playing volume. You can set the time interval between each callback by passing a proper value when calling the API above.
Implementation
FutureOr<void> rtcEngine$onAudioPlaybackDeviceTestVolume(
dynamic engine, dynamic volume) async {
if ($instance == null || $instance is! IRTCEngineEventHandler) {
return;
}
return ($instance as IRTCEngineEventHandler)
.onAudioPlaybackDeviceTestVolume
?.call(int.tryParse(volume.toString()) ?? 0);
}