1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- //
- // BUNativeExpressAdViewDelegate.h
- // BUAdSDK
- //
- // Created by Rush.D.Xzj on 2020/10/12.
- // Copyright © 2020 bytedance. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- #import "BUMaterialMeta.h"
- NS_ASSUME_NONNULL_BEGIN
- @class BUNativeExpressAdManager;
- @class BUNativeExpressAdView;
- @class BUDislikeWords;
- @protocol BUNativeExpressAdViewDelegate <NSObject>
- @optional
- /**
- * Sent when views successfully load ad
- */
- - (void)nativeExpressAdSuccessToLoad:(BUNativeExpressAdManager *)nativeExpressAdManager views:(NSArray<__kindof BUNativeExpressAdView *> *)views;
- /**
- * Sent when views fail to load ad
- */
- - (void)nativeExpressAdFailToLoad:(BUNativeExpressAdManager *)nativeExpressAdManager error:(NSError *_Nullable)error;
- /**
- * This method is called when rendering a nativeExpressAdView successed, and nativeExpressAdView.size.height has been updated
- */
- - (void)nativeExpressAdViewRenderSuccess:(BUNativeExpressAdView *)nativeExpressAdView;
- /**
- * This method is called when a nativeExpressAdView failed to render
- */
- - (void)nativeExpressAdViewRenderFail:(BUNativeExpressAdView *)nativeExpressAdView error:(NSError *_Nullable)error;
- /**
- * Sent when an ad view is about to present modal content
- */
- - (void)nativeExpressAdViewWillShow:(BUNativeExpressAdView *)nativeExpressAdView;
- /**
- * Sent when an ad view is clicked
- */
- - (void)nativeExpressAdViewDidClick:(BUNativeExpressAdView *)nativeExpressAdView;
- /**
- Sent when a playerw playback status changed.
- @param playerState : player state after changed
- */
- - (void)nativeExpressAdView:(BUNativeExpressAdView *)nativeExpressAdView stateDidChanged:(BUPlayerPlayState)playerState;
- /**
- * Sent when a player finished
- * @param error : error of player
- */
- - (void)nativeExpressAdViewPlayerDidPlayFinish:(BUNativeExpressAdView *)nativeExpressAdView error:(NSError *)error;
- /**
- * Sent when a user clicked dislike reasons.
- * @param filterWords : the array of reasons why the user dislikes the ad
- */
- - (void)nativeExpressAdView:(BUNativeExpressAdView *)nativeExpressAdView dislikeWithReason:(NSArray<BUDislikeWords *> *)filterWords;
- /**
- * Sent after an ad view is clicked, a ad landscape view will present modal content
- */
- - (void)nativeExpressAdViewWillPresentScreen:(BUNativeExpressAdView *)nativeExpressAdView;
- /**
- This method is called when another controller has been closed.
- @param interactionType : open appstore in app or open the webpage or view video ad details page.
- */
- - (void)nativeExpressAdViewDidCloseOtherController:(BUNativeExpressAdView *)nativeExpressAdView interactionType:(BUInteractionType)interactionType;
- /**
- This method is called when the Ad view container is forced to be removed.
- @param nativeExpressAdView : Ad view container
- */
- - (void)nativeExpressAdViewDidRemoved:(BUNativeExpressAdView *)nativeExpressAdView;
- @end
- NS_ASSUME_NONNULL_END
|