| | |
| | | |
| | | /// Delegate methods for receiving GADBannerView state change messages such as ad request status |
| | | /// and ad click lifecycle. |
| | | NS_SWIFT_NAME(BannerViewDelegate) |
| | | @protocol GADBannerViewDelegate <NSObject> |
| | | |
| | | @optional |
| | |
| | | |
| | | /// Tells the delegate that an ad request successfully received an ad. The delegate may want to add |
| | | /// the banner view to the view hierarchy if it hasn't been added yet. |
| | | - (void)bannerViewDidReceiveAd:(nonnull GADBannerView *)bannerView; |
| | | - (void)bannerViewDidReceiveAd:(nonnull GADBannerView *)bannerView NS_SWIFT_UI_ACTOR; |
| | | |
| | | /// Tells the delegate that an ad request failed. The failure is normally due to network |
| | | /// connectivity or ad availablility (for example, no fill). |
| | | /// connectivity or ad availability (for example, no fill). |
| | | - (void)bannerView:(nonnull GADBannerView *)bannerView |
| | | didFailToReceiveAdWithError:(nonnull NSError *)error; |
| | | didFailToReceiveAdWithError:(nonnull NSError *)error NS_SWIFT_UI_ACTOR; |
| | | |
| | | /// Tells the delegate that an impression has been recorded for an ad. |
| | | - (void)bannerViewDidRecordImpression:(nonnull GADBannerView *)bannerView; |
| | | - (void)bannerViewDidRecordImpression:(nonnull GADBannerView *)bannerView NS_SWIFT_UI_ACTOR; |
| | | |
| | | /// Tells the delegate that a click has been recorded for the ad. |
| | | - (void)bannerViewDidRecordClick:(nonnull GADBannerView *)bannerView; |
| | | - (void)bannerViewDidRecordClick:(nonnull GADBannerView *)bannerView NS_SWIFT_UI_ACTOR; |
| | | |
| | | #pragma mark Click-Time Lifecycle Notifications |
| | | |
| | | /// 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. |
| | | - (void)bannerViewWillPresentScreen:(nonnull GADBannerView *)bannerView; |
| | | - (void)bannerViewWillPresentScreen:(nonnull GADBannerView *)bannerView NS_SWIFT_UI_ACTOR; |
| | | |
| | | /// Tells the delegate that the full screen view will be dismissed. |
| | | - (void)bannerViewWillDismissScreen:(nonnull GADBannerView *)bannerView; |
| | | - (void)bannerViewWillDismissScreen:(nonnull GADBannerView *)bannerView NS_SWIFT_UI_ACTOR; |
| | | |
| | | /// Tells the delegate that the full screen view has been dismissed. The delegate should restart |
| | | /// anything paused while handling bannerViewWillPresentScreen:. |
| | | - (void)bannerViewDidDismissScreen:(nonnull GADBannerView *)bannerView; |
| | | - (void)bannerViewDidDismissScreen:(nonnull GADBannerView *)bannerView NS_SWIFT_UI_ACTOR; |
| | | |
| | | @end |