INNER CODE UNIT · Swift

interstitialWillLeaveApplication

kmcgill88/admob_flutter · ios/Classes/AdmobInterstitialPlugin.swift:134

    func interstitialWillLeaveApplication(_ ad: GADInterstitial) {
        channel.invokeMethod("leftApplication", arguments: nil)
    }

    func interstitialDidReceiveAd(_ ad: GADInterstitial) {
        channel.invokeMethod("loaded", arguments: nil)
    }

    func interstitial(_ ad: GADInterstitial, didFailToReceiveAdWithError error: GADRequestError) {
        channel.invokeMethod("failedToLoad", arguments:  [
            "errorCode": error.code,
            "error": error.localizedDescription
        ])
    }
    
    func interstitialDidFail(toPresentScreen ad: GADInterstitial) {
        channel.invokeMethod("failedToLoad", arguments: ["errorCode": ad.isReady && ad.hasBeenUsed])
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…