PLVVodAdPlayerViewController
Objective-C
@interface PLVVodAdPlayerViewController
Swift
class PLVVodAdPlayerViewController
广告播放器
-
当前播放广告的状态
Declaration
Objective-C
@property (nonatomic) int state;
Swift
var state: PLVVodAssetState { get set }
-
播放按钮,仅在暂停广告会出现
Declaration
Objective-C
@property (nonatomic, strong, readonly) UIButton *playButton
Swift
var playButton: UnsafeMutablePointer<Int32>! { get }
-
剩余时间文本
Declaration
Objective-C
@property (nonatomic, strong, readonly) UILabel *timeLabel
Swift
var timeLabel: UnsafeMutablePointer<Int32>! { get }
-
跳过按钮
Declaration
Objective-C
@property (nonatomic) BOOL canSkip;
Swift
var canSkip: Bool { get set }
-
Undocumented
Declaration
Objective-C
@property (nonatomic, strong, readonly) UIButton *skipButton
Swift
var skipButton: UnsafeMutablePointer<Int32>! { get }
-
静音按钮
Declaration
Objective-C
@property (nonatomic, strong, readonly) UIButton *muteButton
Swift
var muteButton: UnsafeMutablePointer<Int32>! { get }
-
错误回调
Declaration
Objective-C
@property (nonatomic, copy) void (^) (PLVVodAdPlayerViewController *, NSError *) playerErrorHandler;
Swift
var playerErrorHandler: ((PLVVodAdPlayerViewController?, Error?) -> Void)! { get set }
-
上边距
Declaration
Objective-C
@property (nonatomic) CGFloat topInset;
Swift
var topInset: CGFloat { get set }
-
显示广告
Declaration
Objective-C
- (void)showAdWithLocation:(PLVVodAdLocation)location completion:(PLVVodAdCompletionBlock)completion;
Swift
func showAd(with location: PLVVodAdLocation, completion: PLVVodAdCompletionBlock!)
-
隐藏广告
Declaration
Objective-C
- (void)hideAd;
Swift
func hideAd()
-
时间标签
Declaration
Objective-C
+ (NSAttributedString *)timeStringWithSeconds:(NSInteger)remainSeconds;
Swift
class func timeString(withSeconds remainSeconds: Int) -> NSAttributedString!