diff --git a/api/security/PermissionRequestResult.d.ts b/api/security/PermissionRequestResult.d.ts index 16ff14dbae345a8c4c9ce98976b59e83f7178686..6ddb66a76339a0c82dbf8923a0ffbfdbd1cb4007 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; }