exitPIPMode static method
void
exitPIPMode({
- required dynamic onSuccess(
- String onSuccess
- required dynamic onError(
- CometChatCallsException excep
Exits picture-in-picture mode.
onSuccess
: A callback function that is called when the call is successfully exited from picture-in-picture mode.onError
: A callback function that is called when an error occurs while exiting the call from picture-in-picture mode.
Example: CometChatCalls.exitPIPMode( onSuccess: (message) { // The call was successfully exited from picture-in-picture mode. }, onError: (error) { // An error occurred while exiting the call from picture-in-picture mode. }, );
Implementation
static void exitPIPMode({
required Function(String onSuccess) onSuccess,
required Function(CometChatCallsException excep) onError
}) {
CometchatcallsPluginPlatform.instance.exitPIPMode(onSuccess, onError);
}