onAudioRecordingStateUpdate method

FutureOr<void> onAudioRecordingStateUpdate(
  1. AudioRecordingState state,
  2. AudioRecordingErrorCode errorCode
)

@detail callback @author huangshouqin @brief When calling startAudioRecording{@link #RTCEngine#startAudioRecording} or stopAudioRecording{@link #RTCEngine#stopAudioRecording} to change the recording status, receive the callback. @param state See AudioRecordingState{@link #AudioRecordingState}. @param errorCode See AudioRecordingErrorCode{@link #AudioRecordingErrorCode}.

Implementation

FutureOr<void> onAudioRecordingStateUpdate(
    AudioRecordingState state, AudioRecordingErrorCode errorCode) async {}