# JS API Changes of the Accessibility Subsystem The table below lists the APIs changes of the accessibility subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1. ## API Changes | Module| Class| Method/Attribute/Enumeration/Constant| Change Type| |---|---|---|---| | AccessibilityExtensionContext | Rect | height: number; | Added| | AccessibilityExtensionContext | Rect | width: number; | Added| | AccessibilityExtensionContext | Rect | top: number; | Added| | AccessibilityExtensionContext | Rect | left: number; | Added| | AccessibilityExtensionContext | AccessibilityElement | findElement(type: 'content', condition: string): Promise\>;
findElement(type: 'content', condition: string, callback: AsyncCallback\>): void
findElement(type: 'focusType', condition: FocusType): Promise\;
findElement(type: 'focusType', condition: FocusType, callback: AsyncCallback\): void
findElement(type: 'focusDirection', condition: FocusDirection): Promise\;
findElement(type: 'focusDirection', condition: FocusDirection, callback: AsyncCallback\): void | Added| | AccessibilityExtensionContext | AccessibilityElement | performAction(actionName: string, parameters?: object): Promise\;
performAction(actionName: string, callback: AsyncCallback\): void;
performAction(actionName: string, parameters: object, callback: AsyncCallback\): void; | Added| | AccessibilityExtensionContext | AccessibilityElement | actionNames(): Promise\>;
actionNames(callback: AsyncCallback\>): void; | Added| | AccessibilityExtensionContext | AccessibilityElement | "attributeValue\(attributeName: T): Promise\;
attributeValue\(attributeName: T, callback: AsyncCallback\): void;" | Added| | AccessibilityExtensionContext | AccessibilityElement | attributeNames\(): Promise\>;
attributeNames\(callback: AsyncCallback\>): void; | Added| | AccessibilityExtensionContext | AccessibilityExtensionContext | gestureInject(gesturePath: GesturePath, listener: Callback\): Promise\;
gestureInject(gesturePath: GesturePath, listener: Callback\, callback: AsyncCallback\): void; | Added| | AccessibilityExtensionContext | AccessibilityExtensionContext | getWindows(displayId?: number): Promise\>;
getWindows(callback: AsyncCallback\>): void;
getWindows(displayId: number, callback: AsyncCallback\>): void; | Added| | AccessibilityExtensionContext | AccessibilityExtensionContext | getWindowRootElement(windowId?: number): Promise\;
getWindowRootElement(callback: AsyncCallback\): void;
getWindowRootElement(windowId: number, callback: AsyncCallback\): void; | Added| | AccessibilityExtensionContext | AccessibilityExtensionContext | getFocusElement(isAccessibilityFocus?: boolean): Promise\;
getFocusElement(callback: AsyncCallback\): void;
getFocusElement(isAccessibilityFocus: boolean, callback: AsyncCallback\): void; | Added| | AccessibilityExtensionContext | AccessibilityExtensionContext | setTargetBundleName(targetNames: Array\): Promise\;
setTargetBundleName(targetNames: Array\, callback: AsyncCallback\): boolean; | Added| | AccessibilityExtensionContext | AccessibilityExtensionContext | setEventTypeFilter(type: Array\): Promise\;
setEventTypeFilter(type: Array\, callback: AsyncCallback\): boolean; | Added| | ohos.accessibility | AccessibilityAbilityInfo | readonly targetBundleNames: Array\; | Added| | ohos.application.AccessibilityExtensionAbility | GesturePoint | positionY: number; | Added| | ohos.application.AccessibilityExtensionAbility | GesturePoint | positionX: number; | Added| | ohos.application.AccessibilityExtensionAbility | GesturePath | durationTime: number; | Added| | ohos.application.AccessibilityExtensionAbility | GesturePath | points: Array\; | Added| | ohos.application.AccessibilityExtensionAbility | AccessibilityEvent | timeStamp?: number; | Added| | ohos.application.AccessibilityExtensionAbility | AccessibilityEvent | target?: AccessibilityElement; | Added| | ohos.application.AccessibilityExtensionAbility | AccessibilityEvent | eventType: accessibility.EventType \| accessibility.WindowUpdateType \| TouchGuideType \| GestureType \| PageUpdateType; | Added| | ohos.application.AccessibilityExtensionAbility | AccessibilityExtensionAbility | onKeyEvent(keyEvent: inputEventClient.KeyEvent): boolean; | Added| | ohos.application.AccessibilityExtensionAbility | AccessibilityExtensionAbility | onAccessibilityEvent(event: AccessibilityEvent): void; | Added| | ohos.application.AccessibilityExtensionAbility | AccessibilityExtensionAbility | onDisconnect(): void; | Added| | ohos.application.AccessibilityExtensionAbility | AccessibilityExtensionAbility | onConnect(): void; | Added| | ohos.application.AccessibilityExtensionAbility | AccessibilityExtensionAbility | context: AccessibilityExtensionContext; | Added|