From 97d4cbdc1392e0a4c0e92f0c447a47eefa85d64e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=8F=91=E5=8F=91?= Date: Thu, 28 Aug 2025 22:03:43 +0800 Subject: [PATCH 1/5] description MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 小发发 --- api/@ohos.accessibility.config.d.ts | 22 +++---- api/@ohos.accessibility.d.ts | 30 ++++----- .../AccessibilityExtensionContext.d.ts | 62 +++++++++---------- 3 files changed, 57 insertions(+), 57 deletions(-) diff --git a/api/@ohos.accessibility.config.d.ts b/api/@ohos.accessibility.config.d.ts index f3ccfb8953..d8c5f1ff2e 100644 --- a/api/@ohos.accessibility.config.d.ts +++ b/api/@ohos.accessibility.config.d.ts @@ -204,7 +204,7 @@ declare namespace config { * @throws { BusinessError } 201 - Permission verification failed. * The application does not have the permission required to call the API. * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -226,7 +226,7 @@ declare namespace config { * @throws { BusinessError } 201 - Permission verification failed. * The application does not have the permission required to call the API. * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -251,7 +251,7 @@ declare namespace config { * @throws { BusinessError } 201 - Permission verification failed. * The application does not have the permission required to call the API. * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -271,7 +271,7 @@ declare namespace config { * @throws { BusinessError } 201 - Permission verification failed. * The application does not have the permission required to call the API. * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -291,7 +291,7 @@ declare namespace config { * @throws { BusinessError } 201 - Permission verification failed. * The application does not have the permission required to call the API. * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -310,7 +310,7 @@ declare namespace config { * @throws { BusinessError } 201 - Permission verification failed. * The application does not have the permission required to call the API. * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -329,7 +329,7 @@ declare namespace config { * @throws { BusinessError } 201 - Permission verification failed. * The application does not have the permission required to call the API. * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -348,7 +348,7 @@ declare namespace config { * @throws { BusinessError } 201 - Permission verification failed. * The application does not have the permission required to call the API. * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -392,7 +392,7 @@ declare namespace config { * @throws { BusinessError } 201 - Permission verification failed. * The application does not have the permission required to call the API. * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -412,7 +412,7 @@ declare namespace config { * @throws { BusinessError } 201 - Permission verification failed. * The application does not have the permission required to call the API. * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -457,7 +457,7 @@ declare namespace config { * @throws { BusinessError } 201 - Permission verification failed. * The application does not have the permission required to call the API. * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. diff --git a/api/@ohos.accessibility.d.ts b/api/@ohos.accessibility.d.ts index 4d5bfc6002..2417419c6a 100644 --- a/api/@ohos.accessibility.d.ts +++ b/api/@ohos.accessibility.d.ts @@ -1147,7 +1147,7 @@ declare namespace accessibility { * @param { AbilityType } abilityType The type of the accessibility ability. {@code AbilityType} eg.spoken * @param { AbilityState } stateType The state of the accessibility ability. {@code AbilityState} eg.installed * @returns { Promise> } Returns the list of abilityInfos. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -1165,7 +1165,7 @@ declare namespace accessibility { * @param { AbilityType } abilityType The type of the accessibility ability. {@code AbilityType} eg.spoken * @param { AbilityState } stateType The state of the accessibility ability. {@code AbilityState} eg.installed * @param { AsyncCallback> } callback - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -1221,7 +1221,7 @@ declare namespace accessibility { * * @param { EventInfo } event The object of the accessibility {@code EventInfo} . * @param { AsyncCallback } callback Asynchronous callback interface. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -1236,7 +1236,7 @@ declare namespace accessibility { * * @param { EventInfo } event The object of the accessibility {@code EventInfo} . * @returns { Promise } Returns {@code true} if success ; returns {@code false} otherwise. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -1259,7 +1259,7 @@ declare namespace accessibility { * * @param { 'accessibilityStateChange' } type state event type. * @param { Callback } callback Asynchronous callback interface. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -1271,7 +1271,7 @@ declare namespace accessibility { * * @param { 'accessibilityStateChange' } type state event type. * @param { Callback } callback Asynchronous callback interface. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -1287,7 +1287,7 @@ declare namespace accessibility { * * @param { 'touchGuideStateChange' } type state event type. * @param { Callback } callback Asynchronous callback interface. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -1330,7 +1330,7 @@ declare namespace accessibility { * * @param { 'accessibilityStateChange' } type state event type * @param { Callback } callback Asynchronous callback interface. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -1342,7 +1342,7 @@ declare namespace accessibility { * * @param { 'accessibilityStateChange' } type state event type * @param { Callback } callback Asynchronous callback interface. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -1358,7 +1358,7 @@ declare namespace accessibility { * * @param { 'touchGuideStateChange' } type state event type * @param { Callback } callback Asynchronous callback interface. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -1372,7 +1372,7 @@ declare namespace accessibility { * Unregister the observe of the screen reader state changed. * @param { 'screenReaderStateChange' } type state event type * @param { Callback } callback callback Asynchronous callback interface. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -1436,7 +1436,7 @@ declare namespace accessibility { * * @param { 'enableChange' } type * @param { Callback } callback - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -1451,7 +1451,7 @@ declare namespace accessibility { * * @param { 'styleChange' } type * @param { Callback } callback - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -1466,7 +1466,7 @@ declare namespace accessibility { * * @param { 'enableChange' } type * @param { Callback } callback - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -1481,7 +1481,7 @@ declare namespace accessibility { * * @param { 'styleChange' } type * @param { Callback } callback - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. diff --git a/api/application/AccessibilityExtensionContext.d.ts b/api/application/AccessibilityExtensionContext.d.ts index c56f156b7a..92099a3d89 100644 --- a/api/application/AccessibilityExtensionContext.d.ts +++ b/api/application/AccessibilityExtensionContext.d.ts @@ -38,7 +38,7 @@ export default class AccessibilityExtensionContext extends ExtensionContext { * * @param { Array } targetNames The bundle names that are interested in sending the event. * @param { AsyncCallback } callback Indicates the listener. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -53,7 +53,7 @@ export default class AccessibilityExtensionContext extends ExtensionContext { * * @param { Array } targetNames The bundle names that are interested in sending the event. * @returns { Promise } - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -68,7 +68,7 @@ export default class AccessibilityExtensionContext extends ExtensionContext { * * @param { boolean } isAccessibilityFocus Indicates whether the acquired element has an accessibility focus. * @param { AsyncCallback } callback Indicates the listener. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -84,7 +84,7 @@ export default class AccessibilityExtensionContext extends ExtensionContext { * * @param { boolean } isAccessibilityFocus Indicates whether the acquired element has an accessibility focus. * @returns { Promise } - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -98,7 +98,7 @@ export default class AccessibilityExtensionContext extends ExtensionContext { /** * Get focus element. * @param { AsyncCallback } callback Indicates the listener. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -114,7 +114,7 @@ export default class AccessibilityExtensionContext extends ExtensionContext { * * @param { number } windowId Indicates the window ID. * @param { AsyncCallback } callback Indicates the listener. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -130,7 +130,7 @@ export default class AccessibilityExtensionContext extends ExtensionContext { * * @param { number } [windowId] Indicates the window ID. * @returns { Promise } - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -144,7 +144,7 @@ export default class AccessibilityExtensionContext extends ExtensionContext { /** * Get window root element. * @param { AsyncCallback } callback Indicates the listener. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -160,7 +160,7 @@ export default class AccessibilityExtensionContext extends ExtensionContext { * * @param { number } displayId Indicates the display ID. * @param { AsyncCallback> } callback Indicates the listener. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -176,7 +176,7 @@ export default class AccessibilityExtensionContext extends ExtensionContext { * * @param { number } displayId Indicates the display ID. * @returns { Promise> } - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -190,7 +190,7 @@ export default class AccessibilityExtensionContext extends ExtensionContext { /** * Get window list. * @param { AsyncCallback> } callback Indicates the listener. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -206,7 +206,7 @@ export default class AccessibilityExtensionContext extends ExtensionContext { * * @param { GesturePath } gesturePath Indicates the gesture path. * @param { AsyncCallback } callback Indicates the listener. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -223,7 +223,7 @@ export default class AccessibilityExtensionContext extends ExtensionContext { * * @param { GesturePath } gesturePath Indicates the gesture path. * @returns { Promise } - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -239,7 +239,7 @@ export default class AccessibilityExtensionContext extends ExtensionContext { * Inject gesture path events. * * @param { GesturePath } gesturePath Indicates the gesture path. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -256,7 +256,7 @@ export default class AccessibilityExtensionContext extends ExtensionContext { * @param { Want } want - Indicates the start options. * @returns { Promise } * @throws { BusinessError } 201 - The application does not have the permission required to call the API. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -272,7 +272,7 @@ export default class AccessibilityExtensionContext extends ExtensionContext { * @param { number } elementId Indicates the elementId. * @returns { Promise> } * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -288,7 +288,7 @@ export default class AccessibilityExtensionContext extends ExtensionContext { * @param { number } windowId Indicates whether the windowid can be used as the default focus. * @returns { Promise> } * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -443,7 +443,7 @@ declare interface AccessibilityElement { * * @param { T } attributeName Indicates the attribute name. * @param { AsyncCallback } callback Indicates the listener. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -462,7 +462,7 @@ declare interface AccessibilityElement { * * @param { T } attributeName Indicates the attribute name. * @returns { Promise } - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -499,7 +499,7 @@ declare interface AccessibilityElement { * @param { string } actionName Indicates the action name. * @param { object } parameters Indicates the parameters needed to execute the action. * @param { AsyncCallback } callback Indicates the listener. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -516,7 +516,7 @@ declare interface AccessibilityElement { * @param { string } actionName Indicates the action name. * @param { object } parameters Indicates the parameters needed to execute the action. * @returns { Promise } - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -532,7 +532,7 @@ declare interface AccessibilityElement { * * @param { string } actionName Indicates the action name. * @param { AsyncCallback } callback Indicates the listener. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -568,7 +568,7 @@ declare interface AccessibilityElement { * * @param { boolean } isEnable Indicates whether the screen curtain is enabled. * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -585,7 +585,7 @@ declare interface AccessibilityElement { * @param { 'content' } type The type of query condition is content. * @param { string } condition Indicates the specific content to be queried. * @param { AsyncCallback> } callback Indicates the listener. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -601,7 +601,7 @@ declare interface AccessibilityElement { * @param { 'content' } type The type of query condition is content. * @param { string } condition Indicates the specific content to be queried. * @returns { Promise> } - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -617,7 +617,7 @@ declare interface AccessibilityElement { * @param { 'focusType' } type The type of query condition is focus type. * @param { FocusType } condition Indicates the type of focus to query. * @param { AsyncCallback } callback Indicates the listener. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -633,7 +633,7 @@ declare interface AccessibilityElement { * @param { 'focusType' } type The type of query condition is focus type. * @param { FocusType } condition Indicates the type of focus to query. * @returns { Promise } - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -649,7 +649,7 @@ declare interface AccessibilityElement { * @param { 'focusDirection' } type The type of query condition is focus direction. * @param { FocusDirection } condition Indicates the direction of search focus to query. * @param { AsyncCallback } callback Indicates the listener. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -665,7 +665,7 @@ declare interface AccessibilityElement { * @param { 'focusDirection' } type The type of query condition is focus direction. * @param { FocusDirection } condition Indicates the direction of search focus to query. * @returns { Promise } - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -681,7 +681,7 @@ declare interface AccessibilityElement { * @param { 'textType' } type The type of query condition is text type. * @param { string } condition Indicates the specific content to be queried. * @returns { Promise> } - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -697,7 +697,7 @@ declare interface AccessibilityElement { * @param { 'elementId' } type The type of query condition is element id. * @param { number } condition Indicates the specific content to be queried. * @returns { Promise } - * @throws { BusinessError } 401 - Input parameter error. Possible causes: + * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. -- Gitee From 1b4397b003d7703515174a690639cb903adfa41d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=8F=91=E5=8F=91?= Date: Mon, 1 Sep 2025 11:24:35 +0800 Subject: [PATCH 2/5] description MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 小发发 --- ...pplication.AccessibilityExtensionAbility.d.ts | 4 +++- .../AccessibilityExtensionContext.d.ts | 16 +++++++++------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/api/@ohos.application.AccessibilityExtensionAbility.d.ts b/api/@ohos.application.AccessibilityExtensionAbility.d.ts index 2e77bb9146..b67883aee2 100644 --- a/api/@ohos.application.AccessibilityExtensionAbility.d.ts +++ b/api/@ohos.application.AccessibilityExtensionAbility.d.ts @@ -122,7 +122,7 @@ export type AccessibilityExtensionContext = _AccessibilityExtensionContext.defau * @syscap SystemCapability.BarrierFree.Accessibility.Core * @since 9 */ -export default class AccessibilityExtensionAbility { +declare class AccessibilityExtensionAbility { /** * Indicates accessibility extension ability context. * @@ -223,6 +223,8 @@ export default class AccessibilityExtensionAbility { onAccessibilityKeyEvent(keyEvent: KeyEvent): boolean; } +export default AccessibilityExtensionAbility; + /** * Indicates the accessibility event. * It provides the event type and the target element of the event if any. diff --git a/api/application/AccessibilityExtensionContext.d.ts b/api/application/AccessibilityExtensionContext.d.ts index 92099a3d89..e1c333a22f 100644 --- a/api/application/AccessibilityExtensionContext.d.ts +++ b/api/application/AccessibilityExtensionContext.d.ts @@ -32,7 +32,7 @@ import { AccessibilityAction } from '../@ohos.accessibility'; * @syscap SystemCapability.BarrierFree.Accessibility.Core * @since 9 */ -export default class AccessibilityExtensionContext extends ExtensionContext { +declare class AccessibilityExtensionContext extends ExtensionContext { /** * Set the bundle names that is interested in sending the event. * @@ -410,6 +410,8 @@ export default class AccessibilityExtensionContext extends ExtensionContext { getAccessibilityWindowsSync(displayId?: number): Array; } +export default AccessibilityExtensionContext; + /** * Indicates an accessibility element. * Supports querying element attributes, requesting execution actions, and finding child elements by condition. @@ -418,7 +420,7 @@ export default class AccessibilityExtensionContext extends ExtensionContext { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @since 9 */ -declare interface AccessibilityElement { +export declare interface AccessibilityElement { /** * Get a list of attribute names. * @@ -1634,7 +1636,7 @@ export declare class Parameter { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @since 11 */ -interface ElementAttributeValues { +export interface ElementAttributeValues { /** * Indicates accessibility focus state. * @@ -2090,7 +2092,7 @@ interface ElementAttributeValues { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @since 9 */ -type FocusDirection = 'up' | 'down' | 'left' | 'right' | 'forward' | 'backward'; +export type FocusDirection = 'up' | 'down' | 'left' | 'right' | 'forward' | 'backward'; /** * Indicates the type of the focus. @@ -2099,7 +2101,7 @@ type FocusDirection = 'up' | 'down' | 'left' | 'right' | 'forward' | 'backward'; * @syscap SystemCapability.BarrierFree.Accessibility.Core * @since 9 */ -type FocusType = 'accessibility' | 'normal'; +export type FocusType = 'accessibility' | 'normal'; /** * Indicates the type of the window. @@ -2108,7 +2110,7 @@ type FocusType = 'accessibility' | 'normal'; * @syscap SystemCapability.BarrierFree.Accessibility.Core * @since 9 */ -type WindowType = 'application' | 'system'; +export type WindowType = 'application' | 'system'; /** * Indicates rectangle. @@ -2117,7 +2119,7 @@ type WindowType = 'application' | 'system'; * @syscap SystemCapability.BarrierFree.Accessibility.Core * @since 9 */ -interface Rect { +export interface Rect { /** * The left position of Rect * -- Gitee From a1a657f54eb180dfab91fb9554b424534eb8d1d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=8F=91=E5=8F=91?= Date: Mon, 1 Sep 2025 14:48:43 +0800 Subject: [PATCH 3/5] description MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 小发发 --- api/@ohos.application.AccessibilityExtensionAbility.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/@ohos.application.AccessibilityExtensionAbility.d.ts b/api/@ohos.application.AccessibilityExtensionAbility.d.ts index b67883aee2..0122f0f71d 100644 --- a/api/@ohos.application.AccessibilityExtensionAbility.d.ts +++ b/api/@ohos.application.AccessibilityExtensionAbility.d.ts @@ -29,7 +29,7 @@ import type { Rect as _Rect, Parameter as _Parameter, } from './application/AccessibilityExtensionContext'; -import type * as _AccessibilityExtensionContext from './application/AccessibilityExtensionContext'; +import AccessibilityExtensionContext from './application/AccessibilityExtensionContext'; import { AccessibilityEventType } from './@ohos.accessibility'; @@ -114,7 +114,7 @@ export type Parameter = _Parameter; * @since 10 */ -export type AccessibilityExtensionContext = _AccessibilityExtensionContext.default; +export { AccessibilityExtensionContext }; /** * class of accessibility extension ability. -- Gitee From cec70c824a529510d782e241754e0bf7ded4a6cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=8F=91=E5=8F=91?= Date: Tue, 2 Sep 2025 20:07:46 +0800 Subject: [PATCH 4/5] description MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 小发发 --- ...application.AccessibilityExtensionAbility.d.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/api/@ohos.application.AccessibilityExtensionAbility.d.ts b/api/@ohos.application.AccessibilityExtensionAbility.d.ts index 0122f0f71d..a118d28599 100644 --- a/api/@ohos.application.AccessibilityExtensionAbility.d.ts +++ b/api/@ohos.application.AccessibilityExtensionAbility.d.ts @@ -29,7 +29,12 @@ import type { Rect as _Rect, Parameter as _Parameter, } from './application/AccessibilityExtensionContext'; +/*** if arkts 1.1 */ +import type * as _AccessibilityExtensionContext from './application/AccessibilityExtensionContext'; +/*** endif */ +/*** if arkts 1.2 */ import AccessibilityExtensionContext from './application/AccessibilityExtensionContext'; +/*** endif */ import { AccessibilityEventType } from './@ohos.accessibility'; @@ -114,6 +119,16 @@ export type Parameter = _Parameter; * @since 10 */ +export type AccessibilityExtensionContext = _AccessibilityExtensionContext.default; + +/** + * The accessibility extension context. Used to configure, query information, and inject gestures. + * + * @syscap SystemCapability.BarrierFree.Accessibility.Core + * @since 20 + * @arkts 1.2 + */ + export { AccessibilityExtensionContext }; /** -- Gitee From 6bd5f5ef6f4f938d3e1dceef34f447dc54b2f3b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=8F=91=E5=8F=91?= Date: Thu, 4 Sep 2025 10:34:19 +0800 Subject: [PATCH 5/5] description MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 小发发 --- ...ication.AccessibilityExtensionAbility.d.ts | 19 +------------------ .../AccessibilityExtensionContext.d.ts | 16 +++++++--------- 2 files changed, 8 insertions(+), 27 deletions(-) diff --git a/api/@ohos.application.AccessibilityExtensionAbility.d.ts b/api/@ohos.application.AccessibilityExtensionAbility.d.ts index a118d28599..2e77bb9146 100644 --- a/api/@ohos.application.AccessibilityExtensionAbility.d.ts +++ b/api/@ohos.application.AccessibilityExtensionAbility.d.ts @@ -29,12 +29,7 @@ import type { Rect as _Rect, Parameter as _Parameter, } from './application/AccessibilityExtensionContext'; -/*** if arkts 1.1 */ import type * as _AccessibilityExtensionContext from './application/AccessibilityExtensionContext'; -/*** endif */ -/*** if arkts 1.2 */ -import AccessibilityExtensionContext from './application/AccessibilityExtensionContext'; -/*** endif */ import { AccessibilityEventType } from './@ohos.accessibility'; @@ -121,23 +116,13 @@ export type Parameter = _Parameter; export type AccessibilityExtensionContext = _AccessibilityExtensionContext.default; -/** - * The accessibility extension context. Used to configure, query information, and inject gestures. - * - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 20 - * @arkts 1.2 - */ - -export { AccessibilityExtensionContext }; - /** * class of accessibility extension ability. * * @syscap SystemCapability.BarrierFree.Accessibility.Core * @since 9 */ -declare class AccessibilityExtensionAbility { +export default class AccessibilityExtensionAbility { /** * Indicates accessibility extension ability context. * @@ -238,8 +223,6 @@ declare class AccessibilityExtensionAbility { onAccessibilityKeyEvent(keyEvent: KeyEvent): boolean; } -export default AccessibilityExtensionAbility; - /** * Indicates the accessibility event. * It provides the event type and the target element of the event if any. diff --git a/api/application/AccessibilityExtensionContext.d.ts b/api/application/AccessibilityExtensionContext.d.ts index e1c333a22f..92099a3d89 100644 --- a/api/application/AccessibilityExtensionContext.d.ts +++ b/api/application/AccessibilityExtensionContext.d.ts @@ -32,7 +32,7 @@ import { AccessibilityAction } from '../@ohos.accessibility'; * @syscap SystemCapability.BarrierFree.Accessibility.Core * @since 9 */ -declare class AccessibilityExtensionContext extends ExtensionContext { +export default class AccessibilityExtensionContext extends ExtensionContext { /** * Set the bundle names that is interested in sending the event. * @@ -410,8 +410,6 @@ declare class AccessibilityExtensionContext extends ExtensionContext { getAccessibilityWindowsSync(displayId?: number): Array; } -export default AccessibilityExtensionContext; - /** * Indicates an accessibility element. * Supports querying element attributes, requesting execution actions, and finding child elements by condition. @@ -420,7 +418,7 @@ export default AccessibilityExtensionContext; * @syscap SystemCapability.BarrierFree.Accessibility.Core * @since 9 */ -export declare interface AccessibilityElement { +declare interface AccessibilityElement { /** * Get a list of attribute names. * @@ -1636,7 +1634,7 @@ export declare class Parameter { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @since 11 */ -export interface ElementAttributeValues { +interface ElementAttributeValues { /** * Indicates accessibility focus state. * @@ -2092,7 +2090,7 @@ export interface ElementAttributeValues { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @since 9 */ -export type FocusDirection = 'up' | 'down' | 'left' | 'right' | 'forward' | 'backward'; +type FocusDirection = 'up' | 'down' | 'left' | 'right' | 'forward' | 'backward'; /** * Indicates the type of the focus. @@ -2101,7 +2099,7 @@ export type FocusDirection = 'up' | 'down' | 'left' | 'right' | 'forward' | 'bac * @syscap SystemCapability.BarrierFree.Accessibility.Core * @since 9 */ -export type FocusType = 'accessibility' | 'normal'; +type FocusType = 'accessibility' | 'normal'; /** * Indicates the type of the window. @@ -2110,7 +2108,7 @@ export type FocusType = 'accessibility' | 'normal'; * @syscap SystemCapability.BarrierFree.Accessibility.Core * @since 9 */ -export type WindowType = 'application' | 'system'; +type WindowType = 'application' | 'system'; /** * Indicates rectangle. @@ -2119,7 +2117,7 @@ export type WindowType = 'application' | 'system'; * @syscap SystemCapability.BarrierFree.Accessibility.Core * @since 9 */ -export interface Rect { +interface Rect { /** * The left position of Rect * -- Gitee