BUNativeAdRelatedView.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //
  2. // BUNativeAdRelatedView.h
  3. // BUAdSDK
  4. //
  5. // Copyright © 2018年 bytedance. All rights reserved.
  6. //
  7. #import <UIKit/UIKit.h>
  8. #import "BUVideoAdView.h"
  9. #import "BUNativeAd.h"
  10. #import "BUVideoAdReportor.h"
  11. #import "BUDislikeReportor.h"
  12. NS_ASSUME_NONNULL_BEGIN
  13. @interface BUNativeAdRelatedView : NSObject
  14. /**
  15. Need to actively add to the view in order to deal with the feedback and improve the accuracy of ad.
  16. */
  17. @property (nonatomic, strong, readonly, nullable) UIButton *dislikeButton;
  18. /**
  19. Promotion label.Need to actively add to the view.
  20. */
  21. @property (nonatomic, strong, readonly, nullable) UILabel *adLabel;
  22. /**
  23. Ad logo.Need to actively add to the view.
  24. */
  25. @property (nonatomic, strong, readonly, nullable) UIImageView *logoImageView;
  26. /**
  27. Ad logo + Promotion label.Need to actively add to the view.
  28. */
  29. @property (nonatomic, strong, readonly, nullable) UIImageView *logoADImageView;
  30. /**
  31. Video ad view. Need to actively add to the view. Can not coexist with videoAdReportor.
  32. */
  33. @property (nonatomic, strong, readonly, nullable) BUVideoAdView *videoAdView;
  34. /**
  35. Video ad Reportor. Can not coexist with videoAdView.
  36. */
  37. @property (nonatomic, strong, readonly, nullable) id<BUVideoAdReportor> videoAdReportor;
  38. /**
  39. Refresh the data every time you get new datas in order to show ad perfectly.
  40. */
  41. - (void)refreshData:(BUNativeAd *)nativeAd;
  42. //@property (nonatomic, copy) BOOL(^expectUseCustomVideoPlayer)(BOOL isSupported, NSString *videoUrl);
  43. @end
  44. NS_ASSUME_NONNULL_END