KSAdSDKManager.h
1.38 KB
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
//
// KSAdSDKManager.h
// KSAdSDK
//
// Created by 徐志军 on 2019/8/28.
// Copyright © 2019 KuaiShou. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "KSAdSDKError.h"
typedef NS_ENUM(NSInteger, KSAdSDKLogLevel) {
KSAdSDKLogLevelAll = 0,
KSAdSDKLogLevelVerbose, // 此类别的日记不会记录到日志文件中
KSAdSDKLogLevelDebug,
KSAdSDKLogLevelVerify,
KSAdSDKLogLevelInfo,
KSAdSDKLogLevelWarn,
KSAdSDKLogLevelError,
KSAdSDKLogLevelOff,
};
NS_ASSUME_NONNULL_BEGIN
@class KSAdUserInfo;
@interface KSAdSDKManager : NSObject
/// SDK 版本号
@property (nonatomic, readonly, class) NSString *SDKVersion;
/// Auto play video on Non Wi-Fi environment or not, default is NO
@property (nonatomic, assign, class) BOOL dataFlowAutoStart;
/**
* @brief start ad sdk
* @param appId ad app id
*/
+ (void)setAppId:(NSString *)appId;
// optional
+ (void)setAppName:(NSString *)appName;
// optional
+ (void)setUserInfoBlock:(void(^)(KSAdUserInfo *))userInfoBlock;
// optional
+ (void)setAppTag:(NSString *)appTag;
/**
Configure development mode.
@param level : default BUAdSDKLogLevelNone
*/
// optional
+ (void)setLoglevel:(KSAdSDKLogLevel)level;
+ (void)setAutoHideUIRemoteKeyboardWindow:(BOOL)autoHideUIRemoteKeyboardWindow;
+ (NSString *)appId;
+ (NSString *)deviceId; //获取did
@end
NS_ASSUME_NONNULL_END