CSJInterstitialCoverView.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. //
  2. // CSJInterstitialCoverView.h
  3. // CSJAdSDK
  4. //
  5. // Created by Rush.D.Xzj on 2020/9/20.
  6. // Copyright © 2020 bytedance. All rights reserved.
  7. //
  8. #import "CSJCoverView.h"
  9. #import "CSJNativeAdRelatedView.h"
  10. NS_ASSUME_NONNULL_BEGIN
  11. @class CSJInterstitialCoverView;
  12. @protocol CSJInterstitialCoverViewDelegate <NSObject>
  13. @optional
  14. /**
  15. This method is called when videoadview failed to play.
  16. @param error : the reason of error
  17. */
  18. - (void)interstitialCoverView:(CSJInterstitialCoverView *)interstitialCoverView videoDidLoadFailWithError:(NSError *_Nullable)error;
  19. /**
  20. This method is called when videoadview playback status changed.
  21. @param playerState : player state after changed
  22. */
  23. - (void)interstitialCoverView:(CSJInterstitialCoverView *)interstitialCoverView videoStateDidChanged:(BUPlayerPlayState)playerState;
  24. /**
  25. This method is called when videoadview ready to play.
  26. */
  27. - (void)playerReadyToPlay:(CSJInterstitialCoverView *)interstitialCoverView;
  28. /**
  29. This method is called when videoadview end of play.
  30. */
  31. - (void)playerDidPlayFinish:(CSJInterstitialCoverView *)interstitialCoverView;
  32. /**
  33. This method is called when videoadview is clicked.
  34. */
  35. - (void)videoAdViewDidClick:(CSJInterstitialCoverView *)interstitialCoverView;
  36. /**
  37. This method is called when videoadview's finish view is clicked.
  38. */
  39. - (void)videoAdViewFinishViewDidClick:(CSJInterstitialCoverView *)interstitialCoverView;
  40. /**
  41. This method is called when another controller has been closed.
  42. @param interactionType : open appstore in app or open the webpage or view video ad details page.
  43. */
  44. - (void)videoAdViewDidCloseOtherController:(CSJInterstitialCoverView *)interstitialCoverView interactionType:(BUInteractionType)interactionType;
  45. @end
  46. @interface CSJInterstitialCoverView : CSJCoverView
  47. @property (nonatomic, assign) id<CSJInterstitialCoverViewDelegate> interstitialDelegate;
  48. // 是否有视屏view
  49. @property (nonatomic, readonly, assign) BOOL haveVideoView;
  50. @property (nonatomic, strong) CSJNativeAdRelatedView *nativeAdRelatedView;
  51. - (void)addVideoViewIfNeed;
  52. @end
  53. NS_ASSUME_NONNULL_END