//
//  BUNativeExpressAdView.h
//  BUAdSDK
//
//  Created by bytedance on 2019/1/20.
//  Copyright © 2019年 bytedance. All rights reserved.
//

#import "BUInterfaceBaseView.h"
#import "BUAdClientBiddingProtocol.h"
#import "BUDictionary.h"

NS_ASSUME_NONNULL_BEGIN


 __attribute__((objc_subclassing_restricted))
@interface BUNativeExpressAdView : BUInterfaceBaseView<BUAdClientBiddingProtocol>
/**
 * Whether render is ready
 */
@property (nonatomic, assign, readonly) BOOL isReady;

/// media configuration parameters.
@property (nonatomic, copy, readonly, nullable) BUDictionary *mediaExt;

/// video duration.
@property (nonatomic,assign, readonly) NSInteger videoDuration;

/// Get the already played time.
@property (nonatomic,assign, readonly) CGFloat currentPlayedTime;

/*
 required.
 Root view controller for handling ad actions.
 */
@property (nonatomic, weak, nullable) UIViewController *rootViewController;

/**
 required
 */
- (void)render;

/**
 Ad slot material id
 */
- (NSString *)getAdCreativeToken;

@end

NS_ASSUME_NONNULL_END
