admin
2022-09-04 fa05f89529e05078b29606e4beda3de5cfdce485
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
//
//  GDTNativeExpressAdView.h
//  GDTMobApp
//
//  Created by michaelxing on 2017/4/14.
//  Copyright © 2017年 Tencent. All rights reserved.
//
 
#import <UIKit/UIKit.h>
#import "GDTAdProtocol.h"
 
 
@interface GDTNativeExpressAdView : UIView <GDTAdProtocol>
 
/**
 * 是否渲染完毕
 */
@property (nonatomic, assign, readonly) BOOL isReady;
 
/**
 * 是否是视频模板广告
 */
@property (nonatomic, assign, readonly) BOOL isVideoAd;
 
/**
 *  viewControllerForPresentingModalView
 *  详解:[必选]开发者需传入用来弹出目标页的ViewController,一般为当前ViewController
 */
@property (nonatomic, weak) UIViewController *controller;
 
/**
 *  广告是否有效,以下情况会返回NO,建议在调用render之前判断,当为NO时render失败
 *  a.广告过期
 */
@property (nonatomic, readonly) BOOL isAdValid;
 
/**
 *[必选]
 *原生模板广告渲染
 */
- (void)render;
 
/**
 * 视频模板广告时长,单位 ms
 */
- (CGFloat)videoDuration;
 
/**
 * 视频模板广告已播放时长,单位 ms
 */
- (CGFloat)videoPlayTime;
 
/**
 返回广告的eCPM,单位:分
 
 @return 成功返回一个大于等于0的值,-1表示无权限或后台出现异常
 */
- (NSInteger)eCPM;
 
/**
 返回广告的eCPM等级
 
 @return 成功返回一个包含数字的string,@""或nil表示无权限或后台异常
 */
- (NSString *)eCPMLevel;
 
@end