• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1| Change Type | Old Version | New Version | d.ts File |
2| ---- | ------ | ------ | -------- |
3|Added|NA|Class name: config;<br>Method or attribute name: function enableAbility(name: string, capability: Array\<accessibility.Capability>): Promise\<void>;|@ohos.accessibility.config.d.ts|
4|Added|NA|Class name: config;<br>Method or attribute name: function enableAbility(name: string, capability: Array\<accessibility.Capability>, callback: AsyncCallback\<void>): void;|@ohos.accessibility.config.d.ts|
5|Added|NA|Class name: config;<br>Method or attribute name: function disableAbility(name: string): Promise\<void>;|@ohos.accessibility.config.d.ts|
6|Added|NA|Class name: config;<br>Method or attribute name: function disableAbility(name: string, callback: AsyncCallback\<void>): void;|@ohos.accessibility.config.d.ts|
7|Added|NA|Class name: config;<br>Method or attribute name: function on(type: 'enabledAccessibilityExtensionListChange', callback: Callback\<void>): void;|@ohos.accessibility.config.d.ts|
8|Added|NA|Class name: config;<br>Method or attribute name: function off(type: 'enabledAccessibilityExtensionListChange', callback?: Callback\<void>): void;|@ohos.accessibility.config.d.ts|
9|Added|NA|Class name: config;<br>Method or attribute name: type DaltonizationColorFilter = 'Normal' \| 'Protanomaly' \| 'Deuteranomaly' \| 'Tritanomaly';|@ohos.accessibility.config.d.ts|
10|Added|NA|Class name: Config;<br>Method or attribute name: set(value: T): Promise\<void>;|@ohos.accessibility.config.d.ts|
11|Added|NA|Class name: Config;<br>Method or attribute name: set(value: T, callback: AsyncCallback\<void>): void;|@ohos.accessibility.config.d.ts|
12|Added|NA|Class name: Config;<br>Method or attribute name: get(): Promise\<T>;|@ohos.accessibility.config.d.ts|
13|Added|NA|Class name: Config;<br>Method or attribute name: get(callback: AsyncCallback\<T>): void;|@ohos.accessibility.config.d.ts|
14|Added|NA|Class name: Config;<br>Method or attribute name: on(callback: Callback\<T>): void;|@ohos.accessibility.config.d.ts|
15|Added|NA|Class name: Config;<br>Method or attribute name: off(callback?: Callback\<T>): void;|@ohos.accessibility.config.d.ts|
16|Added|NA|Class name: accessibility;<br>Method or attribute name: function getAccessibilityExtensionList(abilityType: AbilityType, stateType: AbilityState): Promise\<Array\<AccessibilityAbilityInfo>>;|@ohos.accessibility.d.ts|
17|Added|NA|Class name: accessibility;<br>Method or attribute name: function getAccessibilityExtensionList(abilityType: AbilityType, stateType: AbilityState, callback: AsyncCallback\<Array\<AccessibilityAbilityInfo>>): void;|@ohos.accessibility.d.ts|
18|Added|NA|Class name: accessibility;<br>Method or attribute name: function sendAccessibilityEvent(event: EventInfo, callback: AsyncCallback\<void>): void;|@ohos.accessibility.d.ts|
19|Added|NA|Class name: accessibility;<br>Method or attribute name: function sendAccessibilityEvent(event: EventInfo): Promise\<void>;|@ohos.accessibility.d.ts|
20|Added|NA|Class name: GesturePath;<br>Method or attribute name: constructor(durationTime: number);|@ohos.accessibility.GesturePath.d.ts|
21|Added|NA|Class name: GesturePath;<br>Method or attribute name: points: Array\<GesturePoint>;|@ohos.accessibility.GesturePath.d.ts|
22|Added|NA|Class name: GesturePath;<br>Method or attribute name: durationTime: number;|@ohos.accessibility.GesturePath.d.ts|
23|Added|NA|Class name: GesturePoint;<br>Method or attribute name: constructor(positionX: number, positionY: number);|@ohos.accessibility.GesturePoint.d.ts|
24|Added|NA|Class name: GesturePoint;<br>Method or attribute name: positionX: number;|@ohos.accessibility.GesturePoint.d.ts|
25|Added|NA|Class name: GesturePoint;<br>Method or attribute name: positionY: number;|@ohos.accessibility.GesturePoint.d.ts|
26|Added|NA|Class name: sourcefile;<br>Method or attribute name: type GestureType = 'left' \| 'leftThenRight' \| 'leftThenUp' \| 'leftThenDown' \|<br>    'right' \| 'rightThenLeft' \| 'rightThenUp' \| 'rightThenDown' \|<br>    'up' \| 'upThenLeft' \| 'upThenRight' \| 'upThenDown' \|<br>    'down' \| 'downThenLeft' \| 'downThenRight' \| 'downThenUp';|@ohos.application.AccessibilityExtensionAbility.d.ts|
27|Added|NA|Class name: sourcefile;<br>Method or attribute name: type PageUpdateType = 'pageContentUpdate' \| 'pageStateUpdate';|@ohos.application.AccessibilityExtensionAbility.d.ts|
28|Added|NA|Class name: sourcefile;<br>Method or attribute name: type TouchGuideType = 'touchBegin' \| 'touchEnd';|@ohos.application.AccessibilityExtensionAbility.d.ts|
29|Added|NA|Class name: AccessibilityExtensionAbility;<br>Method or attribute name: context: AccessibilityExtensionContext;|@ohos.application.AccessibilityExtensionAbility.d.ts|
30|Added|NA|Class name: AccessibilityExtensionAbility;<br>Method or attribute name: onConnect(): void;|@ohos.application.AccessibilityExtensionAbility.d.ts|
31|Added|NA|Class name: AccessibilityExtensionAbility;<br>Method or attribute name: onDisconnect(): void;|@ohos.application.AccessibilityExtensionAbility.d.ts|
32|Added|NA|Class name: AccessibilityExtensionAbility;<br>Method or attribute name: onAccessibilityEvent(event: AccessibilityEvent): void;|@ohos.application.AccessibilityExtensionAbility.d.ts|
33|Added|NA|Class name: AccessibilityExtensionAbility;<br>Method or attribute name: onKeyEvent(keyEvent: KeyEvent): boolean;|@ohos.application.AccessibilityExtensionAbility.d.ts|
34|Added|NA|Class name: AccessibilityEvent;<br>Method or attribute name: eventType: accessibility.EventType \| accessibility.WindowUpdateType \|<br>        TouchGuideType \| GestureType \| PageUpdateType;|@ohos.application.AccessibilityExtensionAbility.d.ts|
35|Added|NA|Class name: AccessibilityEvent;<br>Method or attribute name: target?: AccessibilityElement;|@ohos.application.AccessibilityExtensionAbility.d.ts|
36|Added|NA|Class name: AccessibilityEvent;<br>Method or attribute name: timeStamp?: number;|@ohos.application.AccessibilityExtensionAbility.d.ts|
37|Added|NA|Class name: sourcefile;<br>Method or attribute name: type ElementAttributeValues = {<br>    /**<br>     * Indicates accessibility focus state.<br>     */<br>    'accessibilityFocused': boolean;<br>    /**<br>     * Indicates the bundle name to which it belongs.<br>     */<br>    'bundleName': string;<br>    /**<br>     * Indicates whether the element is checkable.<br>     */<br>    'checkable': boolean;<br>    /**<br>     * Indicates whether the element is checked.<br>     */<br>    'checked': boolean;<br>    /**<br>     * Indicates all child elements.<br>     */<br>    'children': Array\<AccessibilityElement>;<br>    /**<br>     * Indicates whether the element is clickable.<br>     */<br>    'clickable': boolean;<br>    /**<br>     * Indicates the component ID to which the element belongs.<br>     */<br>    'componentId': number;<br>    /**<br>     * Indicates the component type to which the element belongs.<br>     */<br>    'componentType': string;<br>    /**<br>     * Indicates the content.<br>     */<br>    'contents': Array\<string>;<br>    /**<br>     * Indicates the index of the current item.<br>     */<br>    'currentIndex': number;<br>    /**<br>     * Indicates the description of the element.<br>     */<br>    'description': string;<br>    /**<br>     * Indicates whether the element is editable.<br>     */<br>    'editable': boolean;<br>    /**<br>     * Indicates the list index of the last item displayed on the screen.<br>     */<br>    'endIndex': number;<br>    /**<br>     * Indicates the string of error state.<br>     */<br>    'error': string;<br>    /**<br>     * Indicates whether the element is focusable.<br>     */<br>    'focusable': boolean;<br>    /**<br>     * Indicates the hint text.<br>     */<br>    'hintText': string;<br>    /**<br>     * Indicates the type of input text.<br>     */<br>    'inputType': number;<br>    /**<br>     * Indicates the inspector key.<br>     */<br>    'inspectorKey': string<br>    /**<br>     * Indicates whether the element is active or not.<br>     */<br>    'isActive': boolean;<br>    /**<br>     * Indicates whether the element is enable or not.<br>     */<br>    'isEnable': boolean;<br>    /**<br>     * Indicates whether the element is hint state or not.<br>     */<br>    'isHint': boolean;<br>    /**<br>     * Indicates whether the element is focused or not.<br>     */<br>    'isFocused': boolean;<br>    /**<br>     * Indicates whether the element is password or not.<br>     */<br>    'isPassword': boolean;<br>    /**<br>     * Indicates whether the element is visible or not.<br>     */<br>    'isVisible': boolean;<br>    /**<br>     * Indicates the total count of the items.<br>     */<br>    'itemCount': number;<br>    /**<br>     * Indicates the last content.<br>     */<br>    'lastContent': string;<br>    /**<br>     * Indicates the display layer of the element.<br>     */<br>    'layer': number;<br>    /**<br>     * Indicates whether the element is long clickable.<br>     */<br>    'longClickable': boolean;<br>    /**<br>     * Indicates the page id.<br>     */<br>    'pageId': number;<br>    /**<br>     * Indicates the parent of the element.<br>     */<br>    'parent': AccessibilityElement;<br>    /**<br>     * Indicates whether the element supports multiple lines of text.<br>     */<br>    'pluralLineSupported': boolean;<br>    /**<br>     * Indicates the area of the element.<br>     */<br>    'rect': Rect;<br>    /**<br>     * Indicates the resource name of the element.<br>     */<br>    'resourceName': string;<br>    /**<br>     * Indicates the root element of the window element.<br>     */<br>    'rootElement': AccessibilityElement;<br>    /**<br>     * Indicates the display area of the element.<br>     */<br>    'screenRect': Rect;<br>    /**<br>     * Indicates whether the element is scrollable.<br>     */<br>    'scrollable': boolean;<br>    /**<br>     * Indicates whether the element is selected.<br>     */<br>    'selected': boolean;<br>    /**<br>     * Indicates the list index of the first item displayed on the screen.<br>     */<br>    'startIndex': number;<br>    /**<br>     * Indicates the text of the element.<br>     */<br>    'text': string;<br>    /**<br>     * Indicates the maximum length limit of the element text.<br>     */<br>    'textLengthLimit': number;<br>    /**<br>     * Indicates the unit of movement of the element text as it is read.<br>     */<br>    'textMoveUnit': accessibility.TextMoveUnit;<br>    /**<br>     * Indicates the action that triggered the element event.<br>     */<br>    'triggerAction': accessibility.Action;<br>    /**<br>     * Indicates the window type of the element.<br>     */<br>    'type': WindowType;<br>    /**<br>     * Indicates the maximum value.<br>     */<br>    'valueMax': number;<br>    /**<br>     * Indicates the minimum value.<br>     */<br>    'valueMin': number;<br>    /**<br>     * Indicates the current value.<br>     */<br>    'valueNow': number;<br>    /**<br>     * Indicates the window id.<br>     */<br>    'windowId': number;<br>}|AccessibilityExtensionContext.d.ts|
38|Added|NA|Class name: sourcefile;<br>Method or attribute name: type FocusDirection = 'up' \| 'down' \| 'left' \| 'right' \| 'forward' \| 'backward';|AccessibilityExtensionContext.d.ts|
39|Added|NA|Class name: sourcefile;<br>Method or attribute name: type FocusType = 'accessibility' \| 'normal';|AccessibilityExtensionContext.d.ts|
40|Added|NA|Class name: sourcefile;<br>Method or attribute name: type WindowType = 'application' \| 'system';|AccessibilityExtensionContext.d.ts|
41|Added|NA|Class name: AccessibilityExtensionContext;<br>Method or attribute name: setTargetBundleName(targetNames: Array\<string>): Promise\<void>;|AccessibilityExtensionContext.d.ts|
42|Added|NA|Class name: AccessibilityExtensionContext;<br>Method or attribute name: setTargetBundleName(targetNames: Array\<string>, callback: AsyncCallback\<void>): void;|AccessibilityExtensionContext.d.ts|
43|Added|NA|Class name: AccessibilityExtensionContext;<br>Method or attribute name: getFocusElement(isAccessibilityFocus?: boolean): Promise\<AccessibilityElement>;|AccessibilityExtensionContext.d.ts|
44|Added|NA|Class name: AccessibilityExtensionContext;<br>Method or attribute name: getFocusElement(callback: AsyncCallback\<AccessibilityElement>): void;|AccessibilityExtensionContext.d.ts|
45|Added|NA|Class name: AccessibilityExtensionContext;<br>Method or attribute name: getFocusElement(isAccessibilityFocus: boolean, callback: AsyncCallback\<AccessibilityElement>): void;|AccessibilityExtensionContext.d.ts|
46|Added|NA|Class name: AccessibilityExtensionContext;<br>Method or attribute name: getWindowRootElement(windowId?: number): Promise\<AccessibilityElement>;|AccessibilityExtensionContext.d.ts|
47|Added|NA|Class name: AccessibilityExtensionContext;<br>Method or attribute name: getWindowRootElement(callback: AsyncCallback\<AccessibilityElement>): void;|AccessibilityExtensionContext.d.ts|
48|Added|NA|Class name: AccessibilityExtensionContext;<br>Method or attribute name: getWindowRootElement(windowId: number, callback: AsyncCallback\<AccessibilityElement>): void;|AccessibilityExtensionContext.d.ts|
49|Added|NA|Class name: AccessibilityExtensionContext;<br>Method or attribute name: getWindows(displayId?: number): Promise\<Array\<AccessibilityElement>>;|AccessibilityExtensionContext.d.ts|
50|Added|NA|Class name: AccessibilityExtensionContext;<br>Method or attribute name: getWindows(callback: AsyncCallback\<Array\<AccessibilityElement>>): void;|AccessibilityExtensionContext.d.ts|
51|Added|NA|Class name: AccessibilityExtensionContext;<br>Method or attribute name: getWindows(displayId: number, callback: AsyncCallback\<Array\<AccessibilityElement>>): void;|AccessibilityExtensionContext.d.ts|
52|Added|NA|Class name: AccessibilityExtensionContext;<br>Method or attribute name: injectGesture(gesturePath: GesturePath): Promise\<void>;|AccessibilityExtensionContext.d.ts|
53|Added|NA|Class name: AccessibilityExtensionContext;<br>Method or attribute name: injectGesture(gesturePath: GesturePath, callback: AsyncCallback\<void>): void;|AccessibilityExtensionContext.d.ts|
54|Added|NA|Class name: AccessibilityElement;<br>Method or attribute name: attributeNames\<T extends keyof ElementAttributeValues>(): Promise\<Array\<T>>;|AccessibilityExtensionContext.d.ts|
55|Added|NA|Class name: AccessibilityElement;<br>Method or attribute name: attributeNames\<T extends keyof ElementAttributeValues>(callback: AsyncCallback\<Array\<T>>): void;|AccessibilityExtensionContext.d.ts|
56|Added|NA|Class name: AccessibilityElement;<br>Method or attribute name: attributeValue\<T extends keyof ElementAttributeValues>(attributeName: T): Promise\<ElementAttributeValues[T]>;|AccessibilityExtensionContext.d.ts|
57|Added|NA|Class name: AccessibilityElement;<br>Method or attribute name: attributeValue\<T extends keyof ElementAttributeValues>(attributeName: T,<br>        callback: AsyncCallback\<ElementAttributeValues[T]>): void;|AccessibilityExtensionContext.d.ts|
58|Added|NA|Class name: AccessibilityElement;<br>Method or attribute name: actionNames(): Promise\<Array\<string>>;|AccessibilityExtensionContext.d.ts|
59|Added|NA|Class name: AccessibilityElement;<br>Method or attribute name: actionNames(callback: AsyncCallback\<Array\<string>>): void;|AccessibilityExtensionContext.d.ts|
60|Added|NA|Class name: AccessibilityElement;<br>Method or attribute name: performAction(actionName: string, parameters?: object): Promise\<void>;|AccessibilityExtensionContext.d.ts|
61|Added|NA|Class name: AccessibilityElement;<br>Method or attribute name: performAction(actionName: string, callback: AsyncCallback\<void>): void;|AccessibilityExtensionContext.d.ts|
62|Added|NA|Class name: AccessibilityElement;<br>Method or attribute name: performAction(actionName: string, parameters: object, callback: AsyncCallback\<void>): void;|AccessibilityExtensionContext.d.ts|
63|Added|NA|Class name: AccessibilityElement;<br>Method or attribute name: findElement(type: 'content', condition: string): Promise\<Array\<AccessibilityElement>>;|AccessibilityExtensionContext.d.ts|
64|Added|NA|Class name: AccessibilityElement;<br>Method or attribute name: findElement(type: 'content', condition: string, callback: AsyncCallback\<Array\<AccessibilityElement>>): void|AccessibilityExtensionContext.d.ts|
65|Added|NA|Class name: AccessibilityElement;<br>Method or attribute name: findElement(type: 'focusType', condition: FocusType): Promise\<AccessibilityElement>;|AccessibilityExtensionContext.d.ts|
66|Added|NA|Class name: AccessibilityElement;<br>Method or attribute name: findElement(type: 'focusType', condition: FocusType, callback: AsyncCallback\<AccessibilityElement>): void|AccessibilityExtensionContext.d.ts|
67|Added|NA|Class name: AccessibilityElement;<br>Method or attribute name: findElement(type: 'focusDirection', condition: FocusDirection): Promise\<AccessibilityElement>;|AccessibilityExtensionContext.d.ts|
68|Added|NA|Class name: AccessibilityElement;<br>Method or attribute name: findElement(type: 'focusDirection', condition: FocusDirection, callback: AsyncCallback\<AccessibilityElement>): void|AccessibilityExtensionContext.d.ts|
69|Added|NA|Class name: Rect;<br>Method or attribute name: left: number;|AccessibilityExtensionContext.d.ts|
70|Added|NA|Class name: Rect;<br>Method or attribute name: top: number;|AccessibilityExtensionContext.d.ts|
71|Added|NA|Class name: Rect;<br>Method or attribute name: width: number;|AccessibilityExtensionContext.d.ts|
72|Added|NA|Class name: Rect;<br>Method or attribute name: height: number;|AccessibilityExtensionContext.d.ts|
73|Deprecated version changed|Class name: accessibility;<br>Method or attribute name: function getAbilityLists(abilityType: AbilityType, stateType: AbilityState,<br><br>    callback: AsyncCallback\<Array\<AccessibilityAbilityInfo>>): void;<br>Old version: |Class name: accessibility;<br>Method or attribute name: function getAbilityLists(abilityType: AbilityType, stateType: AbilityState,<br><br>    callback: AsyncCallback\<Array\<AccessibilityAbilityInfo>>): void;<br>New version: 9<br>Substitute API: ohos.accessibility#getAccessibilityExtensionList|@ohos.accessibility.d.ts|
74|Deprecated version changed|Class name: accessibility;<br>Method or attribute name: function getAbilityLists(abilityType: AbilityType,<br><br>    stateType: AbilityState): Promise\<Array\<AccessibilityAbilityInfo>>;<br>Old version: |Class name: accessibility;<br>Method or attribute name: function getAbilityLists(abilityType: AbilityType,<br><br>    stateType: AbilityState): Promise\<Array\<AccessibilityAbilityInfo>>;<br>New version: 9<br>Substitute API: ohos.accessibility#getAccessibilityExtensionList|@ohos.accessibility.d.ts|
75|Deprecated version changed|Class name: accessibility;<br>Method or attribute name: function sendEvent(event: EventInfo, callback: AsyncCallback\<void>): void;<br>Old version: |Class name: accessibility;<br>Method or attribute name: function sendEvent(event: EventInfo, callback: AsyncCallback\<void>): void;<br>New version: 9<br>Substitute API: ohos.accessibility#sendAccessibilityEvent|@ohos.accessibility.d.ts|
76|Deprecated version changed|Class name: accessibility;<br>Method or attribute name: function sendEvent(event: EventInfo): Promise\<void>;<br>Old version: |Class name: accessibility;<br>Method or attribute name: function sendEvent(event: EventInfo): Promise\<void>;<br>New version: 9<br>Substitute API: ohos.accessibility#sendAccessibilityEvent|@ohos.accessibility.d.ts|
77|Error code added|Class name: accessibility;<br>Method or attribute name: function on(type: 'accessibilityStateChange', callback: Callback\<boolean>): void;<br>Old version: |Class name: accessibility;<br>Method or attribute name: function on(type: 'accessibilityStateChange', callback: Callback\<boolean>): void;<br>New version: 401|@ohos.accessibility.d.ts|
78|Error code added|Class name: accessibility;<br>Method or attribute name: function on(type: 'touchGuideStateChange', callback: Callback\<boolean>): void;<br>Old version: |Class name: accessibility;<br>Method or attribute name: function on(type: 'touchGuideStateChange', callback: Callback\<boolean>): void;<br>New version: 401|@ohos.accessibility.d.ts|
79|Error code added|Class name: accessibility;<br>Method or attribute name: function off(type: 'accessibilityStateChange', callback?: Callback\<boolean>): void;<br>Old version: |Class name: accessibility;<br>Method or attribute name: function off(type: 'accessibilityStateChange', callback?: Callback\<boolean>): void;<br>New version: 401|@ohos.accessibility.d.ts|
80|Error code added|Class name: accessibility;<br>Method or attribute name: function off(type: 'touchGuideStateChange', callback?: Callback\<boolean>): void;<br>Old version: |Class name: accessibility;<br>Method or attribute name: function off(type: 'touchGuideStateChange', callback?: Callback\<boolean>): void;<br>New version: 401|@ohos.accessibility.d.ts|
81|Error code added|Class name: CaptionsManager;<br>Method or attribute name: on(type: 'enableChange', callback: Callback\<boolean>): void;<br>Old version: |Class name: CaptionsManager;<br>Method or attribute name: on(type: 'enableChange', callback: Callback\<boolean>): void;<br>New version: 401|@ohos.accessibility.d.ts|
82|Error code added|Class name: CaptionsManager;<br>Method or attribute name: on(type: 'styleChange', callback: Callback\<CaptionsStyle>): void;<br>Old version: |Class name: CaptionsManager;<br>Method or attribute name: on(type: 'styleChange', callback: Callback\<CaptionsStyle>): void;<br>New version: 401|@ohos.accessibility.d.ts|
83|Error code added|Class name: CaptionsManager;<br>Method or attribute name: off(type: 'enableChange', callback?: Callback\<boolean>): void;<br>Old version: |Class name: CaptionsManager;<br>Method or attribute name: off(type: 'enableChange', callback?: Callback\<boolean>): void;<br>New version: 401|@ohos.accessibility.d.ts|
84|Error code added|Class name: CaptionsManager;<br>Method or attribute name: off(type: 'styleChange', callback?: Callback\<CaptionsStyle>): void;<br>Old version: |Class name: CaptionsManager;<br>Method or attribute name: off(type: 'styleChange', callback?: Callback\<CaptionsStyle>): void;<br>New version: 401|@ohos.accessibility.d.ts|
85|Type changed|Class name: accessibility;<br>Method or attribute name: type AbilityType = 'audible' \| 'generic' \| 'haptic' \| 'spoken' \| 'visual' \| 'all';<br>Old version: |Class name: accessibility;<br>Method or attribute name: type AbilityType = 'audible' \| 'generic' \| 'haptic' \| 'spoken' \| 'visual' \| 'all';<br>New version: 'audible' \| 'generic' \| 'haptic' \| 'spoken' \| 'visual' \| 'all'|@ohos.accessibility.d.ts|
86|Function changed|Class name: accessibility;<br>Method or attribute name: type AbilityType = 'audible' \| 'generic' \| 'haptic' \| 'spoken' \| 'visual';|Class name: accessibility;<br>Method or attribute name: type AbilityType = 'audible' \| 'generic' \| 'haptic' \| 'spoken' \| 'visual' \| 'all';|@ohos.accessibility.d.ts|
87