1# JS API Changes of the Accessibility Subsystem 2 3The table below lists the APIs changes of the accessibility subsystem in OpenHarmony 3.1 Release over OpenHarmony 3.0 LTS. 4 5## API Changes 6 7| Module| Class| Method/Attribute/Enumeration/Constant| Change Type| 8|---|---|---|---| 9| ohos.accessibility | EventInfo | itemCount?: number; | Added| 10| ohos.accessibility | EventInfo | endIndex?: number; | Added| 11| ohos.accessibility | EventInfo | currentIndex?: number; | Added| 12| ohos.accessibility | EventInfo | beginIndex?: number; | Added| 13| ohos.accessibility | EventInfo | lastContent?: string; | Added| 14| ohos.accessibility | EventInfo | contents?: Array\<string>; | Added| 15| ohos.accessibility | EventInfo | textMoveUnit?: TextMoveUnit; | Added| 16| ohos.accessibility | EventInfo | triggerAction: Action; | Added| 17| ohos.accessibility | EventInfo | description?: string; | Added| 18| ohos.accessibility | EventInfo | pageId ?: number; | Added| 19| ohos.accessibility | EventInfo | componentType?: string; | Added| 20| ohos.accessibility | EventInfo | bundleName: string; | Added| 21| ohos.accessibility | EventInfo | windowUpdateType?: WindowUpdateType; | Added| 22| ohos.accessibility | EventInfo | type: EventType; | Added| 23| ohos.accessibility | EventInfo | constructor(jsonObject); | Added| 24| ohos.accessibility | AccessibilityAbilityInfo | readonly eventTypes: Array\<EventType>; | Added| 25| ohos.accessibility | AccessibilityAbilityInfo | readonly description: string; | Added| 26| ohos.accessibility | AccessibilityAbilityInfo | readonly capabilities: Array\<Capability>; | Added| 27| ohos.accessibility | AccessibilityAbilityInfo | readonly abilityTypes: Array\<AbilityType>; | Added| 28| ohos.accessibility | AccessibilityAbilityInfo | readonly bundleName: string; | Added| 29| ohos.accessibility | AccessibilityAbilityInfo | readonly name: string; | Added| 30| ohos.accessibility | AccessibilityAbilityInfo | readonly id: string; | Added| 31| ohos.accessibility | CaptionsStyle | windowColor: number \| string; | Added| 32| ohos.accessibility | CaptionsStyle | backgroundColor: number \| string; | Added| 33| ohos.accessibility | CaptionsStyle | fontEdgeType: CaptionsFontEdgeType; | Added| 34| ohos.accessibility | CaptionsStyle | fontColor: number \| string; | Added| 35| ohos.accessibility | CaptionsStyle | fontScale: number; | Added| 36| ohos.accessibility | CaptionsStyle | fontFamily: CaptionsFontFamily; | Added| 37| ohos.accessibility | CaptionsManager | off(type: 'styleChange', callback?: Callback\<CaptionsStyle>): void; | Added| 38| ohos.accessibility | CaptionsManager | off(type: 'enableChange', callback?: Callback\<boolean>): void; | Added| 39| ohos.accessibility | CaptionsManager | on(type: 'styleChange', callback: Callback\<CaptionsStyle>): void; | Added| 40| ohos.accessibility | CaptionsManager | on(type: 'enableChange', callback: Callback\<boolean>): void; | Added| 41| ohos.accessibility | CaptionsManager | style: CaptionsStyle; | Added| 42| ohos.accessibility | CaptionsManager | enabled: boolean; | Added| 43| ohos.accessibility | accessibility | getCaptionsManager(): CaptionsManager; | Added| 44| ohos.accessibility | accessibility | off(type: 'touchGuideStateChange', callback?: Callback\<boolean>): void; | Added| 45| ohos.accessibility | accessibility | off(type: 'accessibilityStateChange', callback?: Callback\<boolean>): void; | Added| 46| ohos.accessibility | accessibility | on(type: 'touchGuideStateChange', callback: Callback\<boolean>): void; | Added| 47| ohos.accessibility | accessibility | on(type: 'accessibilityStateChange', callback: Callback\<boolean>): void; | Added| 48| ohos.accessibility | accessibility | sendEvent(event: EventInfo, callback: AsyncCallback\<void>): void;<br>sendEvent(event: EventInfo): Promise\<void>; | Added| 49| ohos.accessibility | accessibility | getAbilityLists(abilityType: AbilityType, stateType: AbilityState, callback: AsyncCallback\<Array\<AccessibilityAbilityInfo>>): void;<br>getAbilityLists(abilityType: AbilityType, stateType: AbilityState): Promise\<Array\<AccessibilityAbilityInfo>>; | Added| 50| ohos.accessibility | accessibility | isOpenTouchGuide(callback: AsyncCallback\<boolean>): void;<br>isOpenTouchGuide(): Promise\<boolean>; | Added| 51| ohos.accessibility | accessibility | isOpenAccessibility(callback: AsyncCallback\<boolean>): void;<br>isOpenAccessibility(): Promise\<boolean>; | Added| 52