onLocalRecording property

(void Function(int duration, String storagePath)?) onLocalRecording
final

Local Media is Being Recorded

The SDK returns this callback regularly after local recording has started successfully via the calling of startLocalRecording.

You can capture this callback to stay up to date with the status of the recording task.

You can set the callback interval when calling startLocalRecording.

  • Parameters:
    • duration(int):
      • Cumulative duration of recording, in milliseconds.
    • storagePath(String):
      • Storage path of the recording file.

Implementation

final void Function(int duration, String storagePath)? onLocalRecording;