// // RQADViewManager.h // jiaPei // // Created by 张嵘 on 2021/4/29. // Copyright © 2021 JCZ. All rights reserved. // #import #import #import #import #import #import #import #import NS_ASSUME_NONNULL_BEGIN #define RQ_AD_MANAGER [RQADViewManager sharedManager] FOUNDATION_EXTERN NSString * const RQADInterstitialNotificationName; typedef NS_ENUM(NSUInteger, RQADType) { /// 开屏广告 RQADType_Splash = 0, /// 横幅广告 RQADType_Banner = 1, /// 插屏广告 RQADType_Interstitial = 2, /// 信息流广告 RQADType_native = 3, /// 全屏视频广告 RQADType_fullScreen = 4, /// 插屏开屏广告 RQADType_InterstitialSplash = 5, /// 横幅广告_内置 RQADType_Banner_IN = 6, }; typedef NS_ENUM(NSUInteger, RQADDoType) { RQADDoType_Success = 0, /// 成功 RQADDoType_Close = 1, /// 关闭 RQADDoType_Click = 2, /// 点击 RQADDoType_Faild = 3, /// 失败 RQADDoType_Miss = 4, /// 移除 }; /** 关闭回调 @param success 是否成功 */ typedef void(^RQADCloseCompletedBlock)(RQADDoType adDoType); @interface RQADViewManager : NSObject @property (nonatomic, readwrite, assign) BOOL splashIsShow; @property (nonatomic, readwrite, assign) BOOL bannerIsShow; @property (nonatomic, readwrite, assign) BOOL isEnterForeground; @property (nonatomic, readonly, copy) NSString *appId; @property (nonatomic, readwrite, assign) RQADType adType; @property (nonatomic, readwrite, assign) BOOL isNativeAdClicked; + (RQADViewManager *)sharedManager; - (void)rq_configureADSuiSDK; - (BOOL)isFirstAppLoad; - (void)requestAgreePrivacy; - (void)loadMineSplashAd; - (void)loadAdWithAdType:(RQADType)adType customView:( UIView * _Nullable )customView; - (void)loadAdWithAdType:(RQADType)adType customView:(UIView * _Nullable)customView cycleSecound:(CGFloat)second; - (void)loadAdWithAdType:(RQADType)adType customView:(UIView * _Nullable )customView controller:(UIViewController *)controller cycleSecound:(CGFloat)second; - (void)showAdWithAdType:(RQADType)adType; - (void)initCloseBlock:(_Nullable RQADCloseCompletedBlock)block; - (UIViewController *)getCurrentVC; @end NS_ASSUME_NONNULL_END