CSJNativeExpressRewardedVideoAdView.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // CSJNativeExpressRewardedVideoAdView.h
  3. // CSJAdSDK
  4. //
  5. // Created by cuiyanan on 2019/8/6.
  6. // Copyright © 2019 bytedance. All rights reserved.
  7. //
  8. #import "CSJNativeExpressAdView.h"
  9. #import "CSJNativeExpressAdView+Interval.h"
  10. @class CSJNativeExpressRewardedVideoAdView;
  11. @class CSJDislikeContext;
  12. NS_ASSUME_NONNULL_BEGIN
  13. @class BUPlayer;
  14. @protocol CSJNativeExpressRewardedVideoAdViewDelegate <NSObject>
  15. @optional
  16. - (void)nativeExpressRewardedVideoDidPlayRewardTime:(BUPlayer *)player;
  17. - (void)nativeExpressRewardedVideoDidPlayFinish:(BUPlayer *)player error:(NSError *_Nullable)error;
  18. - (void)switchToWebViewController:(BOOL)isSkip;
  19. - (void)dismissCurrentViewControllerIsSkip:(BOOL)isSkip;
  20. //wyl3600:激励全屏支持前置打开试玩落地页
  21. - (void)nativeExpressRewardedVideoPushPlayableLandingPage;
  22. - (NSDictionary *)nativeExpressInteractiveFinished:(NSDictionary *)param;
  23. /// 在 playable 停留的时长
  24. - (NSTimeInterval)playableStayDuration;
  25. /// 4600 "再看一个"入口前置传递jsb "rewardPlayAgain" 事件
  26. - (void)nativeExpressRewardedPlayAgain;
  27. @end
  28. @interface CSJNativeExpressRewardedVideoAdView : CSJNativeExpressAdView
  29. @property (nonatomic, weak) id<CSJNativeExpressRewardedVideoAdViewDelegate> delegate;
  30. @property (nonatomic, strong) CSJDislikeContext *dislikeContext;
  31. @property (nonatomic, assign) BOOL isSkipTap;
  32. @property (nonatomic, assign) BOOL isSkipVideoDisplay;//是否真正的跳过了激励视频的播放
  33. - (void)checkToVerifyServerRewardIsNeedWatchPercent:(BOOL)isNeed;
  34. /// 3900 轻互动跳过激励观看时长 默认0
  35. @property (nonatomic, assign) NSInteger skipDuration;
  36. @property (nonatomic, assign) BOOL hasVerifyServerReward;
  37. - (void)stopTimers;
  38. @end
  39. NS_ASSUME_NONNULL_END