stopRecording static method

void stopRecording({
  1. required dynamic onSuccess(
    1. String onSuccess
    ),
  2. required dynamic onError(
    1. CometChatCallsException excep
    ),
})

Stops the current recording.

  • onSuccess: A callback function that is called when the recording is successfully stopped.
  • onError: A callback function that is called when an error occurs while stopping the recording.

Example: CometChatCalls.stopRecording( onSuccess: (message) { // The recording was successfully stopped. }, onError: (error) { // An error occurred while stopping the recording. }, );

Implementation

static void stopRecording({
  required Function(String onSuccess) onSuccess,
  required Function(CometChatCallsException excep) onError
}) {
  CometchatcallsPluginPlatform.instance.stopRecording(onSuccess, onError);
}