|
11 | 11 | #import "FAQAdRewardEvent.h" |
12 | 12 | #import "FAQAdEventAction.h" |
13 | 13 | // 广告位id |
14 | | -static NSString *const kPosId=@"posId"; |
| 14 | +static NSString * _Nonnull const kPosId=@"posId"; |
15 | 15 |
|
16 | 16 | // 基础广告页面 |
17 | 17 | @interface FAQBaseAdPage : NSObject |
18 | 18 | // 广告位id |
19 | | -@property (weak,nonatomic) NSString *posId; |
| 19 | +@property (weak,nonatomic,nullable) NSString *posId; |
20 | 20 | // 事件消息 |
21 | | -@property (strong, nonatomic) FlutterEventSink eventSink; |
| 21 | +@property (strong, nonatomic,nonnull) FlutterEventSink eventSink; |
22 | 22 | // Window |
23 | | -@property (strong,nonatomic) UIWindow *mainWin; |
| 23 | +@property (strong,nonatomic,nonnull) UIWindow *mainWin; |
24 | 24 | // 根控制器 |
25 | | -@property (strong,nonatomic) UIViewController *rootController; |
| 25 | +@property (strong,nonatomic,nonnull) UIViewController *rootController; |
26 | 26 | // 屏幕宽度 |
27 | 27 | @property CGFloat width; |
28 | 28 | // 屏幕高度 |
29 | 29 | @property CGFloat height; |
30 | 30 | // 显示广告 |
31 | | -- (void) showAd:(FlutterMethodCall *)call eventSink:(nonnull FlutterEventSink) events; |
| 31 | +- (void) showAd:(nonnull FlutterMethodCall *)call eventSink:(nonnull FlutterEventSink) events; |
32 | 32 | // 加载广告 |
33 | | -- (void) loadAd:(FlutterMethodCall *) call; |
| 33 | +- (void) loadAd:(nonnull FlutterMethodCall *) call; |
34 | 34 | // 发送广告事件 |
35 | | --(void) sendEvent:(FAQAdEvent *) event; |
| 35 | +-(void) sendEvent:(nonnull FAQAdEvent *) event; |
36 | 36 | // 发送广告事件 |
37 | | --(void) sendEventAction:(NSString *) action; |
| 37 | +-(void) sendEventAction:(nonnull NSString *) action; |
38 | 38 | // 发送广告错误事件 |
39 | | --(void) sendErrorEvent:(NSInteger) errCode withErrMsg:(NSString*) errMsg; |
| 39 | +-(void) sendErrorEvent:(NSInteger) errCode withErrMsg:(nonnull NSString*) errMsg; |
40 | 40 | @end |
0 commit comments