harmony 鸿蒙无障碍子系统JS API变更

  • 2022-12-22
  • 浏览 (656)

无障碍子系统JS API变更

OpenHarmony 3.2 Beta3版本相较于OpenHarmony 3.2 Beta2版本,无障碍子系统的API变更如下:

接口变更

模块名 类名 方法/属性/枚举/常量 变更类型
AccessibilityExtensionContext AccessibilityExtensionContext injectGesture(gesturePath: GesturePath): Promise<void>;
injectGesture(gesturePath: GesturePath, callback: AsyncCallback<void>): void;
新增
ohos.accessibility.config Config off(callback?: Callback<T>): void; 新增
ohos.accessibility.config Config on(callback: Callback<T>): void; 新增
ohos.accessibility.config Config get(): Promise<T>;
get(callback: AsyncCallback<T>): void;
新增
ohos.accessibility.config Config set(value: T): Promise<void>;
set(value: T, callback: AsyncCallback<void>): void;
新增
ohos.accessibility.config config function off(type: ‘enableAbilityListsStateChanged’, callback?: Callback<void>): void; 新增
ohos.accessibility.config config function on(type: ‘enableAbilityListsStateChanged’, callback: Callback<void>): void; 新增
ohos.accessibility.config config function disableAbility(name: string): Promise<void>;
function disableAbility(name: string, callback: AsyncCallback<void>): void;
新增
ohos.accessibility.config config function enableAbility(name: string, capability: Array<accessibility.Capability>): Promise<void>;
function enableAbility(name: string, capability: Array<accessibility.Capability>, callback: AsyncCallback<void>): void;
新增
ohos.accessibility.config config var captionsStyle: Config<accessibility.CaptionsStyle>; 新增
ohos.accessibility.config config var captions: Config<boolean>; 新增
ohos.accessibility.config config var shortkeyTarget: Config<string>; 新增
ohos.accessibility.config config var shortkey: Config<boolean>; 新增
ohos.accessibility.config config var mouseAutoClick: Config<number>; 新增
ohos.accessibility.config config var mouseKey: Config<boolean>; 新增
ohos.accessibility.config config var brightnessDiscount: Config<number>; 新增
ohos.accessibility.config config var animationOff: Config<boolean>; 新增
ohos.accessibility.config config var contentTimeout: Config<number>; 新增
ohos.accessibility.config config var daltonizationColorFilter: Config<DaltonizationColorFilter>; 新增
ohos.accessibility.config config var invertColor: Config<boolean>; 新增
ohos.accessibility.config config var highContrastText: Config<boolean>; 新增
AccessibilityExtensionContext AccessibilityExtensionContext gestureInject(gesturePath: GesturePath, listener: Callback<boolean>): Promise<boolean>;
gestureInject(gesturePath: GesturePath, listener: Callback<boolean>, callback: AsyncCallback<boolean>): void;
删除
AccessibilityExtensionContext AccessibilityExtensionContext setEventTypeFilter(type: Array<accessibility.EventType>): Promise<boolean>;
setEventTypeFilter(type: Array<accessibility.EventType>, callback: AsyncCallback<boolean>): boolean;
删除

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Readme

harmony 鸿蒙元能力子系统JS API变更

harmony 鸿蒙帐号子系统JS API变更

harmony 鸿蒙ArkUI子系统JS API变更

harmony 鸿蒙电源服务子系统JS API变更

harmony 鸿蒙包管理子系统JS API变更

harmony 鸿蒙基础通信子系统JS API变更

harmony 鸿蒙公共基础库子系统JS API变更

harmony 鸿蒙DFX子系统JS API变更

harmony 鸿蒙分布式数据管理子系统JS API变更

0  赞