From 680d33f7f5e56112139e7efdbe75e89807a9a64f Mon Sep 17 00:00:00 2001 From: adelelimi Date: Mon, 1 Sep 2025 14:14:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B9=E6=B3=95=E5=B1=9E=E6=80=A7=E6=B7=B7?= =?UTF-8?q?=E7=94=A8=E6=96=B9=E6=A1=88=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: adelelimi --- api/@ohos.userIAM.userAuth.d.ts | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/api/@ohos.userIAM.userAuth.d.ts b/api/@ohos.userIAM.userAuth.d.ts index 450ae4da53..9308383594 100644 --- a/api/@ohos.userIAM.userAuth.d.ts +++ b/api/@ohos.userIAM.userAuth.d.ts @@ -57,8 +57,7 @@ declare namespace userAuth { * * @constant * @syscap SystemCapability.UserIAM.UserAuth.Core - * @atomicservice - * @since 20 + * @since 22 * @arkts 1.2 */ const MAX_ALLOWABLE_REUSE_DURATION: int = 300000; @@ -1562,9 +1561,8 @@ declare namespace userAuth { * @typedef { function } AuthCallbackOnResultFunc * @param { UserAuthResult } result - Authentication result information. * @syscap SystemCapability.UserIAM.UserAuth.Core - * @atomicservice * @since 22 - * @arkts 1.1&1.2 + * @arkts 1.2 */ type AuthCallbackOnResultFunc = (result: UserAuthResult) => void; @@ -1581,7 +1579,7 @@ declare namespace userAuth { * @interface IAuthCallback * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} + * @since arkts {'1.1':'12','1.2':'22'} * @arkts 1.1&1.2 */ interface IAuthCallback { @@ -1602,15 +1600,16 @@ declare namespace userAuth { * @atomicservice * @since 12 */ + onResult(result: UserAuthResult): void; + /** * Called to return the authentication result. If the authentication is successful, * UserAuthResult contains the token information. * * @type { AuthCallbackOnResultFunc } * @syscap SystemCapability.UserIAM.UserAuth.Core - * @atomicservice * @since 22 - * @arkts 1.1&1.2 + * @arkts 1.2 */ onResult: AuthCallbackOnResultFunc; } @@ -2190,7 +2189,7 @@ declare namespace userAuth { * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. * @since 22 - * @arkts 1.1&1.2 + * @arkts 1.2 */ type AuthWidgetCallbackSendCommandFunc = (cmdData: string) => void; @@ -2201,7 +2200,7 @@ declare namespace userAuth { * @interface IAuthWidgetCallback * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. - * @since arkts {'1.1':'10','1.2':'20'} + * @since arkts {'1.1':'10','1.2':'22'} * @arkts 1.1&1.2 */ interface IAuthWidgetCallback { @@ -2213,6 +2212,8 @@ declare namespace userAuth { * @systemapi Hide this for inner system use. * @since 10 */ + sendCommand(cmdData: string): void; + /** * Called to return the command sent from the user authentication framework to the user authentication widget. * @@ -2220,7 +2221,7 @@ declare namespace userAuth { * @syscap SystemCapability.UserIAM.UserAuth.Core * @systemapi Hide this for inner system use. * @since 22 - * @arkts 1.1&1.2 + * @arkts 1.2 */ sendCommand: AuthWidgetCallbackSendCommandFunc; } -- Gitee