From 7e4de7a5e1f43269d19814268a38206fbcb2b659 Mon Sep 17 00:00:00 2001
From: lpw <812862340@qq.com>
Date: Sun, 28 Sep 2025 15:06:27 +0800
Subject: [PATCH] 提交版本 4.8.0
---
frameworks/WASdkIntf.framework/Headers/WAIUser.h | 85 +++++++++++++++++++++++++++++++++++++++++-
1 files changed, 83 insertions(+), 2 deletions(-)
diff --git a/frameworks/WASdkIntf.framework/Headers/WAIUser.h b/frameworks/WASdkIntf.framework/Headers/WAIUser.h
index a40bf7c..41fb2b8 100644
--- a/frameworks/WASdkIntf.framework/Headers/WAIUser.h
+++ b/frameworks/WASdkIntf.framework/Headers/WAIUser.h
@@ -8,13 +8,17 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
-#import "WAUserProxy.h"
-#import <WASdkIntf/WASdkIntf.h>
+#import <WASdkIntf/WAUserProxy.h>
+
+
+
@interface WAIUser : NSObject
-(void)setLoginFlowType:(int)flowType;
-(int)getLoginFlowType;
-(WAAppUser*)getAccountInfo;
-(void)loginWithExtInfo:(NSString *)extInfo delegate:(id<WALoginDelegate>)delegate;
+//传递平台,针对一种平台有多种登录方式,如weblogin,wa中的guest和wa登录
+-(void)loginPlatform:(NSString*)platform WithExtInfo:(NSString *)extInfo delegate:(id<WALoginDelegate>)delegate;
-(void)logout;
-(void)bindingAccountWithExtInfo:(NSString*)extInfo delegate:(id<WAAccountBindingDelegate>)delegate;
-(void)bindingAccountWithPlatform:(NSString *const)platform bindingResult:(WABindingResult*)bindingResult extInfo:(NSString *)extInfo delegate:(id<WAAccountBindingDelegate>)delegate;
@@ -44,6 +48,21 @@
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options;
- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url;
+//当一个新的场景被创建时调用,可以在这个方法中配置场景。
+- (void)scene:(UIScene *)scene willConnectToSession:(UISceneSession *)session options:(UISceneConnectionOptions *)connectionOptions API_AVAILABLE(ios(13.0));
+// 当场景被销毁时调用。
+- (void)sceneDidDisconnect:(UIScene *)scene API_AVAILABLE(ios(13.0));
+//当场景变成活跃状态时调用。
+- (void)sceneDidBecomeActive:(UIScene *)scene API_AVAILABLE(ios(13.0));
+//当场景将要变成非活跃状态时调用。
+- (void)sceneWillResignActive:(UIScene *)scene API_AVAILABLE(ios(13.0));
+//当应用程序即将进入前台时调用。
+- (void)sceneWillEnterForeground:(UIScene *)scene API_AVAILABLE(ios(13.0));
+//当应用程序进入后台时调用。
+- (void)sceneDidEnterBackground:(UIScene *)scene API_AVAILABLE(ios(13.0));
+//当别的APP通过URL地址,打开我们的app时调用
+- (void)scene:(UIScene *)scene openURLContexts:(NSSet<UIOpenURLContext *> *)URLContexts API_AVAILABLE(ios(13.0));
+- (void)scene:(UIScene *)scene continueUserActivity:(NSUserActivity *)userActivity API_AVAILABLE(ios(13.0));
-(void)loginWithResult:(WALoginResult*)result delegate:(id<WALoginDelegate>)delegate;
-(void)loginWithResult:(WALoginResult*)result extInfo:(NSString*)extInfo delegate:(id<WALoginDelegate>)delegate;
@@ -56,6 +75,7 @@
- (void)getUserCenterNotice:(id<WAUserCenterNoticeDelegate>)delegate;
+- (BOOL)isOpenUserCenter;
- (void)showUserCenterNoticeUI:(id<WAUserCenterNoticeUIDelegate>)delegate;
-(void)queryUserCertificationInfo:(void(^)(WACertificationInfo *certificationInfo,NSError *error))callBackBlock;
@@ -124,6 +144,12 @@
//删除账号授权,拿到第三方的token信息,如 signinwithapple拿到authorizationCode
-(void)deleteAccounAuthorizationWithPlatform:(NSString*)platform completeBlock:(void(^)(NSError* error,WADeleteRequestModel*deleteResult))block;
+
+/*!
+@discussion 是否可以删除账号
+ */
+- (BOOL)isOpenDeleteAccount;
+
/*!
@discussion 账号删除
*/
@@ -134,4 +160,59 @@
- (void)requestDeleteAccoutUI:(void(^)(NSError *error, NSUInteger status))completeBlock;
+
+
+
+
+/*!
+@discussion 打开游戏评分功能
+ */
+- (void)openGameReview:(void(^)(OpenGameReviewState status))block;
+
+
+/*!
+@discussion 弹出cmp修改同意内容弹框
+ */
+- (void)showConsentPreferences;
+
+
+/*!
+@discussion 检测是非需要弹出同意内容弹框
+ */
+- (void)checkConsentPreferencesWithCompletion:(void (^)(NSError *error, BOOL isShow))completionBlock;
+
+/*!
+@discussion 打开客服中心 4. 6.0增加
+ */
+
+- (void)showCustomerCenterWithCompletion:(void(^)(WACustomerResult*deleteResult))completionBlock;
+
+
+
+ /**
+ @discussion 获取任务列表 4. 6.0增加
+ * 获取推广任务列表
+ * @param completeBlock 完成回调,返回任务列表数组或错误信息
+ * 数组元素格式为:
+ * @{
+ * @"taskName": @"任务名称",
+ * @"taskStatus": @"0/1" // 0表示未完成,1表示已完成
+ * }
+ */
+
+-(void)fetchPromotionTasksWithCompletion:(void(^_Nullable)(NSArray<NSDictionary *> * _Nullable tasks, NSError * _Nullable error))completeBlock;
+
+
+
+
+/*!
+@discussion 查询玩家任务完成情况 4. 6.0增加
+ */
+- (void)checkPlayerTask:(void(^_Nullable)(NSError * _Nullable error, BOOL success))completeBlock;
+
+
+
+- (void)getPlatformAccountInfo:(void(^_Nullable)(NSError * _Nullable error, WAPlatformAccountInfo * _Nullable acountInfo))completeBlock;
+
+
@end
--
Gitblit v1.8.0