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" |
|
12 |
@interface WAIUser : NSObject |
|
13 |
-(void)setLoginFlowType:(int)flowType; |
|
14 |
-(int)getLoginFlowType; |
|
15 |
-(WAAppUser*)getAccountInfo; |
|
16 |
-(void)loginWithExtInfo:(NSString *)extInfo delegate:(id<WALoginDelegate>)delegate; |
|
17 |
-(void)logout; |
|
18 |
-(void)bindingAccountWithExtInfo:(NSString*)extInfo delegate:(id<WAAccountBindingDelegate>)delegate; |
|
19 |
-(void)bindingAccountWithPlatform:(NSString *const)platform bindingResult:(WABindingResult*)bindingResult extInfo:(NSString *)extInfo delegate:(id<WAAccountBindingDelegate>)delegate; |
|
20 |
-(void)queryBoundAccountWithCompleteBlock:(void(^)(NSError* error,NSArray<WAAccount *>* accounts))block; |
|
21 |
-(void)unBindAccountWithPlatform:(NSString *const)platform platformUserId:(NSString *)pUserId completeBlock:(void (^)(NSError *))completeBlock; |
|
22 |
-(void)switchAccountWithPlatform:(NSString *const)platform completeBlock:(void (^)(NSError *, WALoginResult *))completeBlock; |
|
23 |
-(void)createNewAccountWithCompleteBlock:(void(^)(NSError* error,WALoginResult* result))completeBlock; |
|
24 |
-(void)login:(id<WALoginViewDelegate>)delegate cacheEnabled:(BOOL)cacheEnabled; |
|
25 |
-(void)hide; |
|
26 |
-(void)clearLoginCache; |
|
27 |
-(void)openAccountManager:(id<WAAcctManagerDelegate>)delegate; |
|
28 |
|
|
29 |
-(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions; |
|
30 |
|
|
31 |
-(void)applicationDidBecomeActive:(UIApplication *)application; |
|
32 |
|
2e0222
|
33 |
-(void)applicationWillEnterForeground:(UIApplication *)application; |
H |
34 |
|
|
35 |
-(void)applicationDidEnterBackground:(UIApplication *)application; |
|
36 |
|
d1f6ab
|
37 |
-(BOOL)application:(UIApplication *)application |
H |
38 |
openURL:(NSURL *)url |
|
39 |
sourceApplication:(NSString *)sourceApplication |
|
40 |
annotation:(id)annotation; |
|
41 |
|
47f8fd
|
42 |
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options; |
H |
43 |
|
28ea02
|
44 |
- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url; |
L |
45 |
|
d1f6ab
|
46 |
-(void)loginWithResult:(WALoginResult*)result delegate:(id<WALoginDelegate>)delegate; |
H |
47 |
-(void)loginWithResult:(WALoginResult*)result extInfo:(NSString*)extInfo delegate:(id<WALoginDelegate>)delegate; |
|
48 |
|
|
49 |
-(void)setCurrentLoginPlatform:(NSString *const)platform; |
|
50 |
-(NSString*)getCurrentLoginPlatform; |
|
51 |
-(WALoginResult*)getCurrentLoginResult; |
|
52 |
|
|
53 |
-(void)didUserLogin:(void(^)(NSError* error,BOOL didLogin))block; |
56b891
|
54 |
|
L |
55 |
- (void)getUserCenterNotice:(id<WAUserCenterNoticeDelegate>)delegate; |
|
56 |
|
|
57 |
- (void)showUserCenterNoticeUI:(id<WAUserCenterNoticeUIDelegate>)delegate; |
|
58 |
|
28ea02
|
59 |
-(void)queryUserCertificationInfo:(void(^)(WACertificationInfo *certificationInfo,NSError *error))callBackBlock; |
b11815
|
60 |
|
L |
61 |
//查询是否已绑定第三方账号 (国内) |
|
62 |
-(BOOL)isBoundPlatformAccount; |
|
63 |
|
d560f4
|
64 |
/*! |
L |
65 |
@discussion 检测是否可以打开账号绑定、账号切换、实名认证接口 |
|
66 |
如果返回NO,没有登录 canOpenRealNameAuth 已经实名 |
|
67 |
*/ |
|
68 |
- (BOOL)canOpenAccoutbind; |
|
69 |
- (BOOL)canOpenAccoutSwitch; |
|
70 |
- (BOOL)canOpenRealNameAuth; |
|
71 |
|
|
72 |
/*! |
|
73 |
@discussion 打开账户绑定界面 |
|
74 |
*/ |
|
75 |
- (void)openAccoutbindManager:(void(^)(NSError* error,WABindingResult * bindResult))block; |
|
76 |
|
|
77 |
|
|
78 |
/*! |
|
79 |
@discussion 打开账户切换界面 |
|
80 |
*/ |
|
81 |
- (void)openAccoutSwithchManager:(void(^)(NSError* error,WALoginResult * loginResult))block; |
|
82 |
|
|
83 |
|
|
84 |
/*! |
|
85 |
@discussion 打开实名认证界面 |
|
86 |
*/ |
|
87 |
- (void)openRealNameAuthManager:(void(^)(NSError* error,WACertificationInfo * certificationInfo))block; |
|
88 |
|
|
89 |
|
|
90 |
|
d1f6ab
|
91 |
@end |