From 94217b294ccd75a34787eb04d6e273e99536e45b Mon Sep 17 00:00:00 2001 From: 重庆迈尖科技有限公司 Date: 星期三, 30 一月 2019 15:12:32 +0800 Subject: [PATCH] no message --- BuWanVideo2.0/GDT_iOS_SDK/GDTNativeExpressAd.h | 72 ++++++++++++++++++++++++++++++++--- 1 files changed, 65 insertions(+), 7 deletions(-) diff --git a/BuWanVideo2.0/GDT_iOS_SDK/GDTNativeExpressAd.h b/BuWanVideo2.0/GDT_iOS_SDK/GDTNativeExpressAd.h old mode 100755 new mode 100644 index e2ec8da..a40f05a --- a/BuWanVideo2.0/GDT_iOS_SDK/GDTNativeExpressAd.h +++ b/BuWanVideo2.0/GDT_iOS_SDK/GDTNativeExpressAd.h @@ -8,6 +8,22 @@ #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> +#import "GDTSDKDefines.h" + +/** + * 瑙嗛妯℃澘骞垮憡鎾斁鍣ㄧ姸鎬� + * + * 鎾斁鍣ㄥ彧鍙兘澶勪簬浠ヤ笅鐘舵�佷腑鐨勪竴绉� + * + */ +typedef NS_ENUM(NSUInteger, GDTMediaPlayerStatus) { + GDTMediaPlayerStatusInitial = 0, // 鍒濆鐘舵�� + GDTMediaPlayerStatusLoading = 1, // 鍔犺浇涓� + GDTMediaPlayerStatusStarted = 2, // 寮�濮嬫挱鏀� + GDTMediaPlayerStatusPaused = 3, // 鐢ㄦ埛琛屼负瀵艰嚧鏆傚仠 + GDTMediaPlayerStatusStoped = 4, // 鎾斁鍋滄 + GDTMediaPlayerStatusError = 5, // 鎾斁鍑洪敊 +}; @class GDTNativeExpressAdView; @class GDTNativeExpressAd; @@ -26,14 +42,14 @@ - (void)nativeExpressAdFailToLoad:(GDTNativeExpressAd *)nativeExpressAd error:(NSError *)error; /** - * 鍘熺敓妯℃澘骞垮憡娓叉煋鎴愬姛 + * 鍘熺敓妯℃澘骞垮憡娓叉煋鎴愬姛, 姝ゆ椂鐨� nativeExpressAdView.size.height 鏍规嵁 size.width 瀹屾垚浜嗗姩鎬佹洿鏂般�� */ -- (void) nativeExpressAdViewRenderSuccess:(GDTNativeExpressAdView *)nativeExpressAdView; +- (void)nativeExpressAdViewRenderSuccess:(GDTNativeExpressAdView *)nativeExpressAdView; /** * 鍘熺敓妯℃澘骞垮憡娓叉煋澶辫触 */ -- (void) nativeExpressAdViewRenderFail:(GDTNativeExpressAdView *)nativeExpressAdView; +- (void)nativeExpressAdViewRenderFail:(GDTNativeExpressAdView *)nativeExpressAdView; /** * 鍘熺敓妯℃澘骞垮憡鏇濆厜鍥炶皟 @@ -66,7 +82,7 @@ - (void)nativeExpressAdViewWillDissmissScreen:(GDTNativeExpressAdView *)nativeExpressAdView; /** - * 鍏ㄥ睆骞垮憡椤靛叧闂� + * 鍏ㄥ睆骞垮憡椤靛皢瑕佸叧闂� */ - (void)nativeExpressAdViewDidDissmissScreen:(GDTNativeExpressAdView *)nativeExpressAdView; @@ -74,6 +90,31 @@ * 鍘熺敓妯℃澘骞垮憡鐐瑰嚮涔嬪悗搴旂敤杩涘叆鍚庡彴鏃跺洖璋� */ - (void)nativeExpressAdViewApplicationWillEnterBackground:(GDTNativeExpressAdView *)nativeExpressAdView; + +/** + * 鍘熺敓妯℃澘瑙嗛骞垮憡 player 鎾斁鐘舵�佹洿鏂板洖璋� + */ +- (void)nativeExpressAdView:(GDTNativeExpressAdView *)nativeExpressAdView playerStatusChanged:(GDTMediaPlayerStatus)status; + +/** + * 鍘熺敓瑙嗛妯℃澘璇︽儏椤� WillPresent 鍥炶皟 + */ +- (void)nativeExpressAdViewWillPresentVideoVC:(GDTNativeExpressAdView *)nativeExpressAdView; + +/** + * 鍘熺敓瑙嗛妯℃澘璇︽儏椤� DidPresent 鍥炶皟 + */ +- (void)nativeExpressAdViewDidPresentVideoVC:(GDTNativeExpressAdView *)nativeExpressAdView; + +/** + * 鍘熺敓瑙嗛妯℃澘璇︽儏椤� WillDismiss 鍥炶皟 + */ +- (void)nativeExpressAdViewWillDismissVideoVC:(GDTNativeExpressAdView *)nativeExpressAdView; + +/** + * 鍘熺敓瑙嗛妯℃澘璇︽儏椤� DidDismiss 鍥炶皟 + */ +- (void)nativeExpressAdViewDidDismissVideoVC:(GDTNativeExpressAdView *)nativeExpressAdView; @end @@ -84,12 +125,29 @@ */ @property (nonatomic, weak) id<GDTNativeExpressAdDelegete> delegate; + +/** + * 闈� WiFi 缃戠粶锛屾槸鍚﹁嚜鍔ㄦ挱鏀俱�傞粯璁� NO銆俵oadAd 鍓嶈缃�� + */ + +@property (nonatomic, assign) BOOL videoAutoPlayOnWWAN; + +/** + * 鑷姩鎾斁鏃讹紝鏄惁闈欓煶銆傞粯璁� YES銆俵oadAd 鍓嶈缃�� + */ +@property (nonatomic, assign) BOOL videoMuted; + /** * 鏋勯�犳柟娉� - * 璇﹁В锛歛ppkey鏄簲鐢╥d, placementId鏄箍鍛婁綅id, adSize鏄箍鍛婂睍绀虹殑瀹介珮(鍏蜂綋鍙傜湅鑱旂洘骞垮憡浣嶉厤缃�) + * 璇﹁В锛歛ppId - 濯掍綋 ID + * placementId - 骞垮憡浣� ID + * adSize - 骞垮憡灞曠ず鐨勫楂� */ --(instancetype)initWithAppkey:(NSString *)appkey placementId:(NSString *)placementId adSize:(CGSize)size; +- (instancetype)initWithAppId:(NSString *)appId placementId:(NSString *)placementId adSize:(CGSize)size; -- (void)loadAd:(int)count; +- (void)loadAd:(NSInteger)count; + +#pragma mark - DEPRECATED +- (instancetype)initWithAppkey:(NSString *)appkey placementId:(NSString *)placementId adSize:(CGSize)size GDT_DEPRECATED_MSG_ATTRIBUTE("use initWithAppId:placementId:adSize instead."); @end -- Gitblit v1.8.0