getCallAppOpenAds method

Future getCallAppOpenAds()

Implementation

Future getCallAppOpenAds() async {
  if (admodel?.isad ?? false) {
    if (admodel?.isopenenable ?? false) {
      AppOpenAdManager appOpenAdManager = AppOpenAdManager(
          appOpenUnitId: (admodel?.isadmobad ?? false)
              ? (admodel?.admobadOpen ?? '')
              : (admodel?.adOpen ?? ''))
        ..loadAd(isFromStart: true);
      AppLifecycleReactor _appLifecycleReactor = AppLifecycleReactor(
          appOpenAdManager: appOpenAdManager);
      _appLifecycleReactor.listenToAppStateChanges();
    }
  }
  return;
}