• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# JS API Changes of the Accessibility Subsystem
2
3The table below lists the APIs changes of the accessibility subsystem in OpenHarmony 3.2 Beta3 over OpenHarmony 3.2 Beta2.
4
5## API Changes
6
7| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
8|---|---|---|---|
9| AccessibilityExtensionContext | AccessibilityExtensionContext | injectGesture(gesturePath: GesturePath): Promise\<void>;<br>injectGesture(gesturePath: GesturePath, callback: AsyncCallback\<void>): void;                                                                                  | Added|
10| ohos.accessibility.config     | Config                        | off(callback?: Callback\<T>): void;                                                                                                                                                                                          | Added|
11| ohos.accessibility.config     | Config                        | on(callback: Callback\<T>): void;                                                                                                                                                                                            | Added|
12| ohos.accessibility.config     | Config                        | get(): Promise\<T>;<br>get(callback: AsyncCallback\<T>): void;                                                                                                                                                              | Added|
13| ohos.accessibility.config     | Config                        | set(value: T): Promise\<void>;<br>set(value: T, callback: AsyncCallback\<void>): void;                                                                                                                                      | Added|
14| ohos.accessibility.config     | config                        | function off(type: 'enableAbilityListsStateChanged', callback?: Callback\<void>): void;                                                                                                                                      | Added|
15| ohos.accessibility.config     | config                        | function on(type: 'enableAbilityListsStateChanged', callback: Callback\<void>): void;                                                                                                                                        | Added|
16| ohos.accessibility.config     | config                        | function disableAbility(name: string): Promise\<void>;<br>function disableAbility(name: string, callback: AsyncCallback\<void>): void;                                                                                      | Added|
17| ohos.accessibility.config     | config                        | function enableAbility(name: string, capability: Array\<accessibility.Capability>): Promise\<void>;<br>function enableAbility(name: string, capability: Array\<accessibility.Capability>, callback: AsyncCallback\<void>): void; | Added|
18| ohos.accessibility.config     | config                        | var captionsStyle: Config\<accessibility.CaptionsStyle>;                                                                                                                                                                     | Added|
19| ohos.accessibility.config     | config                        | var captions: Config\<boolean>;                                                                                                                                                                                              | Added|
20| ohos.accessibility.config     | config                        | var shortkeyTarget: Config\<string>;                                                                                                                                                                                         | Added|
21| ohos.accessibility.config     | config                        | var shortkey: Config\<boolean>;                                                                                                                                                                                              | Added|
22| ohos.accessibility.config     | config                        | var mouseAutoClick: Config\<number>;                                                                                                                                                                                         | Added|
23| ohos.accessibility.config     | config                        | var mouseKey: Config\<boolean>;                                                                                                                                                                                              | Added|
24| ohos.accessibility.config     | config                        | var brightnessDiscount: Config\<number>;                                                                                                                                                                                     | Added|
25| ohos.accessibility.config     | config                        | var animationOff: Config\<boolean>;                                                                                                                                                                                          | Added|
26| ohos.accessibility.config     | config                        | var contentTimeout: Config\<number>;                                                                                                                                                                                         | Added|
27| ohos.accessibility.config     | config                        | var daltonizationColorFilter: Config\<DaltonizationColorFilter>;                                                                                                                                                             | Added|
28| ohos.accessibility.config     | config                        | var invertColor: Config\<boolean>;                                                                                                                                                                                           | Added|
29| ohos.accessibility.config     | config                        | var highContrastText: Config\<boolean>;                                                                                                                                                                                      | Added|
30| AccessibilityExtensionContext | AccessibilityExtensionContext | gestureInject(gesturePath: GesturePath, listener: Callback\<boolean>): Promise\<boolean>;<br>gestureInject(gesturePath: GesturePath, listener: Callback\<boolean>, callback: AsyncCallback\<boolean>): void; | Deleted|
31| AccessibilityExtensionContext | AccessibilityExtensionContext | setEventTypeFilter(type: Array\<accessibility.EventType>): Promise\<boolean>;<br>setEventTypeFilter(type: Array\<accessibility.EventType>, callback: AsyncCallback\<boolean>): boolean;                 | Deleted|
32