stopRecording static method
void
stopRecording({
- required dynamic onSuccess(
- String onSuccess
- required dynamic onError(
- 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);
}