lpw
2024-06-12 e0f1c26b35a0522c5a5d946d33c8f7e907bcc1f5
commit | author | age
d1f6ab 1 //
H 2 //  WACore.h
3 //  WASdkIntfUI
4 //
5 //  Created by wuyx on 16/3/1.
6 //  Copyright © 2016年 GHW-T-01. All rights reserved.
7 //
8
9 #import <Foundation/Foundation.h>
10 #import <UIKit/UIKit.h>
e0f1c2 11 NS_ASSUME_NONNULL_BEGIN
L 12
d0b2df 13 @class WAParamConfigObj;
d1f6ab 14 @interface WACore : NSObject
H 15 -(void)initialize;
d521fa 16 -(void)initWithCompletionHandler:(void (^_Nullable)())completionHandler;
d1f6ab 17 -(void)initAppEventTracker;
H 18 -(void)setSDKType:(NSInteger)sdkType;
19 -(NSInteger)getSDKType;
20 -(BOOL)isDebugMode;
21 -(void)setDebugMode:(BOOL)isDebugMode;
22 -(BOOL)displayLog;
40ff0c 23 -(void)setClientId:(NSString*)clientId;
d1f6ab 24 -(NSString*)getUserId;
H 25 -(void)setServerId:(NSString *)serverId;
26 -(NSString*)getGameUserId;
27 -(NSString*)getServerId;
28 -(void)setLevel:(int)level;
29 -(int)getLevel;
30 -(void)setGameUserId:(NSString*)gameUserId;
45b3f1 31 -(void)setNickName:(NSString*)nikeName;
H 32 -(void)setPuserName:(NSString *)puserName;
33 -(void)setUserFlag:(NSString*)userFlag;
34 -(NSString*)getPuserName;
35 -(NSString*)getNickName;
36 -(NSString*)getUserFlag;
d1f6ab 37 -(void)addLogWithString:(NSString*)string;
H 38 -(void)addLogWithoutBtn:(NSString*)string;
39 -(NSString*)getSdkVersion;
40 -(NSString*)getWaSdkServerUrl;
41 -(NSString*)getAppKey;
42 -(NSString*)getPublishChannel;
43 -(NSString*)getChannel;
44 -(NSString*)getAppID;
45 -(NSString*)getOS;
46 -(NSString*)getSdkVer;
47 -(NSString*)getSdkId;
48 -(NSString*)getSessionId;
45b3f1 49 -(NSString *)getPrivacyUrl;
H 50 -(NSString *)getPrivacyUpdateTime;
51 -(void)showPrivacyUI:(void(^)(BOOL isClose))handler;
3a96ff 52 -(void)showPrivacyUITitle:(NSString*)title url:(NSString*)url handle:(void(^)(BOOL isClose))handler;
L 53
d1f6ab 54 -(NSString*)getDeepLinkWithUrl:(NSURL*)url;
d0b2df 55 -(WAParamConfigObj*)getParamConfig;
d1f6ab 56 -(void)fetchDeferredAppLink:(void(^)(NSURL *url, NSError *error))handler;
H 57 -(void)addEventContentWithString:(NSString*)string;
58 -(void)eventLogWithPlatform:(NSString*)platform eventName:(NSString*)eventName parameters:(NSDictionary*)parameters color:(UIColor*)color;
45b3f1 59 /** 检测设备是否越狱 */
H 60 - (BOOL)isJailBreak;
28ea02 61
e0f1c2 62 NS_ASSUME_NONNULL_END
28ea02 63
d1f6ab 64 @end