PLVVodAd
Objective-C
@interface PLVVodAd : NSObject
Swift
class PLVVodAd : NSObject
广告数据模型
-
addrurl 跳转地址
Declaration
Objective-C
@property (nonatomic, copy) NSString *address;Swift
var address: String! { get set } -
adtype 广告类型
Declaration
Objective-C
@property (nonatomic) PLVVodAdType type;Swift
var type: PLVVodAdType { get set } -
cataid 广告分类id
Declaration
Objective-C
@property (nonatomic, copy) NSString *categoryId;Swift
var categoryId: String! { get set } -
location 位置
Declaration
Objective-C
@property (nonatomic) PLVVodAdLocation location;Swift
var location: PLVVodAdLocation { get set } -
matterurl 广告资源URL
Declaration
Objective-C
@property (nonatomic, copy) NSString *adUrl;Swift
var adUrl: String! { get set } -
timesize 广告时长,小于等于0则为无穷大
Declaration
Objective-C
@property (nonatomic) NSTimeInterval duration;Swift
var duration: TimeInterval { get set } -
已播放,广告只播放一次
Declaration
Objective-C
@property (nonatomic) BOOL played;Swift
var played: Bool { get set } -
skipenabled 能否跳过广告
Declaration
Objective-C
@property (nonatomic) BOOL skipEnabled;Swift
var skipEnabled: Bool { get set } -
skiptime 允许跳过广告的时间点 skipEnabled 为YES 生效
Declaration
Objective-C
@property (nonatomic) NSInteger skipTime;Swift
var skipTime: Int { get set } -
skipbutton 跳过按钮文案
Declaration
Objective-C
@property (nonatomic, copy) NSString *skipbutton;Swift
var skipbutton: String! { get set } -
displaytext 展示文案
Declaration
Objective-C
@property (nonatomic, copy) NSString *displaytext;Swift
var displaytext: String! { get set } -
初始化
Declaration
Objective-C
+ (instancetype)adWithDic:(NSDictionary *)dic;Swift
convenience init!(dic: [AnyHashable : Any]!)
View on GitHub
PLVVodAd Class Reference