| | |
| | | #import "WALoginResult.h" |
| | | #import "WABindingResult.h" |
| | | #import "WAAccount.h" |
| | | #import "WAUserCenterResult.h" |
| | | #import "WAAppUser.h" |
| | | /*! |
| | | @discussion 登录协议 |
| | |
| | | @required |
| | | /*! |
| | | @abstract 登录成功 |
| | | @param results 登录结果 |
| | | @param result 登录结果 |
| | | */ |
| | | -(void)loginDidCompleteWithResults:(WALoginResult*)result; |
| | | /*! |
| | |
| | | -(void)switchAcctDidCompleteWithResult:(WALoginResult*)result; |
| | | @end |
| | | |
| | | /*! |
| | | @discussion 用户中心 |
| | | - - - |
| | | */ |
| | | @protocol WAUserCenterNoticeDelegate <NSObject> |
| | | /*! |
| | | @abstract 获取用户中心数据回调接口 |
| | | @param result 用户中心数据信息 |
| | | */ |
| | | - (void)userCenterNoticeWithResult:(WAUserCenterResult *)result; |
| | | |
| | | @end |
| | | |
| | | /*! |
| | | @discussion 用户中心 |
| | | - - - |
| | | */ |
| | | @protocol WAUserCenterNoticeUIDelegate <NSObject> |
| | | /*! |
| | | @abstract 用户中心界面关闭回调接口 |
| | | */ |
| | | - (void)userCenterNoticeClose; |
| | | /*! |
| | | @abstract 用户中心界面错误回调接口 |
| | | @param error 用户中心错误信息 |
| | | */ |
| | | - (void)userCenterNoticeError:(NSError *)error; |
| | | |
| | | @end |
| | | |
| | | |
| | | /*! |
| | | @discussion WAUserProxy 是用户模块的代理类。功能包括设置登录流程、登录、登出、绑定、解绑、查询当前用户绑定的第三方平台账户列表、切换账号、创建账号等等。 |
| | |
| | | /*! |
| | | @discussion 切换账号接口 |
| | | @param platform 切换平台 |
| | | @param error 错误 |
| | | @param result 登录结果 |
| | | @param completeBlock 回调结果:包括error(错误)和result(登录结果) |
| | | */ |
| | | +(void)switchAccountWithPlatform:(NSString *const)platform completeBlock:(void(^)(NSError* error,WALoginResult* result))completeBlock; |
| | | |
| | | /*! |
| | | @discussion 创建账号接口 |
| | | @param error 错误 |
| | | @param result 创建结果 |
| | | @param completeBlock 回调结果:包括error(错误)和result(创建结果) |
| | | */ |
| | | +(void)createNewAccountWithCompleteBlock:(void(^)(NSError* error,WALoginResult* result))completeBlock; |
| | | |
| | |
| | | |
| | | //+(NSString*)transferWithPlatform:(NSString *const)platform; |
| | | |
| | | + (void)getUserCenterNotice:(id<WAUserCenterNoticeDelegate>)delegate; |
| | | |
| | | + (void)showUserCenterNoticeUI:(id<WAUserCenterNoticeUIDelegate>)delegate; |
| | | |
| | | /*! |
| | | @discussion 处理UIApplicationDelegate的方法[-(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions]传递过来的参数。 |
| | | */ |
| | | + (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions; |
| | | |
| | | /*! |
| | | @discussion 处理UIApplicationDelegate的方法[+ (void)applicationDidBecomeActive:(UIApplication *)application]传递过来的参数。 |
| | | @discussion 处理UIApplicationDelegate的方法[- (void)applicationDidBecomeActive:(UIApplication *)application]传递过来的参数。 |
| | | */ |
| | | + (void)applicationDidBecomeActive:(UIApplication *)application; |
| | | +(void)applicationDidBecomeActive:(UIApplication *)application; |
| | | |
| | | /*! |
| | | @discussion 处理UIApplicationDelegate的方法[- (void)applicationWillEnterForeground:(UIApplication *)application]传递过来的参数。 |
| | | */ |
| | | +(void)applicationWillEnterForeground:(UIApplication *)application; |
| | | |
| | | /*! |
| | | @discussion 处理UIApplicationDelegate的方法[- (void)applicationDidEnterBackground:(UIApplication *)application]传递过来的参数。 |
| | | */ |
| | | +(void)applicationDidEnterBackground:(UIApplication *)application; |
| | | |
| | | /*! |
| | | @discussion 处理UIApplicationDelegate的方法[-(BOOL)application:(UIApplication *)application |