1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- //
- // AdBase.h
- // XenonSDK
- //
- // Created by fq on 2020/12/23.
- // Copyright © 2020 SAGESSE. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- #import <UIKit/UIKit.h>
- #import "AppDelegate.h"
- @interface AdBase : NSObject
- @property (nonatomic, assign)NSInteger weight;
- //视频激励广告回调函数
- @property (nonatomic, strong) void(^rewardCallback)(int);
- //平台名称
- @property (nonatomic,strong)NSString *agentName;
- //中介
- @property (nonatomic,strong)NSString *medium;
- //原平台单元id
- @property (nonatomic,strong)NSString *adUnitId;
- //广告类型 Rewarded
- @property (nonatomic,strong)NSString *type;
- //广告组ID Rewarded
- @property (nonatomic,strong)NSString *unitAdId;
- //CP传递过来的广告位
- @property (nonatomic,strong)NSString *adId;
- //广告平台返回的报错信息内容
- @property (nonatomic,strong)NSString *errorMsg;
- -(BOOL)isReady;
- //播放横幅广告
- - (void)play:(NSString*)adId callback:(void(^)(int intValue))back;
- //获取当前的window
- -(UIWindow*)currentWindow;
- //获取当前的vc
- -(UIViewController *)currentViewController;
- @end
|