# 无障碍子系统JS API变更 OpenHarmony 3.2 Beta3版本相较于OpenHarmony 3.2 Beta2版本,无障碍子系统的API变更如下: ## 接口变更 | 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | |---|---|---|---| | AccessibilityExtensionContext | AccessibilityExtensionContext | injectGesture(gesturePath: GesturePath): Promise\;
injectGesture(gesturePath: GesturePath, callback: AsyncCallback\): void; | 新增 | | ohos.accessibility.config | Config | off(callback?: Callback\): void; | 新增 | | ohos.accessibility.config | Config | on(callback: Callback\): void; | 新增 | | ohos.accessibility.config | Config | get(): Promise\;
get(callback: AsyncCallback\): void; | 新增 | | ohos.accessibility.config | Config | set(value: T): Promise\;
set(value: T, callback: AsyncCallback\): void; | 新增 | | ohos.accessibility.config | config | function off(type: 'enableAbilityListsStateChanged', callback?: Callback\): void; | 新增 | | ohos.accessibility.config | config | function on(type: 'enableAbilityListsStateChanged', callback: Callback\): void; | 新增 | | ohos.accessibility.config | config | function disableAbility(name: string): Promise\;
function disableAbility(name: string, callback: AsyncCallback\): void; | 新增 | | ohos.accessibility.config | config | function enableAbility(name: string, capability: Array\): Promise\;
function enableAbility(name: string, capability: Array\, callback: AsyncCallback\): void; | 新增 | | ohos.accessibility.config | config | var captionsStyle: Config\; | 新增 | | ohos.accessibility.config | config | var captions: Config\; | 新增 | | ohos.accessibility.config | config | var shortkeyTarget: Config\; | 新增 | | ohos.accessibility.config | config | var shortkey: Config\; | 新增 | | ohos.accessibility.config | config | var mouseAutoClick: Config\; | 新增 | | ohos.accessibility.config | config | var mouseKey: Config\; | 新增 | | ohos.accessibility.config | config | var brightnessDiscount: Config\; | 新增 | | ohos.accessibility.config | config | var animationOff: Config\; | 新增 | | ohos.accessibility.config | config | var contentTimeout: Config\; | 新增 | | ohos.accessibility.config | config | var daltonizationColorFilter: Config\; | 新增 | | ohos.accessibility.config | config | var invertColor: Config\; | 新增 | | ohos.accessibility.config | config | var highContrastText: Config\; | 新增 | | AccessibilityExtensionContext | AccessibilityExtensionContext | gestureInject(gesturePath: GesturePath, listener: Callback\): Promise\;
gestureInject(gesturePath: GesturePath, listener: Callback\, callback: AsyncCallback\): void; | 删除 | | AccessibilityExtensionContext | AccessibilityExtensionContext | setEventTypeFilter(type: Array\): Promise\;
setEventTypeFilter(type: Array\, callback: AsyncCallback\): boolean; | 删除 |