• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# 无障碍子系统JS API变更
2
3OpenHarmony 3.2 Beta3版本相较于OpenHarmony 3.2 Beta2版本,无障碍子系统的API变更如下:
4
5## 接口变更
6
7| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
8|---|---|---|---|
9| AccessibilityExtensionContext | AccessibilityExtensionContext | injectGesture(gesturePath: GesturePath): Promise\<void>;<br>injectGesture(gesturePath: GesturePath, callback: AsyncCallback\<void>): void;                                                                                  | 新增 |
10| ohos.accessibility.config     | Config                        | off(callback?: Callback\<T>): void;                                                                                                                                                                                          | 新增 |
11| ohos.accessibility.config     | Config                        | on(callback: Callback\<T>): void;                                                                                                                                                                                            | 新增 |
12| ohos.accessibility.config     | Config                        | get(): Promise\<T>;<br>get(callback: AsyncCallback\<T>): void;                                                                                                                                                              | 新增 |
13| ohos.accessibility.config     | Config                        | set(value: T): Promise\<void>;<br>set(value: T, callback: AsyncCallback\<void>): void;                                                                                                                                      | 新增 |
14| ohos.accessibility.config     | config                        | function off(type: 'enableAbilityListsStateChanged', callback?: Callback\<void>): void;                                                                                                                                      | 新增 |
15| ohos.accessibility.config     | config                        | function on(type: 'enableAbilityListsStateChanged', callback: Callback\<void>): void;                                                                                                                                        | 新增 |
16| ohos.accessibility.config     | config                        | function disableAbility(name: string): Promise\<void>;<br>function disableAbility(name: string, callback: AsyncCallback\<void>): void;                                                                                      | 新增 |
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; | 新增 |
18| ohos.accessibility.config     | config                        | var captionsStyle: Config\<accessibility.CaptionsStyle>;                                                                                                                                                                     | 新增 |
19| ohos.accessibility.config     | config                        | var captions: Config\<boolean>;                                                                                                                                                                                              | 新增 |
20| ohos.accessibility.config     | config                        | var shortkeyTarget: Config\<string>;                                                                                                                                                                                         | 新增 |
21| ohos.accessibility.config     | config                        | var shortkey: Config\<boolean>;                                                                                                                                                                                              | 新增 |
22| ohos.accessibility.config     | config                        | var mouseAutoClick: Config\<number>;                                                                                                                                                                                         | 新增 |
23| ohos.accessibility.config     | config                        | var mouseKey: Config\<boolean>;                                                                                                                                                                                              | 新增 |
24| ohos.accessibility.config     | config                        | var brightnessDiscount: Config\<number>;                                                                                                                                                                                     | 新增 |
25| ohos.accessibility.config     | config                        | var animationOff: Config\<boolean>;                                                                                                                                                                                          | 新增 |
26| ohos.accessibility.config     | config                        | var contentTimeout: Config\<number>;                                                                                                                                                                                         | 新增 |
27| ohos.accessibility.config     | config                        | var daltonizationColorFilter: Config\<DaltonizationColorFilter>;                                                                                                                                                             | 新增 |
28| ohos.accessibility.config     | config                        | var invertColor: Config\<boolean>;                                                                                                                                                                                           | 新增 |
29| ohos.accessibility.config     | config                        | var highContrastText: Config\<boolean>;                                                                                                                                                                                      | 新增 |
30| AccessibilityExtensionContext | AccessibilityExtensionContext | gestureInject(gesturePath: GesturePath, listener: Callback\<boolean>): Promise\<boolean>;<br>gestureInject(gesturePath: GesturePath, listener: Callback\<boolean>, callback: AsyncCallback\<boolean>): void; | 删除 |
31| AccessibilityExtensionContext | AccessibilityExtensionContext | setEventTypeFilter(type: Array\<accessibility.EventType>): Promise\<boolean>;<br>setEventTypeFilter(type: Array\<accessibility.EventType>, callback: AsyncCallback\<boolean>): boolean;                 | 删除 |