lpw
2022-07-07 323473db4a10949a6d6dab3f55ab1e40696308ba
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>
11 #import "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;
18 -(void)logout;
19 -(void)bindingAccountWithExtInfo:(NSString*)extInfo delegate:(id<WAAccountBindingDelegate>)delegate;
20 -(void)bindingAccountWithPlatform:(NSString *const)platform bindingResult:(WABindingResult*)bindingResult extInfo:(NSString *)extInfo  delegate:(id<WAAccountBindingDelegate>)delegate;
2174b5 21
dcdc07 22 -(void)queryBoundAccountWithCompleteBlock:(void(^)(NSError* error,NSArray<WAAccount *>* accounts))block;
W 23 -(void)unBindAccountWithPlatform:(NSString *const)platform platformUserId:(NSString *)pUserId completeBlock:(void (^)(NSError *))completeBlock;
24 -(void)switchAccountWithPlatform:(NSString *const)platform completeBlock:(void (^)(NSError *, WALoginResult *))completeBlock;
25 -(void)createNewAccountWithCompleteBlock:(void(^)(NSError* error,WALoginResult* result))completeBlock;
26 -(void)login:(id<WALoginViewDelegate>)delegate cacheEnabled:(BOOL)cacheEnabled;
27 -(void)hide;
28 -(void)clearLoginCache;
29 -(void)openAccountManager:(id<WAAcctManagerDelegate>)delegate;
30
31 -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;
32
33 -(void)applicationDidBecomeActive:(UIApplication *)application;
34
962836 35 -(void)applicationWillEnterForeground:(UIApplication *)application;
W 36
37 -(void)applicationDidEnterBackground:(UIApplication *)application;
38
dcdc07 39 -(BOOL)application:(UIApplication *)application
W 40            openURL:(NSURL *)url
41  sourceApplication:(NSString *)sourceApplication
42         annotation:(id)annotation;
43
1417b8 44 - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options;
H 45
1ac090 46 - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url;
L 47
dcdc07 48 -(void)loginWithResult:(WALoginResult*)result delegate:(id<WALoginDelegate>)delegate;
W 49 -(void)loginWithResult:(WALoginResult*)result extInfo:(NSString*)extInfo delegate:(id<WALoginDelegate>)delegate;
50
51 -(void)setCurrentLoginPlatform:(NSString *const)platform;
52 -(NSString*)getCurrentLoginPlatform;
53 -(WALoginResult*)getCurrentLoginResult;
54
55 -(void)didUserLogin:(void(^)(NSError* error,BOOL didLogin))block;
d9782e 56
H 57 - (void)getUserCenterNotice:(id<WAUserCenterNoticeDelegate>)delegate;
58
59 - (void)showUserCenterNoticeUI:(id<WAUserCenterNoticeUIDelegate>)delegate;
60
1ac090 61 -(void)queryUserCertificationInfo:(void(^)(WACertificationInfo *certificationInfo,NSError *error))callBackBlock;
L 62
63 //查询是否已绑定第三方账号 (国内)
64 -(BOOL)isBoundPlatformAccount;
65
66 /*!
67  @discussion 检测是否可以打开账号绑定、账号切换、实名认证接口
68              如果返回NO,没有登录  canOpenRealNameAuth 已经实名
69  */
70 - (BOOL)canOpenAccoutbind;
71 - (BOOL)canOpenAccoutSwitch;
72 - (BOOL)canOpenRealNameAuth;
73
74 /*!
75 @discussion 打开账户绑定界面
76 */
77 - (void)openAccoutbindManager:(void(^)(NSError* error,WABindingResult  * bindResult))block;
78
79
80 /*!
81 @discussion 打开账户切换界面
82 */
83 - (void)openAccoutSwithchManager:(void(^)(NSError* error,WALoginResult  * loginResult))block;
84
85
86 /*!
87 @discussion 打开实名认证界面
88 */
89 - (void)openRealNameAuthManager:(void(^)(NSError* error,WACertificationInfo  * certificationInfo))block;
90
91
92
93 /*!
94 @discussion 打开as评分弹框
95 */
96 - (void)openReview;
97
79188b 98
L 99 /*!
100 @discussion 打开idfa弹框授权 status状态与 ATTrackingManagerAuthorizationStatus 一致
101  */
102 - (void)openTTAAuthorizationWithCompletionHandler:(void(^)(NSError* error,NSUInteger status))block;
103
104 /*!
105 @discussion 隐私协议弹框
106  */
107 - (void)openPrivacyAgreementWindow:(void(^)(NSError* error,NSUInteger status))block;
108
109
2174b5 110
L 111
112
113 //****************************************账号删除有关接口*********************************************************************
114 /*!
115 @discussion 检测是否可调用玩家身份确认接口
116  */
117 - (BOOL) canCheckIdentity;
118
119
120
121 //玩家身份确认接口
122 - (void)identityCheck:(NSString*)realName idCard:(NSString*)idCard completeBlock:(void(^)(NSError* error))block;
123
124 //删除账号授权,拿到第三方的token信息,如 signinwithapple拿到authorizationCode
125 -(void)deleteAccounAuthorizationWithPlatform:(NSString*)platform completeBlock:(void(^)(NSError* error,WADeleteRequestModel*deleteResult))block;
126
127 /*!
128 @discussion 账号删除
129  */
130 - (void)requestDeleteAccout:(WADeleteRequestModel*)deleteResult completeBlock:(void(^)(NSError* error,WADeleteResult*result))completeBlock;
131 // 取消删除
132 -(void)cancelRequestDeleteAccoutWithUserid:(NSString*)userid callback:(void (^)(NSError *))completeBlock;
133
134
135
136 - (void)requestDeleteAccoutUI:(void(^)(NSError *error, NSUInteger status))completeBlock;
dcdc07 137 @end