commit | author | age
|
6e1425
|
1 |
// |
H |
2 |
// WASDKCore.h |
|
3 |
// WASDKUI |
|
4 |
// |
|
5 |
// Created by wuyx on 15/9/24. |
|
6 |
// Copyright (c) 2015年 GHW-T-01. All rights reserved. |
|
7 |
// |
|
8 |
|
|
9 |
#import <Foundation/Foundation.h> |
|
10 |
#import <WASdkIntf/WASdkIntf.h> |
|
11 |
#import <WACommon/WACommon.h> |
09e73a
|
12 |
NS_ASSUME_NONNULL_BEGIN |
6e1425
|
13 |
#define WASdkLog(fmt,...) {\ |
H |
14 |
if([WACoreProxy isDebugMode]){\ |
|
15 |
NSLog((@"WASDK LOG [(version %@) %s ]:" fmt), [WASdkCore getVersion],__FUNCTION__, ##__VA_ARGS__);\ |
|
16 |
[WACoreProxy addLogWithString:[NSString stringWithFormat:(@"(version %@) %s ]:" fmt),[WASdkCore getVersion],__FUNCTION__, ##__VA_ARGS__]];\ |
|
17 |
}\ |
|
18 |
} |
|
19 |
|
|
20 |
@interface WASdkCore : WACore |
|
21 |
|
|
22 |
/** |
|
23 |
* 初始化 |
|
24 |
*/ |
|
25 |
+(void)init; |
961c25
|
26 |
|
L |
27 |
|
|
28 |
/** |
|
29 |
* 初始化(20221027 新增回掉) |
|
30 |
*/ |
|
31 |
+(void)initWithCompletionHandler:(void (^_Nullable)())completionHandler; |
|
32 |
|
6e1425
|
33 |
/** |
H |
34 |
* 设置调试模式 |
|
35 |
* |
|
36 |
* @param sdkType 0 国外,1 国内 |
|
37 |
*/ |
|
38 |
+(void)setSDKType:(NSInteger)sdkType; |
|
39 |
/** |
|
40 |
* 获取sdk类型 0 国外,1 国内 |
|
41 |
*/ |
|
42 |
+(NSInteger)getSDKType; |
|
43 |
/** |
|
44 |
* 设置调试模式 |
|
45 |
* |
|
46 |
* @param isDebugMode |
|
47 |
*/ |
|
48 |
+(void)setDebugMode:(BOOL)isDebugMode; |
|
49 |
|
|
50 |
/** |
|
51 |
* 是否调试模式 |
|
52 |
*/ |
|
53 |
+(BOOL)isDebugMode; |
|
54 |
|
|
55 |
/** |
|
56 |
* 获取gameUserId |
|
57 |
*/ |
|
58 |
+(NSString*)getGameUserId; |
|
59 |
|
|
60 |
/** |
|
61 |
* 获取serverId |
|
62 |
*/ |
|
63 |
+(NSString*)getServerId; |
|
64 |
|
|
65 |
/** |
|
66 |
* 设置userId |
|
67 |
*/ |
|
68 |
+(NSString*)getUserId; |
|
69 |
|
|
70 |
/** |
|
71 |
* 获取level |
|
72 |
*/ |
|
73 |
+(int)getLevel; |
|
74 |
|
|
75 |
|
|
76 |
/** |
|
77 |
* appId |
|
78 |
*/ |
|
79 |
+(NSString*)getAppId; |
|
80 |
|
|
81 |
/** |
|
82 |
* appKey |
|
83 |
*/ |
|
84 |
+(NSString*)getAppKey; |
|
85 |
|
|
86 |
/** |
|
87 |
* clientId |
|
88 |
*/ |
|
89 |
+(NSString*)getClientId; |
|
90 |
|
|
91 |
/** |
|
92 |
* 设置clientId |
|
93 |
* |
|
94 |
* @param clientId |
|
95 |
*/ |
|
96 |
+(void)setClientId:(NSString*)clientId; |
|
97 |
|
|
98 |
/** |
|
99 |
* 添加日志 |
|
100 |
*/ |
|
101 |
+(void)addLogWithString:(NSString*)string; |
|
102 |
|
|
103 |
+(void)addEventContentWithString:(NSString*)string; |
|
104 |
|
64e824
|
105 |
+(void)setParamConfig:(void(^)(NSError* error,WAParamConfigObj* config))block; |
6e1425
|
106 |
|
64e824
|
107 |
+(WAParamConfigObj*)getParamConfig; |
6e1425
|
108 |
/** |
H |
109 |
* 版本信息 |
|
110 |
*/ |
|
111 |
+(NSString*)getVersion; |
d08f6f
|
112 |
|
09e73a
|
113 |
/** |
L |
114 |
|
|
115 |
sdk内部使用,tta结果后,调用是否需要弹出(didomisdk 初始化快,tta结果慢点情况) |
|
116 |
*/ |
|
117 |
+ (BOOL)needShowCmpUI; |
|
118 |
+ (void)showDidomiUI; |
d08f6f
|
119 |
|
09e73a
|
120 |
+ (void)showConsentPreferences; |
6e1425
|
121 |
@end |
09e73a
|
122 |
NS_ASSUME_NONNULL_END |