ALAdVideoPlaybackDelegate.h 999 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // ALAdVideoPlaybackDelegate.h
  3. // AppLovinSDK
  4. //
  5. // Copyright © 2020 AppLovin Corporation. All rights reserved.
  6. //
  7. @class ALAd;
  8. @class ALAdService;
  9. NS_ASSUME_NONNULL_BEGIN
  10. @protocol ALAdVideoPlaybackDelegate <NSObject>
  11. /**
  12. * The SDK invokes this method when a video starts playing in an ad.
  13. *
  14. * The SDK invokes this method on the main UI thread.
  15. *
  16. * @param ad Ad in which video playback began.
  17. */
  18. - (void)videoPlaybackBeganInAd:(ALAd *)ad;
  19. /**
  20. * The SDK invokes this method when a video stops playing in an ad.
  21. *
  22. * The SDK invokes this method on the main UI thread.
  23. *
  24. * @param ad Ad in which video playback ended.
  25. * @param percentPlayed How much of the video was watched, as a percent, between 0 and 100.
  26. * @param wasFullyWatched Whether or not the video was watched to 95% or more of completion.
  27. */
  28. - (void)videoPlaybackEndedInAd:(ALAd *)ad atPlaybackPercent:(NSNumber *)percentPlayed fullyWatched:(BOOL)wasFullyWatched;
  29. @end
  30. NS_ASSUME_NONNULL_END