// // WAIUser.h // WASdkIntfUI // // Created by GHW-T-01 on 16/3/1. // Copyright © 2016年 GHW-T-01. All rights reserved. // #import #import #import "WAUserProxy.h" @interface WAIUser : NSObject -(void)setLoginFlowType:(int)flowType; -(int)getLoginFlowType; -(WAAppUser*)getAccountInfo; -(void)loginWithExtInfo:(NSString *)extInfo delegate:(id)delegate; -(void)logout; -(void)bindingAccountWithExtInfo:(NSString*)extInfo delegate:(id)delegate; -(void)bindingAccountWithPlatform:(NSString *const)platform bindingResult:(WABindingResult*)bindingResult extInfo:(NSString *)extInfo delegate:(id)delegate; -(void)queryBoundAccountWithCompleteBlock:(void(^)(NSError* error,NSArray* accounts))block; -(void)unBindAccountWithPlatform:(NSString *const)platform platformUserId:(NSString *)pUserId completeBlock:(void (^)(NSError *))completeBlock; -(void)switchAccountWithPlatform:(NSString *const)platform completeBlock:(void (^)(NSError *, WALoginResult *))completeBlock; -(void)createNewAccountWithCompleteBlock:(void(^)(NSError* error,WALoginResult* result))completeBlock; -(void)login:(id)delegate cacheEnabled:(BOOL)cacheEnabled; -(void)hide; -(void)clearLoginCache; -(void)openAccountManager:(id)delegate; -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions; -(void)applicationDidBecomeActive:(UIApplication *)application; -(void)applicationWillEnterForeground:(UIApplication *)application; -(void)applicationDidEnterBackground:(UIApplication *)application; -(BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation; - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary *)options; - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url; -(void)loginWithResult:(WALoginResult*)result delegate:(id)delegate; -(void)loginWithResult:(WALoginResult*)result extInfo:(NSString*)extInfo delegate:(id)delegate; -(void)setCurrentLoginPlatform:(NSString *const)platform; -(NSString*)getCurrentLoginPlatform; -(WALoginResult*)getCurrentLoginResult; -(void)didUserLogin:(void(^)(NSError* error,BOOL didLogin))block; - (void)getUserCenterNotice:(id)delegate; - (void)showUserCenterNoticeUI:(id)delegate; -(void)queryUserCertificationInfo:(void(^)(WACertificationInfo *certificationInfo,NSError *error))callBackBlock; @end