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