From 730963fe3867095b1f9078c12903abf80438b127 Mon Sep 17 00:00:00 2001 From: bigtea Date: Thu, 4 Sep 2025 10:43:00 +0800 Subject: [PATCH] Add errorReasons Signed-off-by: bigtea --- api/security/PermissionRequestResult.d.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/api/security/PermissionRequestResult.d.ts b/api/security/PermissionRequestResult.d.ts index 16ff14dbae..6ddb66a763 100644 --- a/api/security/PermissionRequestResult.d.ts +++ b/api/security/PermissionRequestResult.d.ts @@ -138,6 +138,25 @@ declare class PermissionRequestResult { * @since arkts {'1.1':'18', '1.2':'20'} * @arkts 1.1&1.2 */ + /** + * Enumerates the return values of the permission request operation. + * 0 The operation is successful. + * 1 The permission name is invalid. + * 2 The requested permission has not been declared. + * 3 The conditions for requesting the permission are not met. + * 4 The user does not agree to the Privacy Statement. + * 5 The permission cannot be requested in a pop-up window. + * 6 The permission is forcibly controlled by the system policy and cannot be requested via a pop-up window. + * 12 The service is abnormal. + * + * @type { ?Array } + * @syscap SystemCapability.Security.AccessToken + * @stagemodelonly + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.1&1.2 + */ errorReasons?: Array; } -- Gitee