onRemoteDataRecordStateUpdate property

(void Function(ZegoDataRecordState state, int errorCode, ZegoDataRecordConfig config, String streamID)?) onRemoteDataRecordStateUpdate
getter/setter pair

The callback triggered when the state of data recording (to a file) changes.

Available since: 3.21.0 Description: The callback triggered when the state of data remote recording (to a file) changes. Use cases: The developer should use this callback to determine the status of the file recording or for UI prompting. When to trigger: After startRecordingRemoteData is called, if the state of the recording process changes, this callback will be triggered. Restrictions: None.

Implementation

static void Function(
    ZegoDataRecordState state,
    int errorCode,
    ZegoDataRecordConfig config,
    String streamID)? onRemoteDataRecordStateUpdate;