admin
2022-09-04 fa05f89529e05078b29606e4beda3de5cfdce485
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
//
//  BUAdSDKManager.h
//  BUAdSDK
//
//  Copyright © 2017 bytedance. All rights reserved.
//
 
#import "BUInterfaceBaseObject.h"
#import <UIKit/UIKit.h>
#import "BUAdSDKDefines.h"
#import "BUMopubAdMarkUpDelegate.h"
 
 
typedef NS_ENUM(NSInteger, BUAdSDKInitializationState) {
    BUAdSDKInitializationStateNotReady = 0,
    BUAdSDKInitializationStateReady = 1
};
 
typedef void (^BUConfirmGDPR)(BOOL isAgreed);
 
typedef void (^BUCompletionHandler)(BOOL success,NSError *error);
 
 __attribute__((objc_subclassing_restricted))
@interface BUAdSDKManager : BUInterfaceBaseObject
 
@property (nonatomic, copy, readonly, class) NSString *SDKVersion;
 
/// The SDK initialization state
@property (nonatomic, assign, readonly, class) BUAdSDKInitializationState initializationState;
 
/// The synchronize initialization method
/// @param completionHandler Callback to the initialization state of the calling thread
+ (void)startWithSyncCompletionHandler:(BUCompletionHandler)completionHandler;
 
/// The asynchronize initialization method
/// @param completionHandler Callback to the initialization state of the non-main thread
+ (void)startWithAsyncCompletionHandler:(BUCompletionHandler)completionHandler;
 
/// Open GDPR Privacy for the user to choose before setAppID.
+ (void)openGDPRPrivacyFromRootViewController:(UIViewController *)rootViewController confirm:(BUConfirmGDPR)confirm;
 
@end
 
 
@interface BUAdSDKManager (MopubAdaptor) <BUMopubAdMarkUpDelegate>
 
@end
 
@interface BUAdSDKManager (BUAdNR)
+ (NSString *)bunr_dictionaryWithSlot:(BUAdSlot *)slot isDynamicRender:(BOOL)isDynamicRender;
@end
 
 
@interface BUAdSDKManager (InterfaceReadyReplacement)
/**
This property should be set when integrating non-China and china areas at the same time, otherwise it need'nt to be set.you‘d better set Territory first,  if you need to set them
@param territory : Regional value
*/
+ (void)setTerritory:(BUAdSDKTerritory)territory;
/**
 Register the App key that’s already been applied before requesting an ad from TikTok Audience Network.
 @param appID : the unique identifier of the App
 */
+ (void)setAppID:(NSString *)appID;
 
/**
 @param  secretKey the unique identifier of the App, more safely
 */
+ (void)setSecretKey:(NSString *)secretKey;
/**
 Configure development mode.
 @param level : default BUAdSDKLogLevelNone
 */
+ (void)setLoglevel:(BUAdSDKLogLevel)level;
 
/* Set the age group of the user, the interface only works only works in CN environment.
 * @params ageGroup: default BUAdSDKAgeGroupAdult
 */
+ (void)setAgeGroup:(BUAdSDKAgeGroup)ageGroup;
 
/* Set the COPPA of the user, COPPA is the short of Children's Online Privacy Protection Rule, the interface only works in the United States.
 * @params Coppa  0 adult, 1 child
 */
+ (void)setCoppa:(NSInteger)coppa;
 
/// Set the user's keywords, such as interests and hobbies, etc.
/// Must obtain the consent of the user before incoming.
+ (void)setUserKeywords:(NSString *)keywords;
 
/// set additional user information.
+ (void)setUserExtData:(NSString *)data;
 
/// Solve the problem when your WKWebview post message empty,default is BUOfflineTypeWebview
+ (void)setOfflineType:(BUOfflineType)type;
 
/// Custom set the GDPR of the user,GDPR is the short of General Data Protection Regulation,the interface only works in The European.
/// @params GDPR 0 close privacy protection, 1 open privacy protection
+ (void)setGDPR:(NSInteger)GDPR;
 
/// Custom set the CCPA of the user,CCPA is the short of General Data Protection Regulation,the interface only works in USA.
/// @params CCPA  0: "sale" of personal information is permitted, 1: user has opted out of "sale" of personal information -1: default
+ (void)setCCPA:(NSInteger)CCPA;
 
/// Custom set the AB vid of the user. Array element type is NSNumber
+ (void)setABVidArray:(NSArray<NSNumber *> *)abvids;
 
/// Custom set the tob ab sdk version of the user.
+ (void)setABSDKVersion:(NSString *)abSDKVersion;
 
 
/// Custom set idfa value
+ (void)setCustomIDFA:(NSString *)idfa;
 
 
 
+ (void)setThemeStatus:(BUAdSDKThemeStatus)themeStatus;
 
/// get appID
+ (NSString *)appID;
 
/// get GDPR
+ (NSInteger)GDPR;
 
/// get coppa( -1:defalut 0.adult 1.child  )
+ (NSInteger)coppa;
 
/// get CCPA
+ (NSInteger)CCPA;
 
/**
 Whether to allow SDK to modify the category and options of AVAudioSession when playing audio, default is NO.
 The category set by the SDK is AVAudioSessionCategoryAmbient, and the options are AVAudioSessionCategoryOptionDuckOthers
 */
+ (void)allowModifyAudioSessionSetting:(BOOL)isAllow;
 
 
+ (BUAdSDKThemeStatus)themeStatus;
 
@end