JS API Changes of the Accessibility Subsystem
The table below lists the APIs changes of the accessibility subsystem in OpenHarmony 3.2 Beta3 over OpenHarmony 3.2 Beta2.
API Changes
Module | Class | Method/Attribute/Enumeration/Constant | Change Type |
---|---|---|---|
AccessibilityExtensionContext | AccessibilityExtensionContext | injectGesture(gesturePath: GesturePath): Promise<void>; injectGesture(gesturePath: GesturePath, callback: AsyncCallback<void>): void; |
Added |
ohos.accessibility.config | Config | off(callback?: Callback<T>): void; | Added |
ohos.accessibility.config | Config | on(callback: Callback<T>): void; | Added |
ohos.accessibility.config | Config | get(): Promise<T>; get(callback: AsyncCallback<T>): void; |
Added |
ohos.accessibility.config | Config | set(value: T): Promise<void>; set(value: T, callback: AsyncCallback<void>): void; |
Added |
ohos.accessibility.config | config | function off(type: 'enableAbilityListsStateChanged', callback?: Callback<void>): void; | Added |
ohos.accessibility.config | config | function on(type: 'enableAbilityListsStateChanged', callback: Callback<void>): void; | Added |
ohos.accessibility.config | config | function disableAbility(name: string): Promise<void>; function disableAbility(name: string, callback: AsyncCallback<void>): void; |
Added |
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; |
Added |
ohos.accessibility.config | config | var captionsStyle: Config<accessibility.CaptionsStyle>; | Added |
ohos.accessibility.config | config | var captions: Config<boolean>; | Added |
ohos.accessibility.config | config | var shortkeyTarget: Config<string>; | Added |
ohos.accessibility.config | config | var shortkey: Config<boolean>; | Added |
ohos.accessibility.config | config | var mouseAutoClick: Config<number>; | Added |
ohos.accessibility.config | config | var mouseKey: Config<boolean>; | Added |
ohos.accessibility.config | config | var brightnessDiscount: Config<number>; | Added |
ohos.accessibility.config | config | var animationOff: Config<boolean>; | Added |
ohos.accessibility.config | config | var contentTimeout: Config<number>; | Added |
ohos.accessibility.config | config | var daltonizationColorFilter: Config<DaltonizationColorFilter>; | Added |
ohos.accessibility.config | config | var invertColor: Config<boolean>; | Added |
ohos.accessibility.config | config | var highContrastText: Config<boolean>; | Added |
AccessibilityExtensionContext | AccessibilityExtensionContext | gestureInject(gesturePath: GesturePath, listener: Callback<boolean>): Promise<boolean>; gestureInject(gesturePath: GesturePath, listener: Callback<boolean>, callback: AsyncCallback<boolean>): void; |
Deleted |
AccessibilityExtensionContext | AccessibilityExtensionContext | setEventTypeFilter(type: Array<accessibility.EventType>): Promise<boolean>; setEventTypeFilter(type: Array<accessibility.EventType>, callback: AsyncCallback<boolean>): boolean; |
Deleted |