diff --git a/api/@ohos.accessibility.config.d.ets b/api/@ohos.accessibility.config.d.ets deleted file mode 100644 index bd0ec9a64c2447e0e70503f33913aaed68aa6b57..0000000000000000000000000000000000000000 --- a/api/@ohos.accessibility.config.d.ets +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright (C) 2025 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * @file - * @kit AccessibilityKit - */ - -import { AccessibilityError } from './@ohos.accessibility'; - -/** - * Configuration of the accessibility. - * - * @namespace config - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @systemapi - * @since 20 - */ -declare namespace config { - /** - * Indicates the configuration of high-contrast text. - * - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @systemapi - * @since 20 - */ - const highContrastText: HighContrastTextConfig; - /** - * Indicates setting and getting in configuration. - * - * @typedef HighContrastTextConfig - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @systemapi - * @since 20 - */ - class HighContrastTextConfig { - /** - * Setting configuration value. - * - * @permission ohos.permission.WRITE_ACCESSIBILITY_CONFIG - * @param { boolean } value Indicates the value. - * @returns { Promise } - * @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: - * 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types; - * 3. Parameter verification failed. - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @systemapi - * @since 20 - */ - set(value: boolean): Promise; - - /** - * Setting configuration value. - * - * @permission ohos.permission.WRITE_ACCESSIBILITY_CONFIG - * @param { boolean } value Indicates the value. - * @param { AsyncCallback } callback - * @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: - * 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types; - * 3. Parameter verification failed. - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @systemapi - * @since 20 - */ - set(value: boolean, callback: (err: AccessibilityError) => void): void; - - /** - * Getting configuration value. - * - * @returns { Promise } - * @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. - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @systemapi - * @since 20 - */ - get(): Promise; - - /** - * Getting configuration value. - * - * @param { AsyncCallback } callback - * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @systemapi - * @since 20 - */ - get(callback:(err: AccessibilityError, data: boolean) => void): void; - } -} -export default config; diff --git a/api/@ohos.accessibility.config.d.ts b/api/@ohos.accessibility.config.d.ts index 70f86c0131c298c06a28ec02048b992274ed0eaa..a777285c2d9531a75c90ae8b141b9e284d14cf23 100644 --- a/api/@ohos.accessibility.config.d.ts +++ b/api/@ohos.accessibility.config.d.ts @@ -27,7 +27,8 @@ import type { AsyncCallback, Callback } from './@ohos.base'; * @namespace config * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ declare namespace config { /** @@ -57,11 +58,13 @@ declare namespace config { /** * Indicates the configuration of high-contrast text. * + * @type { Config } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - var highContrastText: Config; + let highContrastText: Config; /** * Indicates the configuration of invert color. * @@ -361,7 +364,8 @@ declare namespace config { * @typedef Config * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ interface Config { /** @@ -379,7 +383,8 @@ declare namespace config { * 3. Parameter verification failed. * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ set(value: T): Promise; @@ -398,7 +403,8 @@ declare namespace config { * 3. Parameter verification failed. * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ set(value: T, callback: AsyncCallback): void; @@ -411,7 +417,8 @@ declare namespace config { * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ get(): Promise; @@ -422,7 +429,8 @@ declare namespace config { * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ get(callback: AsyncCallback): void; diff --git a/api/@ohos.accessibility.d.ets b/api/@ohos.accessibility.d.ets deleted file mode 100644 index f737eaa5bb2dd3af9815fff72854acf81e1ecc4f..0000000000000000000000000000000000000000 --- a/api/@ohos.accessibility.d.ets +++ /dev/null @@ -1,389 +0,0 @@ -/* - * Copyright (C) 2025 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * @file - * @kit AccessibilityKit - */ - -import { Callback } from './@ohos.base'; - -/** - * Defines the error interface. - * - * @extends Error - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 20 - */ -export declare class AccessibilityError extends Error { - constructor(code: int, message: string); - code: int; -} - -/** - * Defines the basic callback. - * - * @typedef { AccessibilityCallback } - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 20 - */ -type AccessibilityCallback = (err: AccessibilityError, data?: T) => void; - -/** - * Accessibility - * - * @namespace accessibility - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 - */ -/** - * Accessibility - * - * @namespace accessibility - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @atomicservice - * @since 11 - */ -declare namespace accessibility { - /** - * The action that the ability can execute. - * value range: { 'accessibilityFocus' | 'clearAccessibilityFocus' | 'focus' | 'clearFocus' | 'clearSelection' | - * 'click' | 'longClick' | 'cut' | 'copy' | 'paste' | 'select' | 'setText' | 'delete' | - * 'scrollForward' | 'scrollBackward' | 'setSelection' } - * - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 - */ - /** - * The action that the ability can execute. - * value range: { 'accessibilityFocus' | 'clearAccessibilityFocus' | 'focus' | 'clearFocus' | 'clearSelection' | - * 'click' | 'longClick' | 'cut' | 'copy' | 'paste' | 'select' | 'setText' | 'delete' | - * 'scrollForward' | 'scrollBackward' | 'setSelection' | 'setCursorPosition' | 'home' | - * 'back' | 'recentTask' | 'notificationCenter' | 'controlCenter' | 'common' } - * - * @typedef {'accessibilityFocus' | 'clearAccessibilityFocus' | 'focus' | 'clearFocus' | 'clearSelection' | 'click' | - * 'longClick' | 'cut' | 'copy' | 'paste' | 'select' | 'setText' | 'delete' | 'scrollForward' | 'scrollBackward' | - * 'setSelection' | 'setCursorPosition' | 'home' | 'back' | 'recentTask' | 'notificationCenter' | - * 'controlCenter' | 'common'} - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 12 - */ - type Action = 'accessibilityFocus' | 'clearAccessibilityFocus' | 'focus' | 'clearFocus' | 'clearSelection' | - 'click' | 'longClick' | 'cut' | 'copy' | 'paste' | 'select' | 'setText' | 'delete' | - 'scrollForward' | 'scrollBackward' | 'setSelection' | 'setCursorPosition' | 'home' | - 'back' | 'recentTask' | 'notificationCenter' | 'controlCenter' | 'common'; - - /** - * The type of the accessibility event. - * windowsChange/windowContentChange/windowStateChange/announcement/notificationChange/textTraversedAtMove - * value range: { 'accessibilityFocus' | 'accessibilityFocusClear' | - * 'click' | 'longClick' | 'focus' | 'select' | 'hoverEnter' | 'hoverExit' | - * 'textUpdate' | 'textSelectionUpdate' | 'scroll' } - * - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 - */ - /** - * The type of the accessibility event. - * windowsChange/windowContentChange/windowStateChange/announcement/notificationChange/textTraversedAtMove - * value range: { 'accessibilityFocus' | 'accessibilityFocusClear' | - * 'click' | 'longClick' | 'focus' | 'select' | 'hoverEnter' | 'hoverExit' | - * 'textUpdate' | 'textSelectionUpdate' | 'scroll' | 'requestFocusForAccessibility' | - * 'announceForAccessibility' } - * - * @typedef {'accessibilityFocus' | 'accessibilityFocusClear' | 'click' | 'longClick' | 'focus' | 'select' | - * 'hoverEnter' | 'hoverExit' | 'textUpdate' | 'textSelectionUpdate' | 'scroll' | 'requestFocusForAccessibility' | - * 'announceForAccessibility'} - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 12 - */ - type EventType = 'accessibilityFocus' | 'accessibilityFocusClear' | - 'click' | 'longClick' | 'focus' | 'select' | 'hoverEnter' | 'hoverExit' | - 'textUpdate' | 'textSelectionUpdate' | 'scroll' | 'requestFocusForAccessibility' | - 'announceForAccessibility'; - - /** - * The change type of the windowsChange event. - * It's used when received the {@code windowsChange} event. - * - * @typedef {'add' | 'remove' | 'bounds' | 'active' | 'focus'} - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 - */ - type WindowUpdateType = 'add' | 'remove' | 'bounds' | 'active' | 'focus'; - - /** - * The type of the observer. - * - * @typedef {'accessibilityStateChange' | 'touchGuideStateChange' | 'screenReaderStateChange'} - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 - */ - type ObserverEventType = 'accessibilityStateChange' | 'touchGuideStateChange' | 'screenReaderStateChange'; - - /** - * The granularity of text move. - * - * @typedef {'char' | 'word' | 'line' | 'page' | 'paragraph'} - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 20 - */ - type TextMoveUnit = 'char' | 'word' | 'line' | 'page' | 'paragraph'; - - /** - * Checks whether accessibility ability is enabled. - * - * @returns { boolean } Returns true if the accessibility is enabled; returns false otherwise. - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 10 - */ - /** - * Checks whether accessibility ability is enabled. - * - * @returns { boolean } Returns true if the accessibility is enabled; returns false otherwise. - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @atomicservice - * @since 11 - */ - function isOpenAccessibilitySync(): boolean; - - /** - * Checks touch browser ability (which is used by talkback) is enabled. - * - * @returns { boolean } Returns true if the touch browser is enabled; returns false otherwise. - * @syscap SystemCapability.BarrierFree.Accessibility.Vision - * @since 10 - */ - /** - * Checks touch browser ability (which is used by talkback) is enabled. - * - * @returns { boolean } Returns true if the touch browser is enabled; returns false otherwise. - * @syscap SystemCapability.BarrierFree.Accessibility.Vision - * @atomicservice - * @since 11 - */ - function isOpenTouchGuideSync(): boolean; - - /** - * Send accessibility event. - * - * @param { EventInfo } event The object of the accessibility {@code EventInfo} . - * @param { AccessibilityCallback } callback Asynchronous callback interface. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: - * 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types; - * 3. Parameter verification failed. - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 - */ - function sendAccessibilityEvent(event: EventInfo, callback: AccessibilityCallback): void; - - /** - * Send accessibility event. - * - * @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: - * 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types; - * 3. Parameter verification failed. - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 - */ - function sendAccessibilityEvent(event: EventInfo): Promise; - - /** - * Register the observe. - * - * @param { ObserverEventType } type state event type. - * @param { Callback } callback Asynchronous callback interface. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: - * 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types; - * 3. Parameter verification failed. - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 - */ - function on(type: ObserverEventType, callback: Callback): void; - - /** - * Unregister the observe. - * - * @param { ObserverEventType } type state event type - * @param { Callback } callback Asynchronous callback interface. - * @throws { BusinessError } 401 - Input parameter error. Possible causes: - * 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types; - * 3. Parameter verification failed. - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 - */ - function off(type: ObserverEventType, callback?: Callback): void; - - /** - * Indicates the info of events. - * - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 - */ - class EventInfo { - /** - * A constructor used to create a EventInfo object. - * - * @param { EventType } type - The type of the accessibility event. - * @param { string } bundleName - The name of the bundle. - * @param { Action } triggerAction - The action that the ability can execute. - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 11 - */ - constructor(type: EventType, bundleName: string, triggerAction: Action); - /** - * The type of an accessibility event. - * @type { EventType } - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 - */ - public type: EventType; - - /** - * The type of the window change event. - * @type { ?WindowUpdateType } - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 - */ - public windowUpdateType?: WindowUpdateType; - - /** - * The bundle name of the target application. - * @type { string } - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 - */ - public bundleName: string; - - /** - * The type of the event source component,such as button, chart. - * @type { ?string } - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 - */ - public componentType?: string; - - /** - * The page id of the event source. - * @type { ?number } - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 - */ - public pageId?: number; - - /** - * The accessibility event description. - * @type { ?string } - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 - */ - public description?: string; - - /** - * The action that triggers the accessibility event, for example, clicking or focusing a view. - * @type { Action } - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 - */ - public triggerAction: Action; - - /** - * The movement step used for reading texts. - * @type { ?TextMoveUnit } - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 - */ - public textMoveUnit?: TextMoveUnit; - - /** - * The content list. - * @type { ?Array } - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 - */ - public contents?: Array; - - /** - * The content changed before. - * @type { ?string } - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 - */ - public lastContent?: string; - - /** - * The start index of listed items on the screen. - * @type { ?number } - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 - */ - public beginIndex?: number; - - /** - * The index of the current item on the screen. - * @type { ?number } - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 - */ - public currentIndex?: number; - - /** - * The end index of listed items on the screen. - * @type { ?number } - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 - */ - public endIndex?: number; - - /** - * The total of the items, talkback used it when scroll. - * @type { ?number } - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 - */ - public itemCount?: number; - - /** - * The id of element. - * @type { ?number } - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 12 - */ - public elementId?: number; - - /** - * The content of announce accessibility text. - * @type { ?string } - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 12 - */ - public textAnnouncedForAccessibility?: string; - - /** - * The customized element id. - * @type { ?string } - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 12 - */ - public customId?: string; - } -} -export default accessibility; \ No newline at end of file diff --git a/api/@ohos.accessibility.d.ts b/api/@ohos.accessibility.d.ts index b8de1bc19b713bb5982d48559fb147e60c08c1cf..697855852f0bf06d7fe0a7db5f915d711833fa58 100644 --- a/api/@ohos.accessibility.d.ts +++ b/api/@ohos.accessibility.d.ts @@ -35,7 +35,8 @@ import { Resource } from './global/resource'; * @namespace accessibility * @syscap SystemCapability.BarrierFree.Accessibility.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ declare namespace accessibility { /** @@ -73,7 +74,8 @@ declare namespace accessibility { * * @typedef {'accessibilityFocus' | 'clearAccessibilityFocus' | 'focus' | 'clearFocus' | 'clearSelection' | 'click' | 'longClick' | 'cut' | 'copy' | 'paste' | 'select' | 'setText' | 'delete' | 'scrollForward' | 'scrollBackward' | 'setSelection' | 'setCursorPosition' | 'home' | 'back' | 'recentTask' | 'notificationCenter' | 'controlCenter' | 'common'} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ type Action = 'accessibilityFocus' | 'clearAccessibilityFocus' | 'focus' | 'clearFocus' | 'clearSelection' | 'click' | 'longClick' | 'cut' | 'copy' | 'paste' | 'select' | 'setText' | 'delete' | @@ -113,7 +115,8 @@ declare namespace accessibility { * * @typedef {'accessibilityFocus' | 'accessibilityFocusClear' | 'click' | 'longClick' | 'focus' | 'select' | 'hoverEnter' | 'hoverExit' | 'textUpdate' | 'textSelectionUpdate' | 'scroll' | 'requestFocusForAccessibility' | 'announceForAccessibility' | 'requestFocusForAccessibilityNotInterrupt' | 'announceForAccessibilityNotInterrupt' | 'scrolling'} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ type EventType = 'accessibilityFocus' | 'accessibilityFocusClear' | 'click' | 'longClick' | 'focus' | 'select' | 'hoverEnter' | 'hoverExit' | @@ -127,7 +130,8 @@ declare namespace accessibility { * * @typedef {'add' | 'remove' | 'bounds' | 'active' | 'focus'} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 + * @since arkts {'1.1':'7', '1.2':'20'} + * @arkts 1.1&1.2 */ type WindowUpdateType = 'add' | 'remove' | 'bounds' | 'active' | 'focus'; @@ -160,7 +164,8 @@ declare namespace accessibility { * * @typedef {'char' | 'word' | 'line' | 'page' | 'paragraph'} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 + * @since arkts {'1.1':'7', '1.2':'20'} + * @arkts 1.1&1.2 */ type TextMoveUnit = 'char' | 'word' | 'line' | 'page' | 'paragraph'; @@ -199,7 +204,8 @@ declare namespace accessibility { * @returns { boolean } Returns true if the accessibility is enabled; returns false otherwise. * @syscap SystemCapability.BarrierFree.Accessibility.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ function isOpenAccessibilitySync(): boolean; @@ -238,7 +244,8 @@ declare namespace accessibility { * @returns { boolean } Returns true if the touch browser is enabled; returns false otherwise. * @syscap SystemCapability.BarrierFree.Accessibility.Vision * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ function isOpenTouchGuideSync(): boolean; @@ -365,7 +372,8 @@ declare namespace accessibility { * 2. Incorrect parameter types; * 3. Parameter verification failed. * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function sendAccessibilityEvent(event: EventInfo, callback: AsyncCallback): void; @@ -379,7 +387,8 @@ declare namespace accessibility { * 2. Incorrect parameter types; * 3. Parameter verification failed. * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function sendAccessibilityEvent(event: EventInfo): Promise; @@ -393,7 +402,8 @@ declare namespace accessibility { * 2. Incorrect parameter types; * 3. Parameter verification failed. * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 + * @since arkts {'1.1':'7', '1.2':'20'} + * @arkts 1.1&1.2 */ function on(type: 'accessibilityStateChange', callback: Callback): void; @@ -407,7 +417,8 @@ declare namespace accessibility { * 2. Incorrect parameter types; * 3. Parameter verification failed. * @syscap SystemCapability.BarrierFree.Accessibility.Vision - * @since 7 + * @since arkts {'1.1':'7', '1.2':'20'} + * @arkts 1.1&1.2 */ function on(type: 'touchGuideStateChange', callback: Callback): void; @@ -420,7 +431,8 @@ declare namespace accessibility { * 2. Incorrect parameter types; * 3. Parameter verification failed. * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ function on(type: 'screenReaderStateChange', callback: Callback): void; @@ -434,7 +446,8 @@ declare namespace accessibility { * 2. Incorrect parameter types; * 3. Parameter verification failed. * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 + * @since arkts {'1.1':'7', '1.2':'20'} + * @arkts 1.1&1.2 */ function off(type: 'accessibilityStateChange', callback?: Callback): void; @@ -448,7 +461,8 @@ declare namespace accessibility { * 2. Incorrect parameter types; * 3. Parameter verification failed. * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 + * @since arkts {'1.1':'7', '1.2':'20'} + * @arkts 1.1&1.2 */ function off(type: 'touchGuideStateChange', callback?: Callback): void; @@ -461,7 +475,8 @@ declare namespace accessibility { * 2. Incorrect parameter types; * 3. Parameter verification failed. * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ function off(type: 'screenReaderStateChange', callback?: Callback): void; @@ -733,7 +748,8 @@ declare namespace accessibility { * Indicates the info of events. * * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 + * @since arkts {'1.1':'7', '1.2':'20'} + * @arkts 1.1&1.2 */ class EventInfo { /** @@ -751,14 +767,16 @@ declare namespace accessibility { * @param { string } bundleName - The name of the bundle. * @param { Action } triggerAction - The action that the ability can execute. * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ constructor(type: EventType, bundleName: string, triggerAction: Action); /** * The type of an accessibility event. * @type { EventType } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 + * @since arkts {'1.1':'7', '1.2':'20'} + * @arkts 1.1&1.2 */ type: EventType; @@ -766,7 +784,8 @@ declare namespace accessibility { * The type of the window change event. * @type { ?WindowUpdateType } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 + * @since arkts {'1.1':'7', '1.2':'20'} + * @arkts 1.1&1.2 */ windowUpdateType?: WindowUpdateType; @@ -774,7 +793,8 @@ declare namespace accessibility { * The bundle name of the target application. * @type { string } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 + * @since arkts {'1.1':'7', '1.2':'20'} + * @arkts 1.1&1.2 */ bundleName: string; @@ -782,7 +802,8 @@ declare namespace accessibility { * The type of the event source component,such as button, chart. * @type { ?string } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 + * @since arkts {'1.1':'7', '1.2':'20'} + * @arkts 1.1&1.2 */ componentType?: string; @@ -790,7 +811,8 @@ declare namespace accessibility { * The page id of the event source. * @type { ?number } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 + * @since arkts {'1.1':'7', '1.2':'20'} + * @arkts 1.1&1.2 */ pageId?: number; @@ -798,7 +820,8 @@ declare namespace accessibility { * The accessibility event description. * @type { ?string } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 + * @since arkts {'1.1':'7', '1.2':'20'} + * @arkts 1.1&1.2 */ description?: string; @@ -806,7 +829,8 @@ declare namespace accessibility { * The action that triggers the accessibility event, for example, clicking or focusing a view. * @type { Action } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 + * @since arkts {'1.1':'7', '1.2':'20'} + * @arkts 1.1&1.2 */ triggerAction: Action; @@ -814,7 +838,8 @@ declare namespace accessibility { * The movement step used for reading texts. * @type { ?TextMoveUnit } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 + * @since arkts {'1.1':'7', '1.2':'20'} + * @arkts 1.1&1.2 */ textMoveUnit?: TextMoveUnit; @@ -822,7 +847,8 @@ declare namespace accessibility { * The content list. * @type { ?Array } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 + * @since arkts {'1.1':'7', '1.2':'20'} + * @arkts 1.1&1.2 */ contents?: Array; @@ -830,7 +856,8 @@ declare namespace accessibility { * The content changed before. * @type { ?string } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 + * @since arkts {'1.1':'7', '1.2':'20'} + * @arkts 1.1&1.2 */ lastContent?: string; @@ -838,7 +865,8 @@ declare namespace accessibility { * The start index of listed items on the screen. * @type { ?number } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 + * @since arkts {'1.1':'7', '1.2':'20'} + * @arkts 1.1&1.2 */ beginIndex?: number; @@ -846,7 +874,8 @@ declare namespace accessibility { * The index of the current item on the screen. * @type { ?number } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 + * @since arkts {'1.1':'7', '1.2':'20'} + * @arkts 1.1&1.2 */ currentIndex?: number; @@ -854,7 +883,8 @@ declare namespace accessibility { * The end index of listed items on the screen. * @type { ?number } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 + * @since arkts {'1.1':'7', '1.2':'20'} + * @arkts 1.1&1.2 */ endIndex?: number; @@ -862,7 +892,8 @@ declare namespace accessibility { * The total of the items, talkback used it when scroll. * @type { ?number } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 + * @since arkts {'1.1':'7', '1.2':'20'} + * @arkts 1.1&1.2 */ itemCount?: number; @@ -870,7 +901,8 @@ declare namespace accessibility { * The id of element. * @type { ?number } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ elementId?: number; @@ -878,7 +910,8 @@ declare namespace accessibility { * The content of announce accessibility text. * @type { ?string } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ textAnnouncedForAccessibility?: string; @@ -894,7 +927,8 @@ declare namespace accessibility { * The customized element id. * @type { ?string } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ customId?: string; }