BUNativeExpressAdManager.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //
  2. // BUNativeExpressAdManager.h
  3. // BUAdSDK
  4. //
  5. // Created by bytedance on 2019/1/20.
  6. // Copyright © 2019年 bytedance. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <UIKit/UIKit.h>
  10. #import "BUAdSlot.h"
  11. #import "BUMaterialMeta.h"
  12. #import "BUNativeExpressAdView.h"
  13. #import "BUDislikeWords.h"
  14. #import "BUPlayerPublicDefine.h"
  15. #import "BUMopubAdMarkUpDelegate.h"
  16. #import "BUNativeExpressAdViewDelegate.h"
  17. NS_ASSUME_NONNULL_BEGIN
  18. @interface BUNativeExpressAdManager : NSObject <BUMopubAdMarkUpDelegate>
  19. @property (nonatomic, strong, nullable) BUAdSlot *adslot;
  20. @property (nonatomic, assign, readwrite) CGSize adSize;
  21. /**
  22. The delegate for receiving state change messages from a BUNativeExpressAdManager
  23. */
  24. @property (nonatomic, weak, nullable) id<BUNativeExpressAdViewDelegate> delegate;
  25. /**
  26. @param size expected ad view size,when size.height is zero, acture height will match size.width
  27. */
  28. - (instancetype)initWithSlot:(BUAdSlot * _Nullable)slot adSize:(CGSize)size;
  29. /**
  30. The number of ads requested,The maximum is 3
  31. */
  32. - (void)loadAdDataWithCount:(NSInteger)count;
  33. @end
  34. @interface BUNativeExpressAdManager (Deprecated)
  35. - (void)loadAd:(NSInteger)count __attribute__((deprecated("Use loadAdDataWithCount: instead.")));
  36. @end
  37. NS_ASSUME_NONNULL_END