| | |
| | | |
| | | #import <Foundation/Foundation.h> |
| | | #import <UIKit/UIKit.h> |
| | | #import "WALoginResult.h" |
| | | #import "WABindingResult.h" |
| | | #import "WAAccount.h" |
| | | #import "WAAppUser.h" |
| | | #import <WASdkIntf/WALoginResult.h> |
| | | #import <WASdkIntf/WABindingResult.h> |
| | | #import <WASdkIntf/WAAccount.h> |
| | | #import <WASdkIntf/WAUserCenterResult.h> |
| | | #import <WASdkIntf/WAAppUser.h> |
| | | #import <WASdkIntf/WACertificationInfo.h> |
| | | #import <WASdkIntf/WADeleteRequestModel.h> |
| | | #import <WASdkIntf/WADeleteResult.h> |
| | | |
| | | typedef NS_ENUM(NSInteger, OpenGameReviewState) { |
| | | OpenGameReviewStateReject=0, //游戏评价结果:不,谢谢! |
| | | OpenGameReviewStateOpenAiHelp, //游戏评价结果:我要提意见 |
| | | OpenGameReviewStateOpentReview, //游戏评价结果:提交好评(无法获取用户是否点击评分以及具体的评分分数) |
| | | OpenGameReviewStateError //打开游戏评价失败,后台没有开启游戏评价开关 |
| | | |
| | | }; |
| | | /*! |
| | | @discussion 登录协议 |
| | | - - - |
| | |
| | | -(void)loginViewDidCancel:(WALoginResult*)result; |
| | | @end |
| | | |
| | | |
| | | |
| | | |
| | | /*! |
| | | @discussion 账号管理界面协议 |
| | | - - - |
| | |
| | | @param result 切换账户的账户信息 |
| | | */ |
| | | -(void)switchAcctDidCompleteWithResult:(WALoginResult*)result; |
| | | |
| | | /*! |
| | | @abstract 绑定账号回调接口 |
| | | @param bindResult 绑定账号信息 |
| | | */ |
| | | -(void)bindAccountDidCompleteWithResult:(WABindingResult*)bindResult; |
| | | |
| | | |
| | | /*! |
| | | @abstract 实名认证成功回调接口 |
| | | @param certificationInfo 实名认证信息 |
| | | */ |
| | | -(void)realNameAuthtDidCompleteWithResult:(WACertificationInfo*)certificationInfo; |
| | | |
| | | @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 |
| | | |
| | | |
| | |
| | | */ |
| | | +(void)openAccountManager:(id<WAAcctManagerDelegate>)delegate; |
| | | |
| | | |
| | | /*! |
| | | @abstract 调用此方法打开账户管理界面 |
| | | @param delegate 委托 |
| | | */ |
| | | +(void)openAccountCenter:(id<WAAcctManagerDelegate>)delegate; |
| | | |
| | | |
| | | |
| | | |
| | | +(BOOL)isBoundPlatformAccount; |
| | | /*! |
| | | @abstract 获取账户信息 |
| | | @param platform 平台 |
| | |
| | | +(WAAppUser*)getAccountInfoWithPlatform:(NSString *const)platform; |
| | | |
| | | //+(NSString*)transferWithPlatform:(NSString *const)platform; |
| | | |
| | | + (void)getUserCenterNotice:(id<WAUserCenterNoticeDelegate>)delegate; |
| | | |
| | | + (void)showUserCenterNoticeUI:(id<WAUserCenterNoticeUIDelegate>)delegate; |
| | | |
| | | /*! |
| | | @discussion 处理UIApplicationDelegate的方法[-(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions]传递过来的参数。 |
| | |
| | | @discussion (tip:CP无需关注)获取用户模块组件 |
| | | */ |
| | | +(NSArray*)getUserComponents; |
| | | |
| | | +(void)queryUserCertificationInfo:(void(^)(WACertificationInfo *certificationInfo,NSError *error))callBackBlock; |
| | | |
| | | |
| | | /*! |
| | | @discussion 检测是否可以打开账号绑定、账号切换、实名认证接口 |
| | | */ |
| | | + (BOOL)canOpenAccoutbind; |
| | | + (BOOL)canOpenAccoutSwitch; |
| | | + (BOOL)canOpenRealNameAuth; |
| | | |
| | | /*! |
| | | @discussion 打开账户绑定界面 |
| | | */ |
| | | + (void)openAccoutbindManager:(void(^)(NSError* error,WABindingResult * bindResult))block; |
| | | |
| | | |
| | | /*! |
| | | @discussion 打开账户切换界面 |
| | | */ |
| | | + (void)openAccoutSwithchManager:(void(^)(NSError* error,WALoginResult * loginResult))block; |
| | | |
| | | |
| | | /*! |
| | | @discussion 打开实名认证界面 |
| | | */ |
| | | + (void)openRealNameAuthManager:(void(^)(NSError* error,WACertificationInfo * certificationInfo))block; |
| | | |
| | | |
| | | |
| | | /*! |
| | | @discussion 打开as评分弹框 |
| | | */ |
| | | + (void)openReview API_AVAILABLE(ios(10.3), macos(10.14)); |
| | | |
| | | |
| | | |
| | | /*! |
| | | @discussion 打开idfa弹框授权 |
| | | */ |
| | | + (void)openTTAAuthorizationWithCompletionHandler:(void(^)(NSError* error,NSUInteger status))block; |
| | | |
| | | /*! |
| | | @discussion 隐私协议弹框 |
| | | error 不为空时 |
| | | status -1 弹出了协议框,用户点击了拒绝 |
| | | |
| | | error 为空 |
| | | status 1 弹出了协议框,用户点击了同意 |
| | | status 2 没有弹出协议框,用户之前点击过同意,无需再弹 |
| | | */ |
| | | + (void)openPrivacyAgreementWindow:(void(^)(NSError* error,NSUInteger status))bloc; |
| | | |
| | | |
| | | |
| | | //**************************************删除账号有关start************************************************************ |
| | | |
| | | /*! |
| | | @discussion 检测是否可调用玩家身份确认接口 |
| | | */ |
| | | + (BOOL)canCheckIdentity; |
| | | |
| | | /*! |
| | | @discussion 注销账号时,验证当前用户的身份证、id是否匹配,确认是本人操作 |
| | | @param realName 姓名 |
| | | @param idCard 身份证号码 |
| | | */ |
| | | + (void)identityCheck:(NSString*)realName idCard:(NSString*)idCard completeBlock:(void(^)(NSError* error))block; |
| | | |
| | | |
| | | //删除账号授权,拿到第三方的token信息,如 signinwithapple拿到authorizationCode |
| | | + (void)deleteAccounAuthorizationWithPlatform:(NSString*)platform completeBlock:(void(^)(NSError* error,WADeleteRequestModel*deleteResult))block; |
| | | |
| | | |
| | | /*! |
| | | @discussion 账号删除接口 |
| | | */ |
| | | + (void)requestDeleteAccout:(WADeleteRequestModel*)deleteResult completeBlock:(void(^)(NSError* error,WADeleteResult*result))completeBlock; |
| | | |
| | | /*! |
| | | @discussion 取消删除账号接口 |
| | | */ |
| | | |
| | | + (void)cancelRequestDeleteAccoutWithUserid:(NSString*)userid callback:(void (^)(NSError *))completeBlock; |
| | | |
| | | |
| | | // status==1,提交删除账号申请成功 |
| | | // status==2,用户取消 |
| | | + (void)requestDeleteAccoutUI:(void(^)(NSError *error, NSUInteger status))completeBlock; |
| | | |
| | | |
| | | |
| | | //**************************************删除账号有关end************************************************************ |
| | | |
| | | |
| | | |
| | | /*! |
| | | @discussion 打开游戏评分功能 |
| | | */ |
| | | + (void)openGameReview:(void(^)(OpenGameReviewState status))block; |
| | | |
| | | |
| | | |
| | | @end |