lpw
2022-07-12 5e25501d1f36e7684d48b24ef8ef72cadb75a193
commit | author | age
d1f6ab 1 //
H 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"
077804 12 #import <WASdkIntf/WASdkIntf.h>
d1f6ab 13 @interface WAIUser : NSObject
H 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;
077804 21
d1f6ab 22 -(void)queryBoundAccountWithCompleteBlock:(void(^)(NSError* error,NSArray<WAAccount *>* accounts))block;
H 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
2e0222 35 -(void)applicationWillEnterForeground:(UIApplication *)application;
H 36
37 -(void)applicationDidEnterBackground:(UIApplication *)application;
38
d1f6ab 39 -(BOOL)application:(UIApplication *)application
H 40            openURL:(NSURL *)url
41  sourceApplication:(NSString *)sourceApplication
42         annotation:(id)annotation;
43
47f8fd 44 - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options;
H 45
28ea02 46 - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url;
L 47
d1f6ab 48 -(void)loginWithResult:(WALoginResult*)result delegate:(id<WALoginDelegate>)delegate;
H 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;
56b891 56
L 57 - (void)getUserCenterNotice:(id<WAUserCenterNoticeDelegate>)delegate;
58
59 - (void)showUserCenterNoticeUI:(id<WAUserCenterNoticeUIDelegate>)delegate;
60
28ea02 61 -(void)queryUserCertificationInfo:(void(^)(WACertificationInfo *certificationInfo,NSError *error))callBackBlock;
b11815 62
L 63 //查询是否已绑定第三方账号 (国内)
64 -(BOOL)isBoundPlatformAccount;
65
d560f4 66 /*!
L 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
69a363 93 /*!
L 94 @discussion 打开as评分弹框
95 */
96 - (void)openReview;
97
3a96ff 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
077804 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;
d1f6ab 137 @end