diff --git a/api/@ohos.accessibility.GesturePath.d.ts b/api/@ohos.accessibility.GesturePath.d.ts index 7e5758735f131e83303ce00eaee2369e420c94d2..5c661dac5ad920c6fd2e60a7cf412606ed08832f 100644 --- a/api/@ohos.accessibility.GesturePath.d.ts +++ b/api/@ohos.accessibility.GesturePath.d.ts @@ -24,32 +24,35 @@ import type { GesturePoint } from './@ohos.accessibility.GesturePoint'; * Indicates the path of the gesture. * * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ export declare class GesturePath { /** * A constructor used to create a GesturePath object. * - * @param { number } durationTime - Indicates the duration of the gesture. + * @param { long } durationTime - Indicates the duration of the gesture. * @syscap SystemCapability.BarrierFree.Accessibility.Core * @since 9 * @deprecated since 12 */ - constructor(durationTime: number); + constructor(durationTime: long); /** * Indicates the position of the points that make up the gesture. * * @type { Array } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ points: Array; /** * Indicates the duration of the gesture. * - * @type { number } + * @type { long } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - durationTime: number; + durationTime: long; } diff --git a/api/@ohos.accessibility.GesturePoint.d.ts b/api/@ohos.accessibility.GesturePoint.d.ts index c6d9afb51dcf7c3b45516a428989955991f59e53..e2cba9892038c0bd80c68ce3d0f3a8f92d83e4e7 100644 --- a/api/@ohos.accessibility.GesturePoint.d.ts +++ b/api/@ohos.accessibility.GesturePoint.d.ts @@ -22,33 +22,38 @@ * Indicates the point of the gesture. * * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ export declare class GesturePoint { + /*** if arkts 1.1 */ /** * A constructor used to create a GesturePoint object. * - * @param { number } positionX - Indicates the X coordinate of point. - * @param { number } positionY - Indicates the Y coordinate of point. + * @param { long } positionX - Indicates the X coordinate of point. + * @param { long } positionY - Indicates the Y coordinate of point. * @syscap SystemCapability.BarrierFree.Accessibility.Core * @since 9 * @deprecated since 12 */ - constructor(positionX: number, positionY: number); + constructor(positionX: double, positionY: double); + /*** endif */ /** * Indicates the X coordinate of point. * - * @type { number } + * @type { double } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - positionX: number; + positionX: double; /** * Indicates the Y coordinate of point. * - * @type { number } + * @type { double } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - positionY: number; + positionY: double; } diff --git a/api/@ohos.accessibility.config.d.ts b/api/@ohos.accessibility.config.d.ts index 09fea52272c8fda2ba773a0c2301a25d3ea0f5b4..50b8c9e4856ec3ef861a31dde72d6829606d4baa 100644 --- a/api/@ohos.accessibility.config.d.ts +++ b/api/@ohos.accessibility.config.d.ts @@ -17,9 +17,10 @@ * @file * @kit AccessibilityKit */ - +/*** if arkts 1.1&1.2 */ import type accessibility from './@ohos.accessibility'; import type { AsyncCallback, Callback } from './@ohos.base'; +/*** endif */ /** * Configuration of the accessibility. @@ -36,7 +37,8 @@ declare namespace config { * * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ const daltonizationState: Config; /** @@ -44,17 +46,20 @@ declare namespace config { * * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ const audioMono: Config; /** * Indicates the configuration of audio balance. * + * @type { Config } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ - const audioBalance: Config; + const audioBalance: Config; /** * Indicates the configuration of high-contrast text. * @@ -68,105 +73,129 @@ declare namespace config { /** * Indicates the configuration of invert color. * + * @type { Config } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - var invertColor: Config; + let invertColor: Config; /** * Indicates the configuration of daltonization color filter. * + * @type { Config } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - var daltonizationColorFilter: Config; + let daltonizationColorFilter: Config; /** * Indicates the configuration of content timeout. * + * @type { Config } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - var contentTimeout: Config; + let contentTimeout: Config; /** * Indicates the configuration of animation state. * + * @type { Config } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - var animationOff: Config; + let animationOff: Config; /** * Indicates the configuration of brightness discount. * + * @type { Config } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - var brightnessDiscount: Config; + let brightnessDiscount: Config; /** * Indicates the configuration of mouse key state. * + * @type { Config } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - var mouseKey: Config; + let mouseKey: Config; /** * Indicates the configuration of mouse auto click. * + * @type { Config } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - var mouseAutoClick: Config; + let mouseAutoClick: Config; /** * Indicates the configuration of short key state. * + * @type { Config } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - var shortkey: Config; + let shortkey: Config; /** * Indicates the configuration of short key target. * + * @type { Config } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - var shortkeyTarget: Config; + let shortkeyTarget: Config; /** * Indicates the configuration of short key multi targets. * * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ const shortkeyMultiTargets: Config>; /** * Indicates the configuration of captions state. * + * @type { Config } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - var captions: Config; + let captions: Config; /** * Indicates the configuration of captions style. * + * @type { Config } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - var captionsStyle: Config; + let captionsStyle: Config; /** * Indicates the configuration of click response time. * * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ const clickResponseTime: Config; /** @@ -174,7 +203,8 @@ declare namespace config { * * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ const ignoreRepeatClick: Config; /** @@ -182,7 +212,8 @@ declare namespace config { * * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ const repeatClickInterval: Config; /** @@ -190,7 +221,8 @@ declare namespace config { * * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ const screenMagnification: Config; @@ -212,7 +244,8 @@ declare namespace config { * @throws { BusinessError } 9300002 - Target ability already enabled. * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function enableAbility(name: string, capability: Array): Promise; @@ -234,7 +267,8 @@ declare namespace config { * @throws { BusinessError } 9300002 - Target ability already enabled. * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function enableAbility( name: string, @@ -258,7 +292,8 @@ declare namespace config { * @throws { BusinessError } 9300001 - Invalid bundle name or ability name. * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function disableAbility(name: string): Promise; @@ -278,7 +313,8 @@ declare namespace config { * @throws { BusinessError } 9300001 - Invalid bundle name or ability name. * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function disableAbility(name: string, callback: AsyncCallback): void; @@ -297,7 +333,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 */ function on(type: 'enabledAccessibilityExtensionListChange', callback: Callback): void; @@ -316,7 +353,8 @@ declare namespace config { * 3. Parameter verification failed. * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ function on(type: 'installedAccessibilityListChange', callback: Callback): void; @@ -335,7 +373,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 */ function off(type: 'enabledAccessibilityExtensionListChange', callback?: Callback): void; @@ -354,7 +393,8 @@ declare namespace config { * 3. Parameter verification failed. * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ function off(type: 'installedAccessibilityListChange', callback?: Callback): void; @@ -524,7 +564,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 */ on(callback: Callback): void; @@ -538,7 +579,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 */ off(callback?: Callback): void; } @@ -549,7 +591,8 @@ declare namespace config { * @typedef {'Normal' | 'Protanomaly' | 'Deuteranomaly' | 'Tritanomaly'} * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ type DaltonizationColorFilter = 'Normal' | 'Protanomaly' | 'Deuteranomaly' | 'Tritanomaly'; @@ -559,7 +602,8 @@ declare namespace config { * @typedef {'Short' | 'Medium' | 'Long'} * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ type ClickResponseTime = 'Short' | 'Medium' | 'Long'; @@ -569,7 +613,8 @@ declare namespace config { * @typedef {'Shortest' | 'Short' | 'Medium' | 'Long' | 'Longest'} * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ type RepeatClickInterval = 'Shortest' | 'Short' | 'Medium' | 'Long' | 'Longest'; } diff --git a/api/@ohos.accessibility.d.ts b/api/@ohos.accessibility.d.ts index 0f04d961ab1d4bb58decd1c3194d1e161dc7be29..868fc1fc49aadc8c72c1c00513583a0b03cd0813 100644 --- a/api/@ohos.accessibility.d.ts +++ b/api/@ohos.accessibility.d.ts @@ -18,14 +18,16 @@ * @kit AccessibilityKit */ +/*** if arkts 1.1&1.2 */ import type { AsyncCallback } from './@ohos.base'; import type { Callback } from './@ohos.base'; import { Resource } from './global/resource'; +/*** endif */ /** * Accessibility action that the ability can execute. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 @@ -211,15 +213,6 @@ export enum AccessibilityAction { */ CONTROL_CENTER = 19, - /** - * Common - * - * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @systemapi - * @since 20 - */ - COMMON = 20, - /** * SpanClick * @@ -227,17 +220,17 @@ export enum AccessibilityAction { * @systemapi * @since 20 */ - SPAN_CLICK = 21 + SPAN_CLICK = 20 } - /** * AccessibilityEvent type * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ export enum AccessibilityEventType { //EventType @@ -247,6 +240,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_ACCESSIBILITY_FOCUS = 0, @@ -256,6 +250,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_ACCESSIBILITY_FOCUS_CLEAR = 1, @@ -265,6 +260,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_CLICK = 2, @@ -274,6 +270,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_LONG_CLICK = 3, @@ -283,6 +280,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_SELECT = 4, @@ -292,6 +290,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_HOVER_ENTER = 5, @@ -301,6 +300,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_HOVER_EXIT = 6, @@ -310,6 +310,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_FOCUS = 7, @@ -319,6 +320,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_TEXT_UPDATE = 8, @@ -328,6 +330,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_TEXT_SELECTION_UPDATE = 9, @@ -337,6 +340,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_SCROLL = 10, @@ -346,6 +350,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_REQUEST_FOCUS_FOR_ACCESSIBILITY = 11, @@ -355,6 +360,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_ANNOUNCE_FOR_ACCESSIBILITY = 12, @@ -364,6 +370,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_REQUEST_FOCUS_FOR_ACCESSIBILITY_NOT_INTERRUPT = 13, @@ -373,6 +380,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_ANNOUNCE_FOR_ACCESSIBILITY_NOT_INTERRUPT = 14, @@ -382,6 +390,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_ELEMENT_INFO_CHANGE = 15, @@ -391,6 +400,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_SCROLLING = 16, @@ -401,6 +411,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_WINDOW_ADD = 17, @@ -410,6 +421,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_WINDOW_REMOVE = 18, @@ -419,6 +431,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_WINDOW_BOUNDS = 19, @@ -428,6 +441,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_WINDOW_ACTIVE = 20, @@ -437,6 +451,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_WINDOW_FOCUS = 21, @@ -446,6 +461,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_WINDOW_PROPERTY = 22, @@ -455,6 +471,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_WINDOW_LAYER = 23, @@ -465,6 +482,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_TOUCH_BEGIN = 24, @@ -474,6 +492,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_TOUCH_END = 25, @@ -484,6 +503,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_PAGE_CONTENT_UPDATE = 26, @@ -493,6 +513,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_PAGE_STATE_UPDATE = 27, @@ -502,6 +523,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_PAGE_OPEN = 28, @@ -511,6 +533,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_PAGE_CLOSE = 29, @@ -521,6 +544,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_SWIPE_LEFT = 30, @@ -530,6 +554,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_SWIPE_LEFT_THEN_RIGHT = 31, @@ -539,6 +564,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_SWIPE_LEFT_THEN_UP = 32, @@ -548,6 +574,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_SWIPE_LEFT_THEN_DOWN = 33, @@ -557,6 +584,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_SWIPE_RIGHT = 34, @@ -566,6 +594,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_SWIPE_RIGHT_THEN_LEFT = 35, @@ -575,6 +604,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_SWIPE_RIGHT_THEN_UP = 36, @@ -584,6 +614,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_SWIPE_RIGHT_THEN_DOWN = 37, @@ -593,6 +624,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_SWIPE_UP = 38, @@ -602,6 +634,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_SWIPE_UP_THEN_LEFT = 39, @@ -611,6 +644,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_SWIPE_UP_THEN_RIGHT = 40, @@ -620,6 +654,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_SWIPE_UP_THEN_DOWN = 41, @@ -629,6 +664,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_SWIPE_DOWN = 42, @@ -638,6 +674,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_SWIPE_DOWN_THEN_LEFT = 43, @@ -647,6 +684,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_SWIPE_DOWN_THEN_RIGHT = 44, @@ -656,6 +694,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_SWIPE_DOWN_THEN_UP = 45, @@ -665,6 +704,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_TWO_FINGER_SINGLE_TAP = 46, @@ -674,6 +714,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_TWO_FINGER_DOUBLE_TAP = 47, @@ -683,6 +724,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_TWO_FINGER_DOUBLE_TAP_AND_HOLD = 48, @@ -692,6 +734,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_TWO_FINGER_TRIPLE_TAP = 49, @@ -701,6 +744,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_TWO_FINGER_TRIPLE_TAP_AND_HOLD = 50, @@ -710,6 +754,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_THREE_FINGER_SINGLE_TAP = 51, @@ -719,6 +764,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_THREE_FINGER_DOUBLE_TAP = 52, @@ -728,6 +774,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_THREE_FINGER_DOUBLE_TAP_AND_HOLD = 53, @@ -737,6 +784,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_THREE_FINGER_TRIPLE_TAP = 54, @@ -746,6 +794,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_THREE_FINGER_TRIPLE_TAP_AND_HOLD = 55, @@ -755,6 +804,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_FOUR_FINGER_SINGLE_TAP = 56, @@ -764,6 +814,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_FOUR_FINGER_DOUBLE_TAP = 57, @@ -773,6 +824,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_FOUR_FINGER_DOUBLE_TAP_AND_HOLD = 58, @@ -782,6 +834,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_FOUR_FINGER_TRIPLE_TAP = 59, @@ -791,6 +844,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_FOUR_FINGER_TRIPLE_TAP_AND_HOLD = 60, @@ -800,6 +854,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_THREE_FINGER_SWIPE_UP = 61, @@ -809,6 +864,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_THREE_FINGER_SWIPE_DOWN = 62, @@ -818,6 +874,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_THREE_FINGER_SWIPE_LEFT = 63, @@ -827,6 +884,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_THREE_FINGER_SWIPE_RIGHT = 64, @@ -836,6 +894,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_FOUR_FINGER_SWIPE_UP = 65, @@ -845,6 +904,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_FOUR_FINGER_SWIPE_DOWN = 66, @@ -854,6 +914,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_FOUR_FINGER_SWIPE_LEFT = 67, @@ -863,6 +924,7 @@ export enum AccessibilityEventType { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ TYPE_FOUR_FINGER_SWIPE_RIGHT = 68 } @@ -898,7 +960,8 @@ declare namespace accessibility { * *{ 'audible' | 'generic' | 'haptic' | 'spoken' | 'visual' } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 + * @since arkts {'1.1':'7', '1.2':'20'} + * @arkts 1.1&1.2 */ /** * The type of the Ability app. @@ -906,7 +969,8 @@ declare namespace accessibility { * { 'audible' | 'generic' | 'haptic' | 'spoken' | 'visual' | 'all' } * @typedef {'audible' | 'generic' | 'haptic' | 'spoken' | 'visual' | 'all'} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ type AbilityType = 'audible' | 'generic' | 'haptic' | 'spoken' | 'visual' | 'all'; @@ -994,7 +1058,8 @@ declare namespace accessibility { * * @typedef {'enable' | 'disable' | 'install'} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 + * @since arkts {'1.1':'7', '1.2':'20'} + * @arkts 1.1&1.2 */ type AbilityState = 'enable' | 'disable' | 'install'; @@ -1009,7 +1074,8 @@ declare namespace accessibility { * * @typedef {'retrieve' | 'touchGuide' | 'keyEventObserver' | 'zoom' | 'gesture'} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 + * @since arkts {'1.1':'7', '1.2':'20'} + * @arkts 1.1&1.2 */ type Capability = 'retrieve' | 'touchGuide' | 'keyEventObserver' | 'zoom' | 'gesture'; @@ -1116,7 +1182,8 @@ declare namespace accessibility { * Checks screen reader ability (which is used by talkback) is enabled. * @returns { boolean } Returns true if the screen reader is enabled; return false otherwise. * @syscap SystemCapability.BarrierFree.Accessibility.Vision - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ function isScreenReaderOpenSync(): boolean; @@ -1161,7 +1228,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 getAccessibilityExtensionList( abilityType: AbilityType, @@ -1179,7 +1247,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 getAccessibilityExtensionList( abilityType: AbilityType, @@ -1194,7 +1263,8 @@ declare namespace accessibility { * @param { AbilityState } stateType The state of the accessibility ability. {@code AbilityState} eg.installed * @returns { Array } Returns the list of abilityInfos. * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ function getAccessibilityExtensionListSync( abilityType: AbilityType, @@ -1375,24 +1445,20 @@ declare namespace accessibility { */ function onScreenReaderStateChange(type: 'screenReaderStateChange', callback: Callback): void; - /** - * @arkts 1.2 - */ - overload on { onAccessibilityStateChange, onTouchGuideStateChange, onScreenReaderStateChange }; - /** * Register the observe of the touch mode changed. * @param { 'touchModeChange' } type touch mode change. * @param { Callback } callback callback Asynchronous callback interface. - * @throws { BusinessError } 401 Parameter error. Possible causes: - * 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types; - * 3. Parameter verification failed. * @syscap SystemCapability.BarrierFree.Accessibility.Core * @since 20 */ function on(type: 'touchModeChange', callback: Callback): void; + /** + * @arkts 1.2 + */ + overload on { onAccessibilityStateChange, onTouchGuideStateChange, onScreenReaderStateChange}; + /** * Unregister the observe of the accessibility state changed. * @@ -1460,11 +1526,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: - * 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types; - * 3. Parameter verification failed. + * @param { Callback } [callback] callback Asynchronous callback interface. * @syscap SystemCapability.BarrierFree.Accessibility.Core * @since 18 */ @@ -1480,24 +1542,21 @@ declare namespace accessibility { */ function offScreenReaderStateChange(type: 'screenReaderStateChange', callback?: Callback): void; - /** - * @arkts 1.2 - */ - overload off { offAccessibilityStateChange, offTouchGuideStateChange, offScreenReaderStateChange }; - /** * Unregister the observe of the touch mode changed. * @param { 'touchModeChange' } type touch mode change. - * @param { Callback } callback callback Asynchronous callback interface. - * @throws { BusinessError } 401 Parameter error. Possible causes: - * 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types; - * 3. Parameter verification failed. + * @param { Callback } [callback] callback Asynchronous callback interface. * @syscap SystemCapability.BarrierFree.Accessibility.Core * @since 20 */ function off(type: 'touchModeChange', callback?: Callback): void; + /** + * @since 20 + * @arkts 1.2 + */ + overload off { offAccessibilityStateChange, offTouchGuideStateChange, offScreenReaderStateChange}; + /** * Get the captions manager. * @@ -1599,7 +1658,8 @@ declare namespace accessibility { * * @typedef {'none' | 'raised' | 'depressed' | 'uniform' | 'dropShadow'} * @syscap SystemCapability.BarrierFree.Accessibility.Hearing - * @since 8 + * @since arkts {'1.1':'8', '1.2':'20'} + * @arkts 1.1&1.2 */ type CaptionsFontEdgeType = 'none' | 'raised' | 'depressed' | 'uniform' | 'dropShadow'; /** @@ -1607,7 +1667,8 @@ declare namespace accessibility { * * @typedef {'default' | 'monospacedSerif' | 'serif' | 'monospacedSansSerif' | 'sansSerif' | 'casual' | 'cursive' | 'smallCapitals'} * @syscap SystemCapability.BarrierFree.Accessibility.Hearing - * @since 8 + * @since arkts {'1.1':'8', '1.2':'20'} + * @arkts 1.1&1.2 */ type CaptionsFontFamily = 'default' | 'monospacedSerif' | 'serif' | 'monospacedSansSerif' | 'sansSerif' | 'casual' | 'cursive' | 'smallCapitals'; @@ -1616,7 +1677,8 @@ declare namespace accessibility { * * @typedef CaptionsStyle * @syscap SystemCapability.BarrierFree.Accessibility.Hearing - * @since 8 + * @since arkts {'1.1':'8', '1.2':'20'} + * @arkts 1.1&1.2 */ interface CaptionsStyle { /** @@ -1624,44 +1686,50 @@ declare namespace accessibility { * * @type {CaptionsFontFamily} * @syscap SystemCapability.BarrierFree.Accessibility.Hearing - * @since 8 + * @since arkts {'1.1':'8', '1.2':'20'} + * @arkts 1.1&1.2 */ fontFamily: CaptionsFontFamily; /** * Indicates the font scaling of captions. - * @type { number } + * @type { int } * @syscap SystemCapability.BarrierFree.Accessibility.Hearing - * @since 8 + * @since arkts {'1.1':'8', '1.2':'20'} + * @arkts 1.1&1.2 */ - fontScale: number; + fontScale: int; /** * Indicates the font color of captions. - * @type { number | string } + * @type { int | string } * @syscap SystemCapability.BarrierFree.Accessibility.Hearing - * @since 8 + * @since arkts {'1.1':'8', '1.2':'20'} + * @arkts 1.1&1.2 */ - fontColor: number | string; + fontColor: int | string; /** * Indicates the edge type of the captions font. * @type { CaptionsFontEdgeType } * @syscap SystemCapability.BarrierFree.Accessibility.Hearing - * @since 8 + * @since arkts {'1.1':'8', '1.2':'20'} + * @arkts 1.1&1.2 */ fontEdgeType: CaptionsFontEdgeType; /** * Indicates the background color of captions. - * @type { number | string } + * @type { int | string } * @syscap SystemCapability.BarrierFree.Accessibility.Hearing - * @since 8 + * @since arkts {'1.1':'8', '1.2':'20'} + * @arkts 1.1&1.2 */ - backgroundColor: number | string; + backgroundColor: int | string; /** * Indicates the window color of captions. - * @type { number | string } + * @type { int | string } * @syscap SystemCapability.BarrierFree.Accessibility.Hearing - * @since 8 + * @since arkts {'1.1':'8', '1.2':'20'} + * @arkts 1.1&1.2 */ - windowColor: number | string; + windowColor: int | string; } /** @@ -1669,7 +1737,8 @@ declare namespace accessibility { * * @typedef AccessibilityAbilityInfo * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 + * @since arkts {'1.1':'7', '1.2':'20'} + * @arkts 1.1&1.2 */ interface AccessibilityAbilityInfo { /** @@ -1677,7 +1746,8 @@ declare namespace accessibility { * @type { string } * @readonly * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 + * @since arkts {'1.1':'7', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly id: string; @@ -1686,7 +1756,8 @@ declare namespace accessibility { * @type { string } * @readonly * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 + * @since arkts {'1.1':'7', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly name: string; @@ -1695,7 +1766,8 @@ declare namespace accessibility { * @type { string } * @readonly * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 + * @since arkts {'1.1':'7', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly bundleName: string; /** @@ -1703,7 +1775,8 @@ declare namespace accessibility { * @type { Array } * @readonly * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly targetBundleNames: Array; @@ -1712,7 +1785,8 @@ declare namespace accessibility { * @type { Array } * @readonly * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 + * @since arkts {'1.1':'7', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly abilityTypes: Array; @@ -1721,7 +1795,8 @@ declare namespace accessibility { * @type { Array } * @readonly * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 + * @since arkts {'1.1':'7', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly capabilities: Array; @@ -1730,7 +1805,8 @@ declare namespace accessibility { * @type { string } * @readonly * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 + * @since arkts {'1.1':'7', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly description: string; @@ -1739,7 +1815,8 @@ declare namespace accessibility { * @type { Array } * @readonly * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 + * @since arkts {'1.1':'7', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly eventTypes: Array; @@ -1748,7 +1825,8 @@ declare namespace accessibility { * @type { boolean } * @readonly * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly needHide: boolean; @@ -1757,7 +1835,8 @@ declare namespace accessibility { * @type { string } * @readonly * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly label: string; } @@ -1827,11 +1906,12 @@ declare namespace accessibility { /** * The page id of the event source. - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 + * @since arkts {'1.1':'7', '1.2':'20'} + * @arkts 1.1&1.2 */ - pageId?: number; + pageId?: int; /** * The accessibility event description. @@ -1880,43 +1960,48 @@ declare namespace accessibility { /** * The start index of listed items on the screen. - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 + * @since arkts {'1.1':'7', '1.2':'20'} + * @arkts 1.1&1.2 */ - beginIndex?: number; + beginIndex?: int; /** * The index of the current item on the screen. - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 + * @since arkts {'1.1':'7', '1.2':'20'} + * @arkts 1.1&1.2 */ - currentIndex?: number; + currentIndex?: int; /** * The end index of listed items on the screen. - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 + * @since arkts {'1.1':'7', '1.2':'20'} + * @arkts 1.1&1.2 */ - endIndex?: number; + endIndex?: int; /** * The total of the items, talkback used it when scroll. - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 7 + * @since arkts {'1.1':'7', '1.2':'20'} + * @arkts 1.1&1.2 */ - itemCount?: number; + itemCount?: int; /** * The id of element. - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - elementId?: number; + elementId?: int; /** * The content of announce accessibility text. @@ -1931,7 +2016,8 @@ declare namespace accessibility { * The content of announce accessibility text. * @type { ?Resource } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ textResourceAnnouncedForAccessibility?: Resource; diff --git a/api/@ohos.application.AccessibilityExtensionAbility.d.ts b/api/@ohos.application.AccessibilityExtensionAbility.d.ts index 2a4c4cb24ab83702cbecae7a436ed3a35c55d698..5c2f371f72212edb6b19f2dc5634750a08dbd89b 100644 --- a/api/@ohos.application.AccessibilityExtensionAbility.d.ts +++ b/api/@ohos.application.AccessibilityExtensionAbility.d.ts @@ -17,7 +17,7 @@ * @file * @kit AccessibilityKit */ - +/*** if arkts 1.1&1.2 */ import type accessibility from './@ohos.accessibility'; import type { KeyEvent } from './@ohos.multimodalInput.keyEvent'; import type { @@ -30,7 +30,7 @@ import type { } from './application/AccessibilityExtensionContext'; import type * as _AccessibilityExtensionContext from './application/AccessibilityExtensionContext'; import { AccessibilityEventType } from './@ohos.accessibility'; - +/*** endif */ /** * Indicates an accessibility element. @@ -38,7 +38,8 @@ import { AccessibilityEventType } from './@ohos.accessibility'; * * @typedef {_AccessibilityElement} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ export type AccessibilityElement = _AccessibilityElement; @@ -47,7 +48,8 @@ export type AccessibilityElement = _AccessibilityElement; * * @typedef {_ElementAttributeValues} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ export type ElementAttributeValues = _ElementAttributeValues; @@ -56,7 +58,8 @@ export type ElementAttributeValues = _ElementAttributeValues; * * @typedef {_FocusDirection} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ export type FocusDirection = _FocusDirection; @@ -65,7 +68,8 @@ export type FocusDirection = _FocusDirection; * * @typedef {keyof ElementAttributeValues} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ export type ElementAttributeKeys = keyof ElementAttributeValues; @@ -74,7 +78,8 @@ export type ElementAttributeKeys = keyof ElementAttributeValues; * * @typedef {_FocusType} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ export type FocusType = _FocusType; @@ -83,7 +88,8 @@ export type FocusType = _FocusType; * * @typedef {_WindowType} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ export type WindowType = _WindowType; @@ -92,7 +98,8 @@ export type WindowType = _WindowType; * * @typedef {_Rect} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ export type Rect = _Rect; @@ -110,7 +117,8 @@ export { Parameter } from './application/AccessibilityExtensionContext'; * * @typedef {_AccessibilityExtensionContext.default} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ export type AccessibilityExtensionContext = _AccessibilityExtensionContext.default; @@ -119,15 +127,17 @@ export type AccessibilityExtensionContext = _AccessibilityExtensionContext.defau * class of accessibility extension ability. * * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ -export default class AccessibilityExtensionAbility { +declare class AccessibilityExtensionAbility { /** * Indicates accessibility extension ability context. * * @type {AccessibilityExtensionContext} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ context: AccessibilityExtensionContext; @@ -179,6 +189,7 @@ export default class AccessibilityExtensionAbility { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ onAccessibilityConnect(): void; @@ -191,6 +202,7 @@ export default class AccessibilityExtensionAbility { * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ onAccessibilityDisconnect(): void; @@ -222,6 +234,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. @@ -231,7 +245,7 @@ export default class AccessibilityExtensionAbility { * @systemapi * @since 20 */ -declare interface AccessibilityEventInfo { +export declare interface AccessibilityEventInfo { /** * EventType * @@ -255,12 +269,12 @@ declare interface AccessibilityEventInfo { /** * TimeStamp * - * @type { ?number } + * @type { ?long } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 */ - timestamp?: number; + timestamp?: long; /** * The content of add/remove accessibility extraInfo text. @@ -279,15 +293,17 @@ declare interface AccessibilityEventInfo { * * @typedef AccessibilityEvent * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ -declare interface AccessibilityEvent { +export declare interface AccessibilityEvent { /** * EventType * * @type { accessibility.EventType | accessibility.WindowUpdateType | TouchGuideType | GestureType | PageUpdateType } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ eventType: accessibility.EventType | accessibility.WindowUpdateType | TouchGuideType | GestureType | PageUpdateType; @@ -296,34 +312,38 @@ declare interface AccessibilityEvent { * * @type { ?AccessibilityElement } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ target?: AccessibilityElement; /** * TimeStamp * - * @type { ?number } + * @type { ?long } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - timeStamp?: number; + timeStamp?: long; /** * ElementId * - * @type { ?number } + * @type { ?long } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - elementId?: number; + elementId?: long; /** * 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; @@ -333,6 +353,7 @@ declare interface AccessibilityEvent { * @type { ?string } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @since 20 + * @arkts 1.1&1.2 */ extraInfo?: string; } @@ -360,7 +381,8 @@ declare interface AccessibilityEvent { * 'fourFingerSwipeUp' | 'fourFingerSwipeDown' | 'fourFingerSwipeLeft' | 'fourFingerSwipeRight' } * @typedef {'left' | 'leftThenRight' | 'leftThenUp' | 'leftThenDown' | 'right' | 'rightThenLeft' | 'rightThenUp' | 'rightThenDown' | 'up' | 'upThenLeft' | 'upThenRight' | 'upThenDown' | 'down' | 'downThenLeft' | 'downThenRight' | 'downThenUp' | 'twoFingerSingleTap' | 'twoFingerDoubleTap' | 'twoFingerDoubleTapAndHold' | 'twoFingerTripleTap' | 'twoFingerTripleTapAndHold' | 'threeFingerSingleTap' | 'threeFingerDoubleTap' | 'threeFingerDoubleTapAndHold' | 'threeFingerTripleTap' | 'threeFingerTripleTapAndHold' | 'fourFingerSingleTap' | 'fourFingerDoubleTap' | 'fourFingerDoubleTapAndHold' | 'fourFingerTripleTap' | 'fourFingerTripleTapAndHold' | 'threeFingerSwipeUp' | 'threeFingerSwipeDown' | 'threeFingerSwipeLeft' | 'threeFingerSwipeRight' | 'fourFingerSwipeUp' | 'fourFingerSwipeDown' | 'fourFingerSwipeLeft' | 'fourFingerSwipeRight'} * @syscap SystemCapability.BarrierFree.Accessibility.Core -* @since 11 +* @since arkts {'1.1':'11', '1.2':'20'} +* @arkts 1.1&1.2 */ type GestureType = 'left' | 'leftThenRight' | 'leftThenUp' | 'leftThenDown' | 'right' | 'rightThenLeft' | 'rightThenUp' | 'rightThenDown' | @@ -378,7 +400,8 @@ type GestureType = 'left' | 'leftThenRight' | 'leftThenUp' | 'leftThenDown' | * * @typedef {'pageContentUpdate' | 'pageStateUpdate'} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ type PageUpdateType = 'pageContentUpdate' | 'pageStateUpdate'; @@ -387,6 +410,7 @@ type PageUpdateType = 'pageContentUpdate' | 'pageStateUpdate'; * * @typedef {'touchBegin' | 'touchEnd'} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ type TouchGuideType = 'touchBegin' | 'touchEnd'; diff --git a/api/application/AccessibilityExtensionContext.d.ts b/api/application/AccessibilityExtensionContext.d.ts index c56f156b7ac5bf4144269ba71feec48930507fa7..de9d426404c7242443f33ef50ac09d8e176ea679 100644 --- a/api/application/AccessibilityExtensionContext.d.ts +++ b/api/application/AccessibilityExtensionContext.d.ts @@ -18,21 +18,27 @@ * @kit AccessibilityKit */ +/*** if arkts 1.1&1.2 */ import type { AsyncCallback, BusinessError, Callback } from '../@ohos.base'; import ExtensionContext from './ExtensionContext'; import type accessibility from '../@ohos.accessibility'; import type { GesturePath } from '../@ohos.accessibility.GesturePath'; import type Want from '../@ohos.app.ability.Want'; +/*** endif */ + +/*** if arkts 1.1 */ import { AccessibilityAction } from '../@ohos.accessibility'; +/*** endif */ /** * The accessibility extension context. Used to configure, query information, and inject gestures. * * @extends ExtensionContext * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ -export default class AccessibilityExtensionContext extends ExtensionContext { +declare class AccessibilityExtensionContext extends ExtensionContext { /** * Set the bundle names that is interested in sending the event. * @@ -112,7 +118,7 @@ export default class AccessibilityExtensionContext extends ExtensionContext { /** * Get window root element. * - * @param { number } windowId Indicates the window ID. + * @param { int } windowId Indicates the window ID. * @param { AsyncCallback } callback Indicates the listener. * @throws { BusinessError } 401 - Input parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; @@ -123,12 +129,12 @@ export default class AccessibilityExtensionContext extends ExtensionContext { * @since 9 * @deprecated since 12 */ - getWindowRootElement(windowId: number, callback: AsyncCallback): void; + getWindowRootElement(windowId: int, callback: AsyncCallback): void; /** * Get window root element. * - * @param { number } [windowId] Indicates the window ID. + * @param { int } [windowId] Indicates the window ID. * @returns { Promise } * @throws { BusinessError } 401 - Input parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; @@ -139,7 +145,7 @@ export default class AccessibilityExtensionContext extends ExtensionContext { * @since 9 * @deprecated since 12 */ - getWindowRootElement(windowId?: number): Promise; + getWindowRootElement(windowId?: int ): Promise; /** * Get window root element. @@ -158,7 +164,7 @@ export default class AccessibilityExtensionContext extends ExtensionContext { /** * Get window list. * - * @param { number } displayId Indicates the display ID. + * @param { long } displayId Indicates the display ID. * @param { AsyncCallback> } callback Indicates the listener. * @throws { BusinessError } 401 - Input parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; @@ -169,12 +175,12 @@ export default class AccessibilityExtensionContext extends ExtensionContext { * @since 9 * @deprecated since 12 */ - getWindows(displayId: number, callback: AsyncCallback>): void; + getWindows(displayId: long, callback: AsyncCallback>): void; /** * Get window list. * - * @param { number } displayId Indicates the display ID. + * @param { long } displayId Indicates the display ID. * @returns { Promise> } * @throws { BusinessError } 401 - Input parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; @@ -185,7 +191,7 @@ export default class AccessibilityExtensionContext extends ExtensionContext { * @since 9 * @deprecated since 12 */ - getWindows(displayId?: number): Promise>; + getWindows(displayId?: long): Promise>; /** * Get window list. @@ -262,42 +268,37 @@ export default class AccessibilityExtensionContext extends ExtensionContext { * 3. Parameter verification failed. * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ startAbility(want: Want): Promise; /** * get all subElements in window. - * @param { number } windowId Indicates the window ID. - * @param { number } elementId Indicates the elementId. + * @param { int } windowId Indicates the window ID. + * @param { long } [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: - * 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types; - * 3. Parameter verification failed. * @throws { BusinessError } 9300003 - No accessibility permission to perform the operation. * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ - getElements(windowId: number, elementId?: number): Promise>; + getElements(windowId: int, elementId?: long): Promise>; /** * Get default focused element ids. - * @param { number } windowId Indicates whether the windowid can be used as the default focus. - * @returns { Promise> } + * @param { int } 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: - * 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types; - * 3. Parameter verification failed. * @throws { BusinessError } 9300003 - No accessibility permission to perform the operation. * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ - getDefaultFocusedElementIds(windowId: number): Promise>; + getDefaultFocusedElementIds(windowId: int): Promise>; /** * Hold running lock to prevent screen turning off automatically. @@ -382,7 +383,7 @@ export default class AccessibilityExtensionContext extends ExtensionContext { * Get window root element. * * @permission ohos.permission.ACCESSIBILITY_EXTENSION_ABILITY - * @param { number } [windowId] Indicates the window ID. + * @param { int } [windowId] Indicates the window ID. * @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. @@ -392,13 +393,13 @@ export default class AccessibilityExtensionContext extends ExtensionContext { * @systemapi * @since 20 */ - getRootInActiveWindow(windowId?: number): Promise; + getRootInActiveWindow(windowId?: int): Promise; /** * Get window list. * * @permission ohos.permission.ACCESSIBILITY_EXTENSION_ABILITY - * @param { number } [displayId] Indicates the display ID. If this parameter is not provided, indicates the default displayId. + * @param { long } [displayId] Indicates the display ID. If this parameter is not provided, indicates the default displayId. * @returns { Array } * @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. @@ -407,7 +408,7 @@ export default class AccessibilityExtensionContext extends ExtensionContext { * @systemapi * @since 20 */ - getAccessibilityWindowsSync(displayId?: number): Array; + getAccessibilityWindowsSync(displayId?: long): Array; } /** @@ -416,9 +417,10 @@ export default class AccessibilityExtensionContext extends ExtensionContext { * * @typedef AccessibilityElement * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ -declare interface AccessibilityElement { +export declare interface AccessibilityElement { /** * Get a list of attribute names. * @@ -546,22 +548,26 @@ declare interface AccessibilityElement { /** * Get the position of cursor in TextInput. * - * @param { AsyncCallback } callback Indicates the listener. + * @param { AsyncCallback } callback Indicates the listener. + * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. * * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - getCursorPosition(callback: AsyncCallback): void; + getCursorPosition(callback: AsyncCallback): void; /** * Get the position of cursor in TextInput. * - * @returns { Promise } + * @returns { Promise } + * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - getCursorPosition(): Promise; + getCursorPosition(): Promise; /** * Set the screen curtain enable or disable. @@ -575,7 +581,8 @@ declare interface AccessibilityElement { * @throws { BusinessError } 9300003 - No accessibility permission to perform the operation. * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ enableScreenCurtain(isEnable: boolean): void; @@ -687,7 +694,8 @@ declare interface AccessibilityElement { * 3. Parameter verification failed. * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ findElement(type: 'textType', condition: string): Promise>; @@ -695,17 +703,15 @@ declare interface AccessibilityElement { * Find elements that match the condition. * * @param { 'elementId' } type The type of query condition is element id. - * @param { number } condition Indicates the specific content to be queried. + * @param { long } condition Indicates the specific content to be queried. * @returns { Promise } - * @throws { BusinessError } 401 - Input parameter error. Possible causes: - * 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types; - * 3. Parameter verification failed. + * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. * * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - findElement(type: 'elementId', condition: number): Promise; + findElement(type: 'elementId', condition: long): Promise; /** * Indicates accessibility focus state. @@ -760,12 +766,12 @@ declare interface AccessibilityElement { /** * Indicates the component ID to which the element belongs. * - * @type { ?number } + * @type { ?long } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 */ - componentId?: number; + componentId?: long; /** * Indicates the component type to which the element belongs. @@ -790,12 +796,12 @@ declare interface AccessibilityElement { /** * Indicates the index of the current item. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 */ - currentIndex?: number; + currentIndex?: int; /** * Indicates the description of the element. @@ -820,12 +826,12 @@ declare interface AccessibilityElement { /** * Indicates the list index of the last item displayed on the screen. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 */ - endIndex?: number; + endIndex?: int; /** * Indicates the string of error state. @@ -860,12 +866,12 @@ declare interface AccessibilityElement { /** * Indicates the type of input text. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 */ - inputType?: number; + inputType?: int; /** * Indicates the inspector key. @@ -940,12 +946,12 @@ declare interface AccessibilityElement { /** * Indicates the total count of the items. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 */ - itemCount?: number; + itemCount?: int; /** * Indicates the last content. @@ -960,12 +966,12 @@ declare interface AccessibilityElement { /** * Indicates the display layer of the element. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 */ - layer?: number; + layer?: int; /** * Indicates whether the element is long clickable. @@ -980,12 +986,12 @@ declare interface AccessibilityElement { /** * Indicates the page id. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 */ - pageId?: number; + pageId?: int; /** * Indicates whether the element supports multiple lines of text. @@ -1050,12 +1056,12 @@ declare interface AccessibilityElement { /** * Indicates the list index of the first item displayed on the screen. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 */ - startIndex?: number; + startIndex?: int; /** * Indicates the text of the element. @@ -1070,12 +1076,12 @@ declare interface AccessibilityElement { /** * Indicates the maximum length limit of the element text. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 */ - textLengthLimit?: number; + textLengthLimit?: int; /** * Indicates the unit of movement of the element text as it is read. @@ -1110,52 +1116,52 @@ declare interface AccessibilityElement { /** * Indicates the maximum value. * - * @type { ?number } + * @type { ?double } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 */ - valueMax?: number; + valueMax?: double; /** * Indicates the minimum value. * - * @type { ?number } + * @type { ?double } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 */ - valueMin?: number; + valueMin?: double; /** * Indicates the current value. * - * @type { ?number } + * @type { ?double } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 */ - valueNow?: number; + valueNow?: double; /** * Indicates the window id. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 */ - windowId?: number; + windowId?: int; /** * Indicates the offset. * - * @type { ?number } + * @type { ?double } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 */ - offset?: number; + offset?: double; /** * Indicates the text type. @@ -1200,22 +1206,22 @@ declare interface AccessibilityElement { /** * Indicates the component next accessibility focus id. * - * @type { ?number } + * @type { ?long } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 */ - accessibilityNextFocusId?: number; + accessibilityNextFocusId?: long; /** * Indicates the component previous accessibility focus id. * - * @type { ?number } + * @type { ?long } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 */ - accessibilityPreviousFocusId?: number; + accessibilityPreviousFocusId?: long; /** * Indicates the extra info of the element. @@ -1270,12 +1276,12 @@ declare interface AccessibilityElement { /** * Indicates the navDestination id of component. * - * @type { ?number } + * @type { ?long } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 */ - navDestinationId?: number; + navDestinationId?: long; /** * Indicates the current item in grid of component. @@ -1310,12 +1316,12 @@ declare interface AccessibilityElement { /** * Indicates the main windowId of component. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 */ - mainWindowId?: number; + mainWindowId?: int; /** * Indicates whether the component need clip. @@ -1330,29 +1336,29 @@ declare interface AccessibilityElement { /** * Indicates the parent element id of component. * - * @type { ?number } + * @type { ?long } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 */ - parentId?: number; + parentId?: long; /** * Indicates the children elements id list of component. * - * @type { ?Array } + * @type { ?Array } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 */ - childrenIds?: Array; + childrenIds?: Array; /** * Execute the specified action. * * @permission ohos.permission.ACCESSIBILITY_EXTENSION_ABILITY * @param { AccessibilityAction } action Indicates the action to execute. - * @param { Parameter } [parameters] Indicates the parameters needed to execute the action. + * @param { AccessibilityActionParameter } [parameters] Indicates the parameters needed to execute the action. * @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. @@ -1361,7 +1367,7 @@ declare interface AccessibilityElement { * @systemapi * @since 20 */ - executeAction(action: AccessibilityAction, parameters?: Parameter): Promise; + executeAction(action: AccessibilityAction, parameters?: AccessibilityActionParameter): Promise; /** * Get element's parent. @@ -1451,7 +1457,7 @@ declare interface AccessibilityElement { * Find elements that match the elementId. * * @permission ohos.permission.ACCESSIBILITY_EXTENSION_ABILITY - * @param { number } condition Indicates the elementId to query. + * @param { long } condition Indicates the elementId to query. * @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. @@ -1460,7 +1466,7 @@ declare interface AccessibilityElement { * @systemapi * @since 20 */ - findElementById(condition: number): Promise; + findElementById(condition: long): Promise; } /** @@ -1475,21 +1481,21 @@ interface AccessibilityGrid { /** * The row index in grid. * - * @type { number } + * @type { int } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 */ - rowIndex: number; + rowIndex: int ; /** * The colum index in grid. * - * @type { number } + * @type { int } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 */ - columnIndex: number; + columnIndex: int ; } /** @@ -1504,12 +1510,12 @@ interface AccessibilitySpan { /** * The id of span. * - * @type { number } + * @type { int } * @syscap SystemCapability.BarrierFree.Accessibility.Core * @systemapi * @since 20 */ - spanId: number; + spanId: int ; /** * The text of span. * @@ -1632,15 +1638,17 @@ export declare class Parameter { * * @typedef ElementAttributeValues * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ -interface ElementAttributeValues { +export interface ElementAttributeValues { /** * Indicates accessibility focus state. * * @type {boolean} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ accessibilityFocused: boolean; /** @@ -1648,7 +1656,8 @@ interface ElementAttributeValues { * * @type {string} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ bundleName: string; /** @@ -1656,7 +1665,8 @@ interface ElementAttributeValues { * * @type {boolean} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ checkable: boolean; /** @@ -1664,7 +1674,8 @@ interface ElementAttributeValues { * * @type {boolean} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ checked: boolean; /** @@ -1672,7 +1683,8 @@ interface ElementAttributeValues { * * @type {Array} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ children: Array; /** @@ -1680,23 +1692,26 @@ interface ElementAttributeValues { * * @type {boolean} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ clickable: boolean; /** * Indicates the component ID to which the element belongs. * - * @type {number} + * @type {long} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - componentId: number; + componentId: long; /** * Indicates the component type to which the element belongs. * * @type {string} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ componentType: string; /** @@ -1704,23 +1719,26 @@ interface ElementAttributeValues { * * @type {Array} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ contents: Array; /** * Indicates the index of the current item. * - * @type {number} + * @type {int} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - currentIndex: number; + currentIndex: int; /** * Indicates the description of the element. * * @type {string} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ description: string; /** @@ -1728,23 +1746,26 @@ interface ElementAttributeValues { * * @type {boolean} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ editable: boolean; /** * Indicates the list index of the last item displayed on the screen. * - * @type {number} + * @type {int} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - endIndex: number; + endIndex: int; /** * Indicates the string of error state. * * @type {string} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ error: string; /** @@ -1752,7 +1773,8 @@ interface ElementAttributeValues { * * @type {boolean} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ focusable: boolean; /** @@ -1760,23 +1782,26 @@ interface ElementAttributeValues { * * @type {string} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ hintText: string; /** * Indicates the type of input text. * - * @type {number} + * @type {int} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - inputType: number; + inputType: int; /** * Indicates the inspector key. * * @type {string} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ inspectorKey: string; /** @@ -1784,7 +1809,8 @@ interface ElementAttributeValues { * * @type {boolean} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ isActive: boolean; /** @@ -1792,7 +1818,8 @@ interface ElementAttributeValues { * * @type {boolean} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ isEnable: boolean; /** @@ -1800,7 +1827,8 @@ interface ElementAttributeValues { * * @type {boolean} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ isHint: boolean; /** @@ -1808,7 +1836,8 @@ interface ElementAttributeValues { * * @type {boolean} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ isFocused: boolean; /** @@ -1816,7 +1845,8 @@ interface ElementAttributeValues { * * @type {boolean} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ isPassword: boolean; /** @@ -1824,55 +1854,62 @@ interface ElementAttributeValues { * * @type {boolean} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ isVisible: boolean; /** * Indicates the total count of the items. * - * @type {number} + * @type {int} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - itemCount: number; + itemCount: int; /** * Indicates the last content. * * @type {string} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ lastContent: string; /** * Indicates the display layer of the element. * - * @type {number} + * @type {int} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - layer: number; + layer: int; /** * Indicates whether the element is long clickable. * * @type {boolean} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ longClickable: boolean; /** * Indicates the page id. * - * @type {number} + * @type {int} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - pageId: number; + pageId: int; /** * Indicates the parent of the element. * * @type {AccessibilityElement} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ parent: AccessibilityElement; /** @@ -1880,7 +1917,8 @@ interface ElementAttributeValues { * * @type {boolean} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ pluralLineSupported: boolean; /** @@ -1888,7 +1926,8 @@ interface ElementAttributeValues { * * @type {Rect} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ rect: Rect; /** @@ -1896,7 +1935,8 @@ interface ElementAttributeValues { * * @type {string} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ resourceName: string; /** @@ -1904,7 +1944,8 @@ interface ElementAttributeValues { * * @type {AccessibilityElement} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ rootElement: AccessibilityElement; /** @@ -1912,7 +1953,8 @@ interface ElementAttributeValues { * * @type {Rect} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ screenRect: Rect; /** @@ -1920,7 +1962,8 @@ interface ElementAttributeValues { * * @type {boolean} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ scrollable: boolean; /** @@ -1928,39 +1971,44 @@ interface ElementAttributeValues { * * @type {boolean} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ selected: boolean; /** * Indicates the list index of the first item displayed on the screen. * - * @type {number} + * @type {int} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - startIndex: number; + startIndex: int; /** * Indicates the text of the element. * * @type {string} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ text: string; /** * Indicates the maximum length limit of the element text. * - * @type {number} + * @type {int} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - textLengthLimit: number; + textLengthLimit: int; /** * Indicates the unit of movement of the element text as it is read. * * @type {accessibility.TextMoveUnit} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ textMoveUnit: accessibility.TextMoveUnit; /** @@ -1968,7 +2016,8 @@ interface ElementAttributeValues { * * @type {accessibility.Action} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ triggerAction: accessibility.Action; /** @@ -1976,55 +2025,62 @@ interface ElementAttributeValues { * * @type {WindowType} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ type: WindowType; /** * Indicates the maximum value. * - * @type {number} + * @type {double} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - valueMax: number; + valueMax: double; /** * Indicates the minimum value. * - * @type {number} + * @type {double} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - valueMin: number; + valueMin: double; /** * Indicates the current value. * - * @type {number} + * @type {double} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - valueNow: number; + valueNow: double; /** * Indicates the window id. * - * @type {number} + * @type {int} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - windowId: number; + windowId: int; /** * Indicates the offset. * - * @type {number} + * @type {double} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - offset: number; + offset: double; /** * Indicates the text type. * * @type {string} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ textType: string; /** @@ -2032,7 +2088,8 @@ interface ElementAttributeValues { * * @type {string} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ accessibilityText: string; /** @@ -2040,45 +2097,51 @@ interface ElementAttributeValues { * * @type {Rect} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ hotArea: Rect; /** * Indicates the component next accessibility focus id. - * @type { ?number } + * @type { ?long } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ - accessibilityNextFocusId?: number; + accessibilityNextFocusId?: long ; /** * Indicates the custom component type. * * @type { ?string } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ customComponentType?: string; /** * Indicates the extra info of the element. * @type { ?string } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ extraInfo?: string; /** * Indicates the component Previous accessibility focus id. * - * @type { ?number } + * @type { ?long } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ - accessibilityPreviousFocusId?: number; + accessibilityPreviousFocusId?: long ; /** * Indicates whether the element is scrollable for accessibility. * * @type { ?boolean } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ accessibilityScrollable?: boolean; } @@ -2088,66 +2151,76 @@ interface ElementAttributeValues { * * @typedef {'up' | 'down' | 'left' | 'right' | 'forward' | 'backward'} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ -type FocusDirection = 'up' | 'down' | 'left' | 'right' | 'forward' | 'backward'; +export type FocusDirection = 'up' | 'down' | 'left' | 'right' | 'forward' | 'backward'; /** * Indicates the type of the focus. * * @typedef {'accessibility' | 'normal'} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ -type FocusType = 'accessibility' | 'normal'; +export type FocusType = 'accessibility' | 'normal'; /** * Indicates the type of the window. * * @typedef {'application' | 'system'} * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ -type WindowType = 'application' | 'system'; +export type WindowType = 'application' | 'system'; /** * Indicates rectangle. * * @typedef Rect * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ -interface Rect { +export interface Rect { /** * The left position of Rect * - * @type { number } + * @type { int } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - left: number; + left: int; /** * The top position of Rect * - * @type { number } + * @type { int } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - top: number; + top: int; /** * The width position of Rect * - * @type { number } + * @type { int } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - width: number; + width: int; /** * The height position of Rect * - * @type { number } + * @type { int } * @syscap SystemCapability.BarrierFree.Accessibility.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - height: number; + height: int; } + +export default AccessibilityExtensionContext; \ No newline at end of file diff --git a/kits/@kit.AccessibilityKit.d.ts b/kits/@kit.AccessibilityKit.d.ts index 940ba1b65a145f1be22ad9001c857d54f375b360..67adab0e38d21000aee039e60a0426b7b4111a91 100644 --- a/kits/@kit.AccessibilityKit.d.ts +++ b/kits/@kit.AccessibilityKit.d.ts @@ -21,22 +21,21 @@ /*** if arkts 1.1&1.2 */ import config from '@ohos.accessibility.config'; import accessibility from '@ohos.accessibility'; -/*** endif */ import { GesturePath } from '@ohos.accessibility.GesturePath'; import { GesturePoint } from '@ohos.accessibility.GesturePoint'; import AccessibilityExtensionAbility, { - AccessibilityElement, AccessibilityExtensionContext, ElementAttributeKeys, - ElementAttributeValues, FocusDirection, FocusType, Rect, WindowType, AccessibilityEvent, AccessibilityEventInfo, - Parameter + AccessibilityElement, ElementAttributeKeys, AccessibilityExtensionContext, + ElementAttributeValues, FocusDirection, FocusType, Rect, WindowType, AccessibilityEvent } from '@ohos.application.AccessibilityExtensionAbility'; -import { AccessibilityAction, AccessibilityEventType } from '@ohos.accessibility'; export { AccessibilityElement, AccessibilityExtensionAbility, AccessibilityExtensionContext, ElementAttributeKeys, ElementAttributeValues, FocusDirection, FocusType, GesturePath, - GesturePoint, Rect, WindowType, accessibility, config, AccessibilityEvent, AccessibilityEventInfo, - AccessibilityAction, AccessibilityEventType, Parameter + GesturePoint, Rect, WindowType, accessibility, config, AccessibilityEvent }; - -/*** if arkts 1.2 */ -export { accessibility, config }; +/*** endif */ +/*** if arkts 1.1 */ +import { Parameter, AccessibilityEventInfo +} from '@ohos.application.AccessibilityExtensionAbility'; +import { AccessibilityAction, AccessibilityEventType } from '@ohos.accessibility'; +export { Parameter, AccessibilityEventInfo, AccessibilityAction, AccessibilityEventType }; /*** endif */ \ No newline at end of file