openFloatWindowWithPageState method

Future<void> openFloatWindowWithPageState()

Implementation

Future<void> openFloatWindowWithPageState() async {
  CallKitUILog.i(_tag, 'CallManager openFloatWindowWithState()');
  if ((Platform.isAndroid &&
          await NECallKitPlatform.instance.hasFloatPermission()) ||
      Platform.isIOS) {
    openFloatWindow();
    if (NECallKitNavigatorObserver.currentPage == CallPage.callingPage) {
      NECallKitNavigatorObserver.getInstance().exitCallingPage();
    }
  }
}