GADNativeAdDelegate.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // GADNativeAdDelegate.h
  3. // Google Mobile Ads SDK
  4. //
  5. // Copyright 2015 Google Inc. All rights reserved.
  6. //
  7. #import <Foundation/Foundation.h>
  8. @class GADNativeAd;
  9. /// Identifies native ad assets.
  10. @protocol GADNativeAdDelegate<NSObject>
  11. @optional
  12. #pragma mark Click-Time Lifecycle Notifications
  13. /// Called just before presenting the user a full screen view, such as a browser, in response to
  14. /// clicking on an ad. Use this opportunity to stop animations, time sensitive interactions, etc.
  15. ///
  16. /// Normally the user looks at the ad, dismisses it, and control returns to your application with
  17. /// the nativeAdDidDismissScreen: message. However, if the user hits the Home button or clicks on an
  18. /// App Store link, your application will end. The next method called will be the
  19. /// applicationWillResignActive: of your UIApplicationDelegate object.Immediately after that,
  20. /// nativeAdWillLeaveApplication: is called.
  21. - (void)nativeAdWillPresentScreen:(GADNativeAd *)nativeAd;
  22. /// Called just before dismissing a full screen view.
  23. - (void)nativeAdWillDismissScreen:(GADNativeAd *)nativeAd;
  24. /// Called just after dismissing a full screen view. Use this opportunity to restart anything you
  25. /// may have stopped as part of nativeAdWillPresentScreen:.
  26. - (void)nativeAdDidDismissScreen:(GADNativeAd *)nativeAd;
  27. /// Called just before the application will go to the background or terminate due to an ad action
  28. /// that will launch another application (such as the App Store). The normal UIApplicationDelegate
  29. /// methods, like applicationDidEnterBackground:, will be called immediately before this.
  30. - (void)nativeAdWillLeaveApplication:(GADNativeAd *)nativeAd;
  31. @end