INNER CODE UNIT · Swift
adView
kmcgill88/admob_flutter · ios/Classes/AdmobBanner.swift:126
func adView(_ bannerView: GADBannerView, didFailToReceiveAdWithError error: GADRequestError) {
channel.invokeMethod("failedToLoad", arguments: [
"errorCode": error.code,
"error": error.localizedDescription
])
}
/// Tells the delegate that a full screen view will be presented in response to the user clicking on
/// an ad. The delegate may want to pause animations and time sensitive interactions.
func adViewWillPresentScreen(_ bannerView: GADBannerView) {
channel.invokeMethod("clicked", arguments: nil)
channel.invokeMethod("opened", arguments: nil)
}
// TODO: not sure this exists on iOS.
// channel.invokeMethod("impression", null)
func adViewWillLeaveApplication(_ bannerView: GADBannerView) {