BUDislike.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // BUDislike.h
  3. // BUAdSDK
  4. //
  5. // Copyright © 2018年 bytedance. All rights reserved.
  6. //
  7. #import <Foundation/Foundation.h>
  8. @class BUNativeAd;
  9. @class BUDislikeWords;
  10. /**
  11. !!! important :
  12. Please report to the sdk the user’s selection, inaccurate model will result in poor ad performance.
  13. */
  14. @interface BUDislike : NSObject
  15. /**
  16. The array of BUDislikeWords which have reasons for dislike.
  17. The application can show the secondary page for dislike if '[filterWords.options count] > 0'.
  18. */
  19. @property (nonatomic, copy, readonly) NSArray<BUDislikeWords *> *filterWords;
  20. /**
  21. Initialize with nativeAd to get filterWords.
  22. return BUDislike
  23. */
  24. - (instancetype)initWithNativeAd:(BUNativeAd *)nativeAd;
  25. /**
  26. Call this method after the user chose dislike reasons.
  27. (Only for object which uses 'BUDislike.filterWords')
  28. @param filterWord : reasons for dislike
  29. @note : don't need to call this method if '[filterWords.options count] > 0'.
  30. @note :please dont't change 'BUDislike.filterWords'.
  31. 'filterWord' must be one of 'BUDislike.filterWords', otherwise it will be filtered.
  32. */
  33. - (void)didSelectedFilterWordWithReason:(BUDislikeWords *)filterWord;
  34. @end