| Change Type | Old Version | New Version | d.ts File |
| ---- | ------ | ------ | -------- |
|Added|NA|Class name: config;
Method or attribute name: function enableAbility(name: string, capability: Array\): Promise\;|@ohos.accessibility.config.d.ts|
|Added|NA|Class name: config;
Method or attribute name: function enableAbility(name: string, capability: Array\, callback: AsyncCallback\): void;|@ohos.accessibility.config.d.ts|
|Added|NA|Class name: config;
Method or attribute name: function disableAbility(name: string): Promise\;|@ohos.accessibility.config.d.ts|
|Added|NA|Class name: config;
Method or attribute name: function disableAbility(name: string, callback: AsyncCallback\): void;|@ohos.accessibility.config.d.ts|
|Added|NA|Class name: config;
Method or attribute name: function on(type: 'enabledAccessibilityExtensionListChange', callback: Callback\): void;|@ohos.accessibility.config.d.ts|
|Added|NA|Class name: config;
Method or attribute name: function off(type: 'enabledAccessibilityExtensionListChange', callback?: Callback\): void;|@ohos.accessibility.config.d.ts|
|Added|NA|Class name: config;
Method or attribute name: type DaltonizationColorFilter = 'Normal' \| 'Protanomaly' \| 'Deuteranomaly' \| 'Tritanomaly';|@ohos.accessibility.config.d.ts|
|Added|NA|Class name: Config;
Method or attribute name: set(value: T): Promise\;|@ohos.accessibility.config.d.ts|
|Added|NA|Class name: Config;
Method or attribute name: set(value: T, callback: AsyncCallback\): void;|@ohos.accessibility.config.d.ts|
|Added|NA|Class name: Config;
Method or attribute name: get(): Promise\;|@ohos.accessibility.config.d.ts|
|Added|NA|Class name: Config;
Method or attribute name: get(callback: AsyncCallback\): void;|@ohos.accessibility.config.d.ts|
|Added|NA|Class name: Config;
Method or attribute name: on(callback: Callback\): void;|@ohos.accessibility.config.d.ts|
|Added|NA|Class name: Config;
Method or attribute name: off(callback?: Callback\): void;|@ohos.accessibility.config.d.ts|
|Added|NA|Class name: accessibility;
Method or attribute name: function getAccessibilityExtensionList(abilityType: AbilityType, stateType: AbilityState): Promise\>;|@ohos.accessibility.d.ts|
|Added|NA|Class name: accessibility;
Method or attribute name: function getAccessibilityExtensionList(abilityType: AbilityType, stateType: AbilityState, callback: AsyncCallback\>): void;|@ohos.accessibility.d.ts|
|Added|NA|Class name: accessibility;
Method or attribute name: function sendAccessibilityEvent(event: EventInfo, callback: AsyncCallback\): void;|@ohos.accessibility.d.ts|
|Added|NA|Class name: accessibility;
Method or attribute name: function sendAccessibilityEvent(event: EventInfo): Promise\;|@ohos.accessibility.d.ts|
|Added|NA|Class name: GesturePath;
Method or attribute name: constructor(durationTime: number);|@ohos.accessibility.GesturePath.d.ts|
|Added|NA|Class name: GesturePath;
Method or attribute name: points: Array\;|@ohos.accessibility.GesturePath.d.ts|
|Added|NA|Class name: GesturePath;
Method or attribute name: durationTime: number;|@ohos.accessibility.GesturePath.d.ts|
|Added|NA|Class name: GesturePoint;
Method or attribute name: constructor(positionX: number, positionY: number);|@ohos.accessibility.GesturePoint.d.ts|
|Added|NA|Class name: GesturePoint;
Method or attribute name: positionX: number;|@ohos.accessibility.GesturePoint.d.ts|
|Added|NA|Class name: GesturePoint;
Method or attribute name: positionY: number;|@ohos.accessibility.GesturePoint.d.ts|
|Added|NA|Class name: sourcefile;
Method or attribute name: type GestureType = 'left' \| 'leftThenRight' \| 'leftThenUp' \| 'leftThenDown' \|
'right' \| 'rightThenLeft' \| 'rightThenUp' \| 'rightThenDown' \|
'up' \| 'upThenLeft' \| 'upThenRight' \| 'upThenDown' \|
'down' \| 'downThenLeft' \| 'downThenRight' \| 'downThenUp';|@ohos.application.AccessibilityExtensionAbility.d.ts|
|Added|NA|Class name: sourcefile;
Method or attribute name: type PageUpdateType = 'pageContentUpdate' \| 'pageStateUpdate';|@ohos.application.AccessibilityExtensionAbility.d.ts|
|Added|NA|Class name: sourcefile;
Method or attribute name: type TouchGuideType = 'touchBegin' \| 'touchEnd';|@ohos.application.AccessibilityExtensionAbility.d.ts|
|Added|NA|Class name: AccessibilityExtensionAbility;
Method or attribute name: context: AccessibilityExtensionContext;|@ohos.application.AccessibilityExtensionAbility.d.ts|
|Added|NA|Class name: AccessibilityExtensionAbility;
Method or attribute name: onConnect(): void;|@ohos.application.AccessibilityExtensionAbility.d.ts|
|Added|NA|Class name: AccessibilityExtensionAbility;
Method or attribute name: onDisconnect(): void;|@ohos.application.AccessibilityExtensionAbility.d.ts|
|Added|NA|Class name: AccessibilityExtensionAbility;
Method or attribute name: onAccessibilityEvent(event: AccessibilityEvent): void;|@ohos.application.AccessibilityExtensionAbility.d.ts|
|Added|NA|Class name: AccessibilityExtensionAbility;
Method or attribute name: onKeyEvent(keyEvent: KeyEvent): boolean;|@ohos.application.AccessibilityExtensionAbility.d.ts|
|Added|NA|Class name: AccessibilityEvent;
Method or attribute name: eventType: accessibility.EventType \| accessibility.WindowUpdateType \|
TouchGuideType \| GestureType \| PageUpdateType;|@ohos.application.AccessibilityExtensionAbility.d.ts|
|Added|NA|Class name: AccessibilityEvent;
Method or attribute name: target?: AccessibilityElement;|@ohos.application.AccessibilityExtensionAbility.d.ts|
|Added|NA|Class name: AccessibilityEvent;
Method or attribute name: timeStamp?: number;|@ohos.application.AccessibilityExtensionAbility.d.ts|
|Added|NA|Class name: sourcefile;
Method or attribute name: type ElementAttributeValues = {
/**
* Indicates accessibility focus state.
*/
'accessibilityFocused': boolean;
/**
* Indicates the bundle name to which it belongs.
*/
'bundleName': string;
/**
* Indicates whether the element is checkable.
*/
'checkable': boolean;
/**
* Indicates whether the element is checked.
*/
'checked': boolean;
/**
* Indicates all child elements.
*/
'children': Array\;
/**
* Indicates whether the element is clickable.
*/
'clickable': boolean;
/**
* Indicates the component ID to which the element belongs.
*/
'componentId': number;
/**
* Indicates the component type to which the element belongs.
*/
'componentType': string;
/**
* Indicates the content.
*/
'contents': Array\;
/**
* Indicates the index of the current item.
*/
'currentIndex': number;
/**
* Indicates the description of the element.
*/
'description': string;
/**
* Indicates whether the element is editable.
*/
'editable': boolean;
/**
* Indicates the list index of the last item displayed on the screen.
*/
'endIndex': number;
/**
* Indicates the string of error state.
*/
'error': string;
/**
* Indicates whether the element is focusable.
*/
'focusable': boolean;
/**
* Indicates the hint text.
*/
'hintText': string;
/**
* Indicates the type of input text.
*/
'inputType': number;
/**
* Indicates the inspector key.
*/
'inspectorKey': string
/**
* Indicates whether the element is active or not.
*/
'isActive': boolean;
/**
* Indicates whether the element is enable or not.
*/
'isEnable': boolean;
/**
* Indicates whether the element is hint state or not.
*/
'isHint': boolean;
/**
* Indicates whether the element is focused or not.
*/
'isFocused': boolean;
/**
* Indicates whether the element is password or not.
*/
'isPassword': boolean;
/**
* Indicates whether the element is visible or not.
*/
'isVisible': boolean;
/**
* Indicates the total count of the items.
*/
'itemCount': number;
/**
* Indicates the last content.
*/
'lastContent': string;
/**
* Indicates the display layer of the element.
*/
'layer': number;
/**
* Indicates whether the element is long clickable.
*/
'longClickable': boolean;
/**
* Indicates the page id.
*/
'pageId': number;
/**
* Indicates the parent of the element.
*/
'parent': AccessibilityElement;
/**
* Indicates whether the element supports multiple lines of text.
*/
'pluralLineSupported': boolean;
/**
* Indicates the area of the element.
*/
'rect': Rect;
/**
* Indicates the resource name of the element.
*/
'resourceName': string;
/**
* Indicates the root element of the window element.
*/
'rootElement': AccessibilityElement;
/**
* Indicates the display area of the element.
*/
'screenRect': Rect;
/**
* Indicates whether the element is scrollable.
*/
'scrollable': boolean;
/**
* Indicates whether the element is selected.
*/
'selected': boolean;
/**
* Indicates the list index of the first item displayed on the screen.
*/
'startIndex': number;
/**
* Indicates the text of the element.
*/
'text': string;
/**
* Indicates the maximum length limit of the element text.
*/
'textLengthLimit': number;
/**
* Indicates the unit of movement of the element text as it is read.
*/
'textMoveUnit': accessibility.TextMoveUnit;
/**
* Indicates the action that triggered the element event.
*/
'triggerAction': accessibility.Action;
/**
* Indicates the window type of the element.
*/
'type': WindowType;
/**
* Indicates the maximum value.
*/
'valueMax': number;
/**
* Indicates the minimum value.
*/
'valueMin': number;
/**
* Indicates the current value.
*/
'valueNow': number;
/**
* Indicates the window id.
*/
'windowId': number;
}|AccessibilityExtensionContext.d.ts|
|Added|NA|Class name: sourcefile;
Method or attribute name: type FocusDirection = 'up' \| 'down' \| 'left' \| 'right' \| 'forward' \| 'backward';|AccessibilityExtensionContext.d.ts|
|Added|NA|Class name: sourcefile;
Method or attribute name: type FocusType = 'accessibility' \| 'normal';|AccessibilityExtensionContext.d.ts|
|Added|NA|Class name: sourcefile;
Method or attribute name: type WindowType = 'application' \| 'system';|AccessibilityExtensionContext.d.ts|
|Added|NA|Class name: AccessibilityExtensionContext;
Method or attribute name: setTargetBundleName(targetNames: Array\): Promise\;|AccessibilityExtensionContext.d.ts|
|Added|NA|Class name: AccessibilityExtensionContext;
Method or attribute name: setTargetBundleName(targetNames: Array\, callback: AsyncCallback\): void;|AccessibilityExtensionContext.d.ts|
|Added|NA|Class name: AccessibilityExtensionContext;
Method or attribute name: getFocusElement(isAccessibilityFocus?: boolean): Promise\;|AccessibilityExtensionContext.d.ts|
|Added|NA|Class name: AccessibilityExtensionContext;
Method or attribute name: getFocusElement(callback: AsyncCallback\): void;|AccessibilityExtensionContext.d.ts|
|Added|NA|Class name: AccessibilityExtensionContext;
Method or attribute name: getFocusElement(isAccessibilityFocus: boolean, callback: AsyncCallback\): void;|AccessibilityExtensionContext.d.ts|
|Added|NA|Class name: AccessibilityExtensionContext;
Method or attribute name: getWindowRootElement(windowId?: number): Promise\;|AccessibilityExtensionContext.d.ts|
|Added|NA|Class name: AccessibilityExtensionContext;
Method or attribute name: getWindowRootElement(callback: AsyncCallback\): void;|AccessibilityExtensionContext.d.ts|
|Added|NA|Class name: AccessibilityExtensionContext;
Method or attribute name: getWindowRootElement(windowId: number, callback: AsyncCallback\): void;|AccessibilityExtensionContext.d.ts|
|Added|NA|Class name: AccessibilityExtensionContext;
Method or attribute name: getWindows(displayId?: number): Promise\>;|AccessibilityExtensionContext.d.ts|
|Added|NA|Class name: AccessibilityExtensionContext;
Method or attribute name: getWindows(callback: AsyncCallback\>): void;|AccessibilityExtensionContext.d.ts|
|Added|NA|Class name: AccessibilityExtensionContext;
Method or attribute name: getWindows(displayId: number, callback: AsyncCallback\>): void;|AccessibilityExtensionContext.d.ts|
|Added|NA|Class name: AccessibilityExtensionContext;
Method or attribute name: injectGesture(gesturePath: GesturePath): Promise\;|AccessibilityExtensionContext.d.ts|
|Added|NA|Class name: AccessibilityExtensionContext;
Method or attribute name: injectGesture(gesturePath: GesturePath, callback: AsyncCallback\): void;|AccessibilityExtensionContext.d.ts|
|Added|NA|Class name: AccessibilityElement;
Method or attribute name: attributeNames\(): Promise\>;|AccessibilityExtensionContext.d.ts|
|Added|NA|Class name: AccessibilityElement;
Method or attribute name: attributeNames\(callback: AsyncCallback\>): void;|AccessibilityExtensionContext.d.ts|
|Added|NA|Class name: AccessibilityElement;
Method or attribute name: attributeValue\(attributeName: T): Promise\;|AccessibilityExtensionContext.d.ts|
|Added|NA|Class name: AccessibilityElement;
Method or attribute name: attributeValue\(attributeName: T,
callback: AsyncCallback\): void;|AccessibilityExtensionContext.d.ts|
|Added|NA|Class name: AccessibilityElement;
Method or attribute name: actionNames(): Promise\>;|AccessibilityExtensionContext.d.ts|
|Added|NA|Class name: AccessibilityElement;
Method or attribute name: actionNames(callback: AsyncCallback\>): void;|AccessibilityExtensionContext.d.ts|
|Added|NA|Class name: AccessibilityElement;
Method or attribute name: performAction(actionName: string, parameters?: object): Promise\;|AccessibilityExtensionContext.d.ts|
|Added|NA|Class name: AccessibilityElement;
Method or attribute name: performAction(actionName: string, callback: AsyncCallback\): void;|AccessibilityExtensionContext.d.ts|
|Added|NA|Class name: AccessibilityElement;
Method or attribute name: performAction(actionName: string, parameters: object, callback: AsyncCallback\): void;|AccessibilityExtensionContext.d.ts|
|Added|NA|Class name: AccessibilityElement;
Method or attribute name: findElement(type: 'content', condition: string): Promise\>;|AccessibilityExtensionContext.d.ts|
|Added|NA|Class name: AccessibilityElement;
Method or attribute name: findElement(type: 'content', condition: string, callback: AsyncCallback\>): void|AccessibilityExtensionContext.d.ts|
|Added|NA|Class name: AccessibilityElement;
Method or attribute name: findElement(type: 'focusType', condition: FocusType): Promise\;|AccessibilityExtensionContext.d.ts|
|Added|NA|Class name: AccessibilityElement;
Method or attribute name: findElement(type: 'focusType', condition: FocusType, callback: AsyncCallback\): void|AccessibilityExtensionContext.d.ts|
|Added|NA|Class name: AccessibilityElement;
Method or attribute name: findElement(type: 'focusDirection', condition: FocusDirection): Promise\;|AccessibilityExtensionContext.d.ts|
|Added|NA|Class name: AccessibilityElement;
Method or attribute name: findElement(type: 'focusDirection', condition: FocusDirection, callback: AsyncCallback\): void|AccessibilityExtensionContext.d.ts|
|Added|NA|Class name: Rect;
Method or attribute name: left: number;|AccessibilityExtensionContext.d.ts|
|Added|NA|Class name: Rect;
Method or attribute name: top: number;|AccessibilityExtensionContext.d.ts|
|Added|NA|Class name: Rect;
Method or attribute name: width: number;|AccessibilityExtensionContext.d.ts|
|Added|NA|Class name: Rect;
Method or attribute name: height: number;|AccessibilityExtensionContext.d.ts|
|Deprecated version changed|Class name: accessibility;
Method or attribute name: function getAbilityLists(abilityType: AbilityType, stateType: AbilityState,
callback: AsyncCallback\>): void;
Old version: |Class name: accessibility;
Method or attribute name: function getAbilityLists(abilityType: AbilityType, stateType: AbilityState,
callback: AsyncCallback\>): void;
New version: 9
Substitute API: ohos.accessibility#getAccessibilityExtensionList|@ohos.accessibility.d.ts|
|Deprecated version changed|Class name: accessibility;
Method or attribute name: function getAbilityLists(abilityType: AbilityType,
stateType: AbilityState): Promise\>;
Old version: |Class name: accessibility;
Method or attribute name: function getAbilityLists(abilityType: AbilityType,
stateType: AbilityState): Promise\>;
New version: 9
Substitute API: ohos.accessibility#getAccessibilityExtensionList|@ohos.accessibility.d.ts|
|Deprecated version changed|Class name: accessibility;
Method or attribute name: function sendEvent(event: EventInfo, callback: AsyncCallback\): void;
Old version: |Class name: accessibility;
Method or attribute name: function sendEvent(event: EventInfo, callback: AsyncCallback\): void;
New version: 9
Substitute API: ohos.accessibility#sendAccessibilityEvent|@ohos.accessibility.d.ts|
|Deprecated version changed|Class name: accessibility;
Method or attribute name: function sendEvent(event: EventInfo): Promise\;
Old version: |Class name: accessibility;
Method or attribute name: function sendEvent(event: EventInfo): Promise\;
New version: 9
Substitute API: ohos.accessibility#sendAccessibilityEvent|@ohos.accessibility.d.ts|
|Error code added|Class name: accessibility;
Method or attribute name: function on(type: 'accessibilityStateChange', callback: Callback\): void;
Old version: |Class name: accessibility;
Method or attribute name: function on(type: 'accessibilityStateChange', callback: Callback\): void;
New version: 401|@ohos.accessibility.d.ts|
|Error code added|Class name: accessibility;
Method or attribute name: function on(type: 'touchGuideStateChange', callback: Callback\): void;
Old version: |Class name: accessibility;
Method or attribute name: function on(type: 'touchGuideStateChange', callback: Callback\): void;
New version: 401|@ohos.accessibility.d.ts|
|Error code added|Class name: accessibility;
Method or attribute name: function off(type: 'accessibilityStateChange', callback?: Callback\): void;
Old version: |Class name: accessibility;
Method or attribute name: function off(type: 'accessibilityStateChange', callback?: Callback\): void;
New version: 401|@ohos.accessibility.d.ts|
|Error code added|Class name: accessibility;
Method or attribute name: function off(type: 'touchGuideStateChange', callback?: Callback\): void;
Old version: |Class name: accessibility;
Method or attribute name: function off(type: 'touchGuideStateChange', callback?: Callback\): void;
New version: 401|@ohos.accessibility.d.ts|
|Error code added|Class name: CaptionsManager;
Method or attribute name: on(type: 'enableChange', callback: Callback\): void;
Old version: |Class name: CaptionsManager;
Method or attribute name: on(type: 'enableChange', callback: Callback\): void;
New version: 401|@ohos.accessibility.d.ts|
|Error code added|Class name: CaptionsManager;
Method or attribute name: on(type: 'styleChange', callback: Callback\): void;
Old version: |Class name: CaptionsManager;
Method or attribute name: on(type: 'styleChange', callback: Callback\): void;
New version: 401|@ohos.accessibility.d.ts|
|Error code added|Class name: CaptionsManager;
Method or attribute name: off(type: 'enableChange', callback?: Callback\): void;
Old version: |Class name: CaptionsManager;
Method or attribute name: off(type: 'enableChange', callback?: Callback\): void;
New version: 401|@ohos.accessibility.d.ts|
|Error code added|Class name: CaptionsManager;
Method or attribute name: off(type: 'styleChange', callback?: Callback\): void;
Old version: |Class name: CaptionsManager;
Method or attribute name: off(type: 'styleChange', callback?: Callback\): void;
New version: 401|@ohos.accessibility.d.ts|
|Type changed|Class name: accessibility;
Method or attribute name: type AbilityType = 'audible' \| 'generic' \| 'haptic' \| 'spoken' \| 'visual' \| 'all';
Old version: |Class name: accessibility;
Method or attribute name: type AbilityType = 'audible' \| 'generic' \| 'haptic' \| 'spoken' \| 'visual' \| 'all';
New version: 'audible' \| 'generic' \| 'haptic' \| 'spoken' \| 'visual' \| 'all'|@ohos.accessibility.d.ts|
|Function changed|Class name: accessibility;
Method or attribute name: type AbilityType = 'audible' \| 'generic' \| 'haptic' \| 'spoken' \| 'visual';|Class name: accessibility;
Method or attribute name: type AbilityType = 'audible' \| 'generic' \| 'haptic' \| 'spoken' \| 'visual' \| 'all';|@ohos.accessibility.d.ts|