@protocol ATNativeADRenderer<NSObject>
/**
May return nil.
*/
-(__kindof UIView*)createMediaView;
/**
Render the assets onto the relevant ad view. Implementors implement this method in a network-specific manner.
*/
-(void)renderOffer:(ATNativeADCache*)offer;
/**
* Whether the rendered ad is a video ad.
*/
-(BOOL)isVideoContents;
/**
* The duration of the video ad playback, in milliseconds.
*/
- (CGFloat)videoPlayTime;
/**
* The total duration of the video ad, in milliseconds.
*/
- (CGFloat)videoDuration;
/**
* Play mute switch
* @param flag Whether to mute
*/
- (void)muteEnable:(BOOL)flag;
/**
* Play the video ad
*/
- (void)videoPlay;
/**
* Pause the video ad
*/
- (void)videoPause;
/// Destroy the network native ad
- (void)destroyNative;
- (ATNativeAdType)getNativeAdType;
- (ATNativeAdRenderType)getCurrentNativeAdRenderType;
/**
* Clear ad cache
*/
-(void)clearAdCache;
/// Used to bind the customEvent
- (void)bindCustomEvent;
/**
* Set the background color of the AdChoicesView for the self-rendering ad.
* @param color View color
*/
- (void)setAdChoicesViewColor:(UIColor *)color;
/**
* This reference should be retained as a weak reference, because the ad view strongly references its renderer.
* This property is added so that the renderAssets: method can directly access it.
*/
@property(nonatomic, weak) ATNativeADView *ADView;
@end