BUAdSDKConfiguration.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. //
  2. // BUAdSDKConfiguration.h
  3. // BUAdSDK
  4. //
  5. // Created by Eason on 2021/3/4.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import "BUAdSDKDefines.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface BUAdSDKConfiguration : NSObject
  11. + (instancetype)configuration;
  12. /// This property should be set when integrating non-China and china areas at the same time,
  13. /// otherwise it need'nt to be set.you‘d better set Territory first, if you need to set them
  14. @property (nonatomic, assign) BUAdSDKTerritory territory;
  15. ///Register the App key that’s already been applied before requesting an ad from TikTok Audience Network.
  16. /// the unique identifier of the App
  17. @property (nonatomic, copy) NSString *appID;
  18. /// Configure development mode. default BUAdSDKLogLevelNone
  19. @property (nonatomic, assign) BUAdSDKLogLevel logLevel;
  20. /// the COPPA of the user, COPPA is the short of Children's Online Privacy Protection Rule,
  21. /// the interface only works in the United States.
  22. /// Coppa 0 adult, 1 child
  23. /// You can change its value at any time
  24. @property (nonatomic, strong) NSNumber *coppa;
  25. /// additional user information.
  26. @property (nonatomic, copy) NSString *userExtData;
  27. /// Solve the problem when your WKWebview post message empty,
  28. /// default is BUOfflineTypeWebview
  29. @property (nonatomic, assign) BUOfflineType webViewOfflineType;
  30. /// Custom set the GDPR of the user,GDPR is the short of General Data Protection Regulation,the interface only works in The European.
  31. /// GDPR 0 close privacy protection, 1 open privacy protection
  32. /// You can change its value at any time
  33. @property (nonatomic, strong) NSNumber *GDPR;
  34. /// Custom set the CCPA of the user,CCPA is the short of General Data Protection Regulation,the interface only works in USA.
  35. /// CCPA 0: "sale" of personal information is permitted, 1: user has opted out of "sale" of personal information -1: default
  36. @property (nonatomic, strong) NSNumber *CCPA;
  37. @property (nonatomic, strong) NSNumber *themeStatus;
  38. /// Custom set the AB vid of the user. Array element type is NSNumber
  39. @property (nonatomic, strong) NSArray<NSNumber *> *abvids;
  40. /// Custom set the tob ab sdk version of the user.
  41. @property (nonatomic, copy) NSString *abSDKVersion;
  42. /// Custom set idfa value
  43. /// You can change its value at any time
  44. @property (nonatomic, copy) NSString *customIdfa;
  45. /**
  46. Whether to allow SDK to modify the category and options of AVAudioSession when playing audio, default is NO.
  47. The category set by the SDK is AVAudioSessionCategoryAmbient, and the options are AVAudioSessionCategoryOptionDuckOthers
  48. */
  49. @property (atomic, assign) BOOL allowModifyAudioSessionSetting;
  50. @end
  51. NS_ASSUME_NONNULL_END