muteAudio static method

void muteAudio(
  1. bool muteAudio, {
  2. required dynamic onSuccess(
    1. String onSuccess
    ),
  3. required dynamic onError(
    1. 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);
}