muteAudio static method
void
muteAudio(
- bool muteAudio, {
- required dynamic onSuccess(
- String onSuccess
- required dynamic onError(
- CometChatCallsException excep
Mutes the audio.
muteAudio
: Whether to mute the audio.onSuccess
: A callback function that is called when the audio is successfully muted.onError
: A callback function that is called when an error occurs while muting the audio.
Example: CometChatCalls.muteAudio(true, onSuccess: (message) { // The audio was successfully muted. }, onError: (error) { // An error occurred while muting the audio. }, );
Implementation
static void muteAudio(bool muteAudio,
{required Function(String onSuccess) onSuccess,
required Function(CometChatCallsException excep) onError}) {
CometchatcallsPluginPlatform.instance
.muteAudio(muteAudio, onSuccess, onError);
}