ALAdDisplayDelegate.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // ALAdDisplayDelegate.h
  3. // AppLovinSDK
  4. //
  5. // Created by Basil on 3/23/12.
  6. // Copyright © 2020 AppLovin Corporation. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @class ALAd;
  10. NS_ASSUME_NONNULL_BEGIN
  11. /**
  12. * This protocol defines a listener for ad display events.
  13. */
  14. @protocol ALAdDisplayDelegate <NSObject>
  15. /**
  16. * The SDK invokes this when the ad is displayed in the view.
  17. *
  18. * The SDK invokes this method on the main UI thread.
  19. *
  20. * @param ad Ad that was just displayed.
  21. * @param view Ad view in which the ad was displayed.
  22. */
  23. - (void)ad:(ALAd *)ad wasDisplayedIn:(UIView *)view;
  24. /**
  25. * The SDK invokes this method when the ad is hidden from the view. This occurs when the user "X"es out of an interstitial.
  26. *
  27. * The SDK invokes this method on the main UI thread.
  28. *
  29. * @param ad Ad that was just hidden.
  30. * @param view Ad view in which the ad was hidden.
  31. */
  32. - (void)ad:(ALAd *)ad wasHiddenIn:(UIView *)view;
  33. /**
  34. * The SDK invokes this method when the ad is clicked in the view.
  35. *
  36. * The SDK invokes this method on the main UI thread.
  37. *
  38. * @param ad Ad that was just clicked.
  39. * @param view Ad view in which the ad was clicked.
  40. */
  41. - (void)ad:(ALAd *)ad wasClickedIn:(UIView *)view;
  42. @end
  43. NS_ASSUME_NONNULL_END