lpw
2024-06-12 09e73ac42fe2feb7925d954fed88a2eaa57697f7
commit | author | age
6e1425 1 //
H 2 //  WASDKSingletonHandler.h
3 //  WASdkImplUI
4 //
5 //  Created by wuyx on 16/3/4.
6 //  Copyright © 2016年 GHW-T-01. All rights reserved.
7 //
8
9 #import <Foundation/Foundation.h>
10 #import <WASdkIntf/WASdkIntf.h>
11 #import <WACommon/WACommon.h>
12 @interface WASdkLoginSingleton : NSObject
13
14 //创建单例
15 +(instancetype)shareInstance;
16 //获取示例 有可能为空
17 +(instancetype)getInstance;
18 //设置当前登录结果
19 -(void)setCurrentLoginResult:(WALoginResult*)loginResult;
20 //获取当前登录结果
21 +(WALoginResult*)getCurrentLoginResult;
22
23 //弹出登录界面
24 +(void)login:(id<WALoginViewDelegate>)delegate cacheEnabled:(BOOL)cacheEnabled;
25 //移除登录界面
26 +(void)hide;
27 //设置当前平台
28 +(void)setCurrentLoginPlatform:(NSString *)platform;
29 +(NSString*)getCurrentLoginPlatform;
09e73a 30
L 31 // 针对wa登录(邮箱和手机登录)
32 -(void)loginPlatform:(NSString*)platform WithExtInfo:(NSString *)extInfo delegate:(id<WALoginDelegate>)delegate;
33
34 @property(nonatomic)BOOL switchWaLogin; //如果是切换wa账号,需要处理UI
6e1425 35 @end