commit | author | age
|
dcdc07
|
1 |
// |
W |
2 |
// WAIUser.h |
|
3 |
// WASdkIntfUI |
|
4 |
// |
|
5 |
// Created by GHW-T-01 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> |
248d1a
|
11 |
#import <WASdkIntf/WAUserProxy.h> |
2174b5
|
12 |
#import <WASdkIntf/WASdkIntf.h> |
dcdc07
|
13 |
@interface WAIUser : NSObject |
W |
14 |
-(void)setLoginFlowType:(int)flowType; |
|
15 |
-(int)getLoginFlowType; |
|
16 |
-(WAAppUser*)getAccountInfo; |
|
17 |
-(void)loginWithExtInfo:(NSString *)extInfo delegate:(id<WALoginDelegate>)delegate; |
d814a6
|
18 |
//传递平台,针对一种平台有多种登录方式,如weblogin,wa中的guest和wa登录 |
L |
19 |
-(void)loginPlatform:(NSString*)platform WithExtInfo:(NSString *)extInfo delegate:(id<WALoginDelegate>)delegate; |
dcdc07
|
20 |
-(void)logout; |
W |
21 |
-(void)bindingAccountWithExtInfo:(NSString*)extInfo delegate:(id<WAAccountBindingDelegate>)delegate; |
|
22 |
-(void)bindingAccountWithPlatform:(NSString *const)platform bindingResult:(WABindingResult*)bindingResult extInfo:(NSString *)extInfo delegate:(id<WAAccountBindingDelegate>)delegate; |
2174b5
|
23 |
|
dcdc07
|
24 |
-(void)queryBoundAccountWithCompleteBlock:(void(^)(NSError* error,NSArray<WAAccount *>* accounts))block; |
W |
25 |
-(void)unBindAccountWithPlatform:(NSString *const)platform platformUserId:(NSString *)pUserId completeBlock:(void (^)(NSError *))completeBlock; |
|
26 |
-(void)switchAccountWithPlatform:(NSString *const)platform completeBlock:(void (^)(NSError *, WALoginResult *))completeBlock; |
|
27 |
-(void)createNewAccountWithCompleteBlock:(void(^)(NSError* error,WALoginResult* result))completeBlock; |
|
28 |
-(void)login:(id<WALoginViewDelegate>)delegate cacheEnabled:(BOOL)cacheEnabled; |
|
29 |
-(void)hide; |
|
30 |
-(void)clearLoginCache; |
|
31 |
-(void)openAccountManager:(id<WAAcctManagerDelegate>)delegate; |
|
32 |
|
|
33 |
-(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions; |
|
34 |
|
|
35 |
-(void)applicationDidBecomeActive:(UIApplication *)application; |
|
36 |
|
962836
|
37 |
-(void)applicationWillEnterForeground:(UIApplication *)application; |
W |
38 |
|
|
39 |
-(void)applicationDidEnterBackground:(UIApplication *)application; |
|
40 |
|
dcdc07
|
41 |
-(BOOL)application:(UIApplication *)application |
W |
42 |
openURL:(NSURL *)url |
|
43 |
sourceApplication:(NSString *)sourceApplication |
|
44 |
annotation:(id)annotation; |
|
45 |
|
1417b8
|
46 |
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options; |
H |
47 |
|
1ac090
|
48 |
- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url; |
d814a6
|
49 |
//当一个新的场景被创建时调用,可以在这个方法中配置场景。 |
L |
50 |
- (void)scene:(UIScene *)scene willConnectToSession:(UISceneSession *)session options:(UISceneConnectionOptions *)connectionOptions API_AVAILABLE(ios(13.0)); |
|
51 |
// 当场景被销毁时调用。 |
|
52 |
- (void)sceneDidDisconnect:(UIScene *)scene API_AVAILABLE(ios(13.0)); |
|
53 |
//当场景变成活跃状态时调用。 |
|
54 |
- (void)sceneDidBecomeActive:(UIScene *)scene API_AVAILABLE(ios(13.0)); |
|
55 |
//当场景将要变成非活跃状态时调用。 |
|
56 |
- (void)sceneWillResignActive:(UIScene *)scene API_AVAILABLE(ios(13.0)); |
|
57 |
//当应用程序即将进入前台时调用。 |
|
58 |
- (void)sceneWillEnterForeground:(UIScene *)scene API_AVAILABLE(ios(13.0)); |
|
59 |
//当应用程序进入后台时调用。 |
|
60 |
- (void)sceneDidEnterBackground:(UIScene *)scene API_AVAILABLE(ios(13.0)); |
|
61 |
//当别的APP通过URL地址,打开我们的app时调用 |
|
62 |
- (void)scene:(UIScene *)scene openURLContexts:(NSSet<UIOpenURLContext *> *)URLContexts API_AVAILABLE(ios(13.0)); |
|
63 |
- (void)scene:(UIScene *)scene continueUserActivity:(NSUserActivity *)userActivity API_AVAILABLE(ios(13.0)); |
1ac090
|
64 |
|
dcdc07
|
65 |
-(void)loginWithResult:(WALoginResult*)result delegate:(id<WALoginDelegate>)delegate; |
W |
66 |
-(void)loginWithResult:(WALoginResult*)result extInfo:(NSString*)extInfo delegate:(id<WALoginDelegate>)delegate; |
|
67 |
|
|
68 |
-(void)setCurrentLoginPlatform:(NSString *const)platform; |
|
69 |
-(NSString*)getCurrentLoginPlatform; |
|
70 |
-(WALoginResult*)getCurrentLoginResult; |
|
71 |
|
|
72 |
-(void)didUserLogin:(void(^)(NSError* error,BOOL didLogin))block; |
d9782e
|
73 |
|
H |
74 |
- (void)getUserCenterNotice:(id<WAUserCenterNoticeDelegate>)delegate; |
|
75 |
|
|
76 |
- (void)showUserCenterNoticeUI:(id<WAUserCenterNoticeUIDelegate>)delegate; |
|
77 |
|
1ac090
|
78 |
-(void)queryUserCertificationInfo:(void(^)(WACertificationInfo *certificationInfo,NSError *error))callBackBlock; |
L |
79 |
|
|
80 |
//查询是否已绑定第三方账号 (国内) |
|
81 |
-(BOOL)isBoundPlatformAccount; |
|
82 |
|
|
83 |
/*! |
|
84 |
@discussion 检测是否可以打开账号绑定、账号切换、实名认证接口 |
|
85 |
如果返回NO,没有登录 canOpenRealNameAuth 已经实名 |
|
86 |
*/ |
|
87 |
- (BOOL)canOpenAccoutbind; |
|
88 |
- (BOOL)canOpenAccoutSwitch; |
|
89 |
- (BOOL)canOpenRealNameAuth; |
|
90 |
|
|
91 |
/*! |
|
92 |
@discussion 打开账户绑定界面 |
|
93 |
*/ |
|
94 |
- (void)openAccoutbindManager:(void(^)(NSError* error,WABindingResult * bindResult))block; |
|
95 |
|
|
96 |
|
|
97 |
/*! |
|
98 |
@discussion 打开账户切换界面 |
|
99 |
*/ |
|
100 |
- (void)openAccoutSwithchManager:(void(^)(NSError* error,WALoginResult * loginResult))block; |
|
101 |
|
|
102 |
|
|
103 |
/*! |
|
104 |
@discussion 打开实名认证界面 |
|
105 |
*/ |
|
106 |
- (void)openRealNameAuthManager:(void(^)(NSError* error,WACertificationInfo * certificationInfo))block; |
|
107 |
|
|
108 |
|
|
109 |
|
|
110 |
/*! |
|
111 |
@discussion 打开as评分弹框 |
|
112 |
*/ |
|
113 |
- (void)openReview; |
|
114 |
|
79188b
|
115 |
|
L |
116 |
/*! |
|
117 |
@discussion 打开idfa弹框授权 status状态与 ATTrackingManagerAuthorizationStatus 一致 |
|
118 |
*/ |
|
119 |
- (void)openTTAAuthorizationWithCompletionHandler:(void(^)(NSError* error,NSUInteger status))block; |
|
120 |
|
|
121 |
/*! |
|
122 |
@discussion 隐私协议弹框 |
|
123 |
*/ |
|
124 |
- (void)openPrivacyAgreementWindow:(void(^)(NSError* error,NSUInteger status))block; |
|
125 |
|
|
126 |
|
2174b5
|
127 |
|
L |
128 |
|
|
129 |
|
|
130 |
//****************************************账号删除有关接口********************************************************************* |
|
131 |
/*! |
|
132 |
@discussion 检测是否可调用玩家身份确认接口 |
|
133 |
*/ |
|
134 |
- (BOOL) canCheckIdentity; |
|
135 |
|
|
136 |
|
|
137 |
|
|
138 |
//玩家身份确认接口 |
|
139 |
- (void)identityCheck:(NSString*)realName idCard:(NSString*)idCard completeBlock:(void(^)(NSError* error))block; |
|
140 |
|
|
141 |
//删除账号授权,拿到第三方的token信息,如 signinwithapple拿到authorizationCode |
|
142 |
-(void)deleteAccounAuthorizationWithPlatform:(NSString*)platform completeBlock:(void(^)(NSError* error,WADeleteRequestModel*deleteResult))block; |
|
143 |
|
|
144 |
/*! |
|
145 |
@discussion 账号删除 |
|
146 |
*/ |
|
147 |
- (void)requestDeleteAccout:(WADeleteRequestModel*)deleteResult completeBlock:(void(^)(NSError* error,WADeleteResult*result))completeBlock; |
|
148 |
// 取消删除 |
|
149 |
-(void)cancelRequestDeleteAccoutWithUserid:(NSString*)userid callback:(void (^)(NSError *))completeBlock; |
|
150 |
|
|
151 |
|
|
152 |
|
|
153 |
- (void)requestDeleteAccoutUI:(void(^)(NSError *error, NSUInteger status))completeBlock; |
248d1a
|
154 |
|
L |
155 |
|
|
156 |
|
|
157 |
|
|
158 |
/*! |
|
159 |
@discussion 打开游戏评分功能 |
|
160 |
*/ |
|
161 |
- (void)openGameReview:(void(^)(OpenGameReviewState status))block; |
|
162 |
|
|
163 |
|
00c86c
|
164 |
/*! |
L |
165 |
@discussion 弹出cmp修改同意内容弹框 |
|
166 |
*/ |
|
167 |
- (void)showConsentPreferences; |
|
168 |
|
|
169 |
|
dcdc07
|
170 |
@end |