123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- //
- // ADCDN_FullscreenExpressVideoAdManager.h
- // ADCDN
- //
- // Created by 吃不胖的瘦子 on 2021/2/23.
- // Copyright © 2021 llh. All rights reserved.
- // 全屏视频广告(非激励视频)
- #import <Foundation/Foundation.h>
- #import <UIKit/UIKit.h>
- NS_ASSUME_NONNULL_BEGIN
- @class ADCDN_FullscreenExpressVideoAdManager;
- /**
- * 代理协议方法
- */
- @protocol ADCDN_FullscreenExpressVideoAdManagerDelegate <NSObject>
- /**
- * 加载成功
- */
- - (void)ADCDN_FullscreenVideoAdDidLoad:(ADCDN_FullscreenExpressVideoAdManager *)fullscreenVideoAd;
- /**
- * 加载失败
- */
- - (void)ADCDN_FullscreenVideoAd:(ADCDN_FullscreenExpressVideoAdManager *)fullscreenVideoAd didFailWithError:(NSError *_Nullable)error;
- /**
- * 下载成功
- */
- -(void)ADCDN_FullscreenVideoAdDidDownLoadVideo:(ADCDN_FullscreenExpressVideoAdManager *)fullscreenVideoAd;
- /**
- * 点击广告
- */
- - (void)ADCDN_FullscreenVideoAdDidClick:(ADCDN_FullscreenExpressVideoAdManager *)fullscreenVideoAd;
- /**
- * 曝光回调
- */
- - (void)ADCDN_FullscreenVideoAdDidBecomeVisible:(ADCDN_FullscreenExpressVideoAdManager *)fullscreenVideoAd;
- /**
- * 视频播放完成
- */
- - (void)ADCDN_FullscreenVideoAdDidPlayFinish:(ADCDN_FullscreenExpressVideoAdManager *)fullscreenVideoAd didFailWithError:(NSError *_Nullable)error;
- /**
- * 播放完成点击关闭
- */
- - (void)ADCDN_FullscreenVideoAdDidClose:(ADCDN_FullscreenExpressVideoAdManager *)fullscreenVideoAd;
- /**
- * 视频广告点击跳过
- This method is called when the user clicked skip button.
- */
- - (void)ADCDN_FullscreenVideoAdDidClickSkip:(ADCDN_FullscreenExpressVideoAdManager *)fullscreenVideoAd;
- @end
- @interface ADCDN_FullscreenExpressVideoAdManager : NSObject
- /** 代理对象 */
- @property (nonatomic, weak, nullable) id<ADCDN_FullscreenExpressVideoAdManagerDelegate>delegate;
- /** 控制器(必传) */
- @property (nonatomic, weak) UIViewController * rootViewController;
- /**
- * plcId - 广告位 ID
- */
- -(instancetype _Nullable)initWithPlcId:(NSString *_Nullable)plcId;
- /**
- * 加载广告
- */
- -(void)loadAd;
- /**
- 展示广告方法
- @param rootViewController 用于 present 激励视频 VC
- @return 是否展示成功
- 注:请在视频下载成功的回调之后执行此方法,才有效
- */
- - (BOOL)showAdFromRootViewController:(UIViewController *)rootViewController;
- @end
- NS_ASSUME_NONNULL_END
|