muteAudio static method
Future<void>
muteAudio({
- required bool status,
- required dynamic flyCallBack(
- FlyResponse response
Mutes or unmutes audio during a call.
This static method allows the user to mute or unmute audio during a call.
It takes a boolean status
parameter indicating whether to mute or unmute audio.
If status
is true, audio will be muted; if false, audio will be unmuted.
The flyCallBack
parameter is a function that will be called upon completion of the operation.
It receives a FlyResponse object as a parameter, which contains information about the success or failure of the operation.
Implementation
static Future<void> muteAudio(
{required bool status,
required Function(FlyResponse response) flyCallBack}) async {
return FlyChatFlutterPlatform.instance.muteAudio(status, flyCallBack);
}