1| 操作 | 旧版本 | 新版本 | d.ts文件 | 2| ---- | ------ | ------ | -------- | 3|新增|NA|模块名: ohos.accessibility.config<br>类名: config|@ohos.accessibility.config.d.ts| 4|新增|NA|模块名: ohos.accessibility.config<br>类名: DaltonizationColorFilter<br>方法 or 属性: type DaltonizationColorFilter = 'Normal' \| 'Protanomaly' \| 'Deuteranomaly' \| 'Tritanomaly';|@ohos.accessibility.config.d.ts| 5|新增|NA|模块名: ohos.accessibility.config<br>类名: DaltonizationColorFilter<br>方法 or 属性: type DaltonizationColorFilter = 'Normal' \| 'Protanomaly' \| 'Deuteranomaly' \| 'Tritanomaly';|@ohos.accessibility.config.d.ts| 6|新增|NA|模块名: ohos.accessibility.config<br>类名: DaltonizationColorFilter<br>方法 or 属性: type DaltonizationColorFilter = 'Normal' \| 'Protanomaly' \| 'Deuteranomaly' \| 'Tritanomaly';|@ohos.accessibility.config.d.ts| 7|新增|NA|模块名: ohos.accessibility.config<br>类名: DaltonizationColorFilter<br>方法 or 属性: type DaltonizationColorFilter = 'Normal' \| 'Protanomaly' \| 'Deuteranomaly' \| 'Tritanomaly';|@ohos.accessibility.config.d.ts| 8|新增|NA|模块名: ohos.accessibility.config<br>类名: config<br>方法 or 属性: var highContrastText: Config\<boolean>;|@ohos.accessibility.config.d.ts| 9|新增|NA|模块名: ohos.accessibility.config<br>类名: config<br>方法 or 属性: var invertColor: Config\<boolean>;|@ohos.accessibility.config.d.ts| 10|新增|NA|模块名: ohos.accessibility.config<br>类名: config<br>方法 or 属性: var daltonizationColorFilter: Config\<DaltonizationColorFilter>;|@ohos.accessibility.config.d.ts| 11|新增|NA|模块名: ohos.accessibility.config<br>类名: config<br>方法 or 属性: var contentTimeout: Config\<number>;|@ohos.accessibility.config.d.ts| 12|新增|NA|模块名: ohos.accessibility.config<br>类名: config<br>方法 or 属性: var animationOff: Config\<boolean>;|@ohos.accessibility.config.d.ts| 13|新增|NA|模块名: ohos.accessibility.config<br>类名: config<br>方法 or 属性: var brightnessDiscount: Config\<number>;|@ohos.accessibility.config.d.ts| 14|新增|NA|模块名: ohos.accessibility.config<br>类名: config<br>方法 or 属性: var mouseKey: Config\<boolean>;|@ohos.accessibility.config.d.ts| 15|新增|NA|模块名: ohos.accessibility.config<br>类名: config<br>方法 or 属性: var mouseAutoClick: Config\<number>;|@ohos.accessibility.config.d.ts| 16|新增|NA|模块名: ohos.accessibility.config<br>类名: config<br>方法 or 属性: var shortkey: Config\<boolean>;|@ohos.accessibility.config.d.ts| 17|新增|NA|模块名: ohos.accessibility.config<br>类名: config<br>方法 or 属性: var shortkeyTarget: Config\<string>;|@ohos.accessibility.config.d.ts| 18|新增|NA|模块名: ohos.accessibility.config<br>类名: config<br>方法 or 属性: var captions: Config\<boolean>;|@ohos.accessibility.config.d.ts| 19|新增|NA|模块名: ohos.accessibility.config<br>类名: config<br>方法 or 属性: var captionsStyle: Config\<accessibility.CaptionsStyle>;|@ohos.accessibility.config.d.ts| 20|新增|NA|模块名: ohos.accessibility.config<br>类名: config<br>方法 or 属性: function enableAbility(name: string, capability: Array\<accessibility.Capability>): Promise\<void>;|@ohos.accessibility.config.d.ts| 21|新增|NA|模块名: ohos.accessibility.config<br>类名: config<br>方法 or 属性: function enableAbility(name: string, capability: Array\<accessibility.Capability>, callback: AsyncCallback\<void>): void;|@ohos.accessibility.config.d.ts| 22|新增|NA|模块名: ohos.accessibility.config<br>类名: config<br>方法 or 属性: function disableAbility(name: string): Promise\<void>;|@ohos.accessibility.config.d.ts| 23|新增|NA|模块名: ohos.accessibility.config<br>类名: config<br>方法 or 属性: function disableAbility(name: string, callback: AsyncCallback\<void>): void;|@ohos.accessibility.config.d.ts| 24|新增|NA|模块名: ohos.accessibility.config<br>类名: config<br>方法 or 属性: function on(type: 'enabledAccessibilityExtensionListChange', callback: Callback\<void>): void;|@ohos.accessibility.config.d.ts| 25|新增|NA|模块名: ohos.accessibility.config<br>类名: config<br>方法 or 属性: function off(type: 'enabledAccessibilityExtensionListChange', callback?: Callback\<void>): void;|@ohos.accessibility.config.d.ts| 26|新增|NA|模块名: ohos.accessibility.config<br>类名: Config|@ohos.accessibility.config.d.ts| 27|新增|NA|模块名: ohos.accessibility.config<br>类名: Config<br>方法 or 属性: set(value: T): Promise\<void>;|@ohos.accessibility.config.d.ts| 28|新增|NA|模块名: ohos.accessibility.config<br>类名: Config<br>方法 or 属性: set(value: T, callback: AsyncCallback\<void>): void;|@ohos.accessibility.config.d.ts| 29|新增|NA|模块名: ohos.accessibility.config<br>类名: Config<br>方法 or 属性: get(): Promise\<T>;|@ohos.accessibility.config.d.ts| 30|新增|NA|模块名: ohos.accessibility.config<br>类名: Config<br>方法 or 属性: get(callback: AsyncCallback\<T>): void;|@ohos.accessibility.config.d.ts| 31|新增|NA|模块名: ohos.accessibility.config<br>类名: Config<br>方法 or 属性: on(callback: Callback\<T>): void;|@ohos.accessibility.config.d.ts| 32|新增|NA|模块名: ohos.accessibility.config<br>类名: Config<br>方法 or 属性: off(callback?: Callback\<T>): void;|@ohos.accessibility.config.d.ts| 33|新增|NA|类名:AbilityType<br>方法or属性:type AbilityType = 'audible' \| 'generic' \| 'haptic' \| 'spoken' \| 'visual' \| 'all';|@ohos.accessibility.d.ts| 34|新增|NA|类名:AbilityType<br>方法or属性:type AbilityType = 'audible' \| 'generic' \| 'haptic' \| 'spoken' \| 'visual' \| 'all';|@ohos.accessibility.d.ts| 35|新增|NA|类名:AbilityType<br>方法or属性:type AbilityType = 'audible' \| 'generic' \| 'haptic' \| 'spoken' \| 'visual' \| 'all';|@ohos.accessibility.d.ts| 36|新增|NA|类名:AbilityType<br>方法or属性:type AbilityType = 'audible' \| 'generic' \| 'haptic' \| 'spoken' \| 'visual' \| 'all';|@ohos.accessibility.d.ts| 37|新增|NA|类名:AbilityType<br>方法or属性:type AbilityType = 'audible' \| 'generic' \| 'haptic' \| 'spoken' \| 'visual' \| 'all';|@ohos.accessibility.d.ts| 38|新增|NA|类名:AbilityType<br>方法or属性:type AbilityType = 'audible' \| 'generic' \| 'haptic' \| 'spoken' \| 'visual' \| 'all';|@ohos.accessibility.d.ts| 39|新增|NA|类名:accessibility<br>方法or属性:function getAccessibilityExtensionList(abilityType: AbilityType, stateType: AbilityState): Promise\<Array\<AccessibilityAbilityInfo>>;|@ohos.accessibility.d.ts| 40|新增|NA|类名:accessibility<br>方法or属性:function getAccessibilityExtensionList(abilityType: AbilityType, stateType: AbilityState, callback: AsyncCallback\<Array\<AccessibilityAbilityInfo>>): void;|@ohos.accessibility.d.ts| 41|新增|NA|类名:accessibility<br>方法or属性:function sendAccessibilityEvent(event: EventInfo, callback: AsyncCallback\<void>): void;|@ohos.accessibility.d.ts| 42|新增|NA|类名:accessibility<br>方法or属性:function sendAccessibilityEvent(event: EventInfo): Promise\<void>;|@ohos.accessibility.d.ts| 43|新增|NA|模块名: ohos.accessibility<br>类名: AccessibilityAbilityInfo<br>方法 or 属性:readonly targetBundleNames: Array\<string>;|@ohos.accessibility.d.ts| 44|新增|NA|类名:AccessibilityAbilityInfo<br>方法or属性:readonly targetBundleNames: Array\<string>;|@ohos.accessibility.d.ts| 45|新增|NA|模块名: ohos.accessibility.GesturePath<br>类名: GesturePath|@ohos.accessibility.GesturePath.d.ts| 46|新增|NA|模块名: ohos.accessibility.GesturePath<br>类名: GesturePath<br>方法 or 属性: constructor(durationTime: number);|@ohos.accessibility.GesturePath.d.ts| 47|新增|NA|模块名: ohos.accessibility.GesturePath<br>类名: GesturePath<br>方法 or 属性: points: Array\<GesturePoint>;|@ohos.accessibility.GesturePath.d.ts| 48|新增|NA|模块名: ohos.accessibility.GesturePath<br>类名: GesturePath<br>方法 or 属性: durationTime: number;|@ohos.accessibility.GesturePath.d.ts| 49|新增|NA|模块名: ohos.accessibility.GesturePoint<br>类名: GesturePoint|@ohos.accessibility.GesturePoint.d.ts| 50|新增|NA|模块名: ohos.accessibility.GesturePoint<br>类名: GesturePoint<br>方法 or 属性: constructor(positionX: number, positionY: number);|@ohos.accessibility.GesturePoint.d.ts| 51|新增|NA|模块名: ohos.accessibility.GesturePoint<br>类名: GesturePoint<br>方法 or 属性: positionX: number;|@ohos.accessibility.GesturePoint.d.ts| 52|新增|NA|模块名: ohos.accessibility.GesturePoint<br>类名: GesturePoint<br>方法 or 属性: positionY: number;|@ohos.accessibility.GesturePoint.d.ts| 53|新增|NA|模块名: ohos.application.AccessibilityExtensionAbility<br>类名: AccessibilityExtensionAbility|@ohos.application.AccessibilityExtensionAbility.d.ts| 54|新增|NA|模块名: ohos.application.AccessibilityExtensionAbility<br>类名: AccessibilityExtensionAbility<br>方法 or 属性: context: AccessibilityExtensionContext;|@ohos.application.AccessibilityExtensionAbility.d.ts| 55|新增|NA|模块名: ohos.application.AccessibilityExtensionAbility<br>类名: AccessibilityExtensionAbility<br>方法 or 属性: onConnect(): void;|@ohos.application.AccessibilityExtensionAbility.d.ts| 56|新增|NA|模块名: ohos.application.AccessibilityExtensionAbility<br>类名: AccessibilityExtensionAbility<br>方法 or 属性: onDisconnect(): void;|@ohos.application.AccessibilityExtensionAbility.d.ts| 57|新增|NA|模块名: ohos.application.AccessibilityExtensionAbility<br>类名: AccessibilityExtensionAbility<br>方法 or 属性: onAccessibilityEvent(event: AccessibilityEvent): void;|@ohos.application.AccessibilityExtensionAbility.d.ts| 58|新增|NA|模块名: ohos.application.AccessibilityExtensionAbility<br>类名: AccessibilityExtensionAbility<br>方法 or 属性: onKeyEvent(keyEvent: KeyEvent): boolean;|@ohos.application.AccessibilityExtensionAbility.d.ts| 59|新增|NA|模块名: ohos.application.AccessibilityExtensionAbility<br>类名: AccessibilityEvent|@ohos.application.AccessibilityExtensionAbility.d.ts| 60|新增|NA|模块名: ohos.application.AccessibilityExtensionAbility<br>类名: AccessibilityEvent<br>方法 or 属性: eventType: accessibility.EventType \| accessibility.WindowUpdateType \|<br> TouchGuideType \| GestureType \| PageUpdateType;|@ohos.application.AccessibilityExtensionAbility.d.ts| 61|新增|NA|模块名: ohos.application.AccessibilityExtensionAbility<br>类名: AccessibilityEvent<br>方法 or 属性: target?: AccessibilityElement;|@ohos.application.AccessibilityExtensionAbility.d.ts| 62|新增|NA|模块名: ohos.application.AccessibilityExtensionAbility<br>类名: AccessibilityEvent<br>方法 or 属性: timeStamp?: number;|@ohos.application.AccessibilityExtensionAbility.d.ts| 63|新增|NA|模块名: AccessibilityExtensionContext<br>类名: AccessibilityExtensionContext|AccessibilityExtensionContext.d.ts| 64|新增|NA|模块名: AccessibilityExtensionContext<br>类名: AccessibilityExtensionContext<br>方法 or 属性: setTargetBundleName(targetNames: Array\<string>): Promise\<void>;|AccessibilityExtensionContext.d.ts| 65|新增|NA|模块名: AccessibilityExtensionContext<br>类名: AccessibilityExtensionContext<br>方法 or 属性: setTargetBundleName(targetNames: Array\<string>, callback: AsyncCallback\<void>): void;|AccessibilityExtensionContext.d.ts| 66|新增|NA|模块名: AccessibilityExtensionContext<br>类名: AccessibilityExtensionContext<br>方法 or 属性: getFocusElement(isAccessibilityFocus?: boolean): Promise\<AccessibilityElement>;|AccessibilityExtensionContext.d.ts| 67|新增|NA|模块名: AccessibilityExtensionContext<br>类名: AccessibilityExtensionContext<br>方法 or 属性: getFocusElement(callback: AsyncCallback\<AccessibilityElement>): void;|AccessibilityExtensionContext.d.ts| 68|新增|NA|模块名: AccessibilityExtensionContext<br>类名: AccessibilityExtensionContext<br>方法 or 属性: getFocusElement(isAccessibilityFocus: boolean, callback: AsyncCallback\<AccessibilityElement>): void;|AccessibilityExtensionContext.d.ts| 69|新增|NA|模块名: AccessibilityExtensionContext<br>类名: AccessibilityExtensionContext<br>方法 or 属性: getWindowRootElement(windowId?: number): Promise\<AccessibilityElement>;|AccessibilityExtensionContext.d.ts| 70|新增|NA|模块名: AccessibilityExtensionContext<br>类名: AccessibilityExtensionContext<br>方法 or 属性: getWindowRootElement(callback: AsyncCallback\<AccessibilityElement>): void;|AccessibilityExtensionContext.d.ts| 71|新增|NA|模块名: AccessibilityExtensionContext<br>类名: AccessibilityExtensionContext<br>方法 or 属性: getWindowRootElement(windowId: number, callback: AsyncCallback\<AccessibilityElement>): void;|AccessibilityExtensionContext.d.ts| 72|新增|NA|模块名: AccessibilityExtensionContext<br>类名: AccessibilityExtensionContext<br>方法 or 属性: getWindows(displayId?: number): Promise\<Array\<AccessibilityElement>>;|AccessibilityExtensionContext.d.ts| 73|新增|NA|模块名: AccessibilityExtensionContext<br>类名: AccessibilityExtensionContext<br>方法 or 属性: getWindows(callback: AsyncCallback\<Array\<AccessibilityElement>>): void;|AccessibilityExtensionContext.d.ts| 74|新增|NA|模块名: AccessibilityExtensionContext<br>类名: AccessibilityExtensionContext<br>方法 or 属性: getWindows(displayId: number, callback: AsyncCallback\<Array\<AccessibilityElement>>): void;|AccessibilityExtensionContext.d.ts| 75|新增|NA|模块名: AccessibilityExtensionContext<br>类名: AccessibilityExtensionContext<br>方法 or 属性: injectGesture(gesturePath: GesturePath): Promise\<void>;|AccessibilityExtensionContext.d.ts| 76|新增|NA|模块名: AccessibilityExtensionContext<br>类名: AccessibilityExtensionContext<br>方法 or 属性: injectGesture(gesturePath: GesturePath, callback: AsyncCallback\<void>): void;|AccessibilityExtensionContext.d.ts| 77|新增|NA|模块名: AccessibilityExtensionContext<br>类名: AccessibilityElement|AccessibilityExtensionContext.d.ts| 78|新增|NA|模块名: AccessibilityExtensionContext<br>类名: AccessibilityElement<br>方法 or 属性: attributeNames\<T extends keyof ElementAttributeValues>(): Promise\<Array\<T>>;|AccessibilityExtensionContext.d.ts| 79|新增|NA|模块名: AccessibilityExtensionContext<br>类名: AccessibilityElement<br>方法 or 属性: attributeNames\<T extends keyof ElementAttributeValues>(callback: AsyncCallback\<Array\<T>>): void;|AccessibilityExtensionContext.d.ts| 80|新增|NA|模块名: AccessibilityExtensionContext<br>类名: AccessibilityElement<br>方法 or 属性: attributeValue\<T extends keyof ElementAttributeValues>(attributeName: T): Promise\<ElementAttributeValues[T]>;|AccessibilityExtensionContext.d.ts| 81|新增|NA|模块名: AccessibilityExtensionContext<br>类名: AccessibilityElement<br>方法 or 属性: attributeValue\<T extends keyof ElementAttributeValues>(attributeName: T,<br> callback: AsyncCallback\<ElementAttributeValues[T]>): void;|AccessibilityExtensionContext.d.ts| 82|新增|NA|模块名: AccessibilityExtensionContext<br>类名: AccessibilityElement<br>方法 or 属性: actionNames(): Promise\<Array\<string>>;|AccessibilityExtensionContext.d.ts| 83|新增|NA|模块名: AccessibilityExtensionContext<br>类名: AccessibilityElement<br>方法 or 属性: actionNames(callback: AsyncCallback\<Array\<string>>): void;|AccessibilityExtensionContext.d.ts| 84|新增|NA|模块名: AccessibilityExtensionContext<br>类名: AccessibilityElement<br>方法 or 属性: performAction(actionName: string, parameters?: object): Promise\<void>;|AccessibilityExtensionContext.d.ts| 85|新增|NA|模块名: AccessibilityExtensionContext<br>类名: AccessibilityElement<br>方法 or 属性: performAction(actionName: string, callback: AsyncCallback\<void>): void;|AccessibilityExtensionContext.d.ts| 86|新增|NA|模块名: AccessibilityExtensionContext<br>类名: AccessibilityElement<br>方法 or 属性: performAction(actionName: string, parameters: object, callback: AsyncCallback\<void>): void;|AccessibilityExtensionContext.d.ts| 87|新增|NA|模块名: AccessibilityExtensionContext<br>类名: AccessibilityElement<br>方法 or 属性: findElement(type: 'content', condition: string): Promise\<Array\<AccessibilityElement>>;|AccessibilityExtensionContext.d.ts| 88|新增|NA|模块名: AccessibilityExtensionContext<br>类名: AccessibilityElement<br>方法 or 属性: findElement(type: 'content', condition: string, callback: AsyncCallback\<Array\<AccessibilityElement>>): void|AccessibilityExtensionContext.d.ts| 89|新增|NA|模块名: AccessibilityExtensionContext<br>类名: AccessibilityElement<br>方法 or 属性: findElement(type: 'focusType', condition: FocusType): Promise\<AccessibilityElement>;|AccessibilityExtensionContext.d.ts| 90|新增|NA|模块名: AccessibilityExtensionContext<br>类名: AccessibilityElement<br>方法 or 属性: findElement(type: 'focusType', condition: FocusType, callback: AsyncCallback\<AccessibilityElement>): void|AccessibilityExtensionContext.d.ts| 91|新增|NA|模块名: AccessibilityExtensionContext<br>类名: AccessibilityElement<br>方法 or 属性: findElement(type: 'focusDirection', condition: FocusDirection): Promise\<AccessibilityElement>;|AccessibilityExtensionContext.d.ts| 92|新增|NA|模块名: AccessibilityExtensionContext<br>类名: AccessibilityElement<br>方法 or 属性: findElement(type: 'focusDirection', condition: FocusDirection, callback: AsyncCallback\<AccessibilityElement>): void|AccessibilityExtensionContext.d.ts| 93|新增|NA|模块名: AccessibilityExtensionContext<br>类名: Rect|AccessibilityExtensionContext.d.ts| 94|新增|NA|模块名: AccessibilityExtensionContext<br>类名: Rect<br>方法 or 属性: left: number;|AccessibilityExtensionContext.d.ts| 95|新增|NA|模块名: AccessibilityExtensionContext<br>类名: Rect<br>方法 or 属性: top: number;|AccessibilityExtensionContext.d.ts| 96|新增|NA|模块名: AccessibilityExtensionContext<br>类名: Rect<br>方法 or 属性: width: number;|AccessibilityExtensionContext.d.ts| 97|新增|NA|模块名: AccessibilityExtensionContext<br>类名: Rect<br>方法 or 属性: height: number;|AccessibilityExtensionContext.d.ts| 98|废弃版本有变化|类名:accessibility<br>方法 or 属性:function getAbilityLists(abilityType: AbilityType, stateType: AbilityState,<br><br> callback: AsyncCallback\<Array\<AccessibilityAbilityInfo>>): void;<br>废弃版本:N/A|类名:accessibility<br>方法 or 属性:function getAbilityLists(abilityType: AbilityType, stateType: AbilityState,<br><br> callback: AsyncCallback\<Array\<AccessibilityAbilityInfo>>): void;<br>废弃版本:9<br>代替接口:ohos.accessibility|@ohos.accessibility.d.ts| 99|废弃版本有变化|类名:accessibility<br>方法 or 属性:function getAbilityLists(abilityType: AbilityType,<br><br> stateType: AbilityState): Promise\<Array\<AccessibilityAbilityInfo>>;<br>废弃版本:N/A|类名:accessibility<br>方法 or 属性:function getAbilityLists(abilityType: AbilityType,<br><br> stateType: AbilityState): Promise\<Array\<AccessibilityAbilityInfo>>;<br>废弃版本:9<br>代替接口:ohos.accessibility|@ohos.accessibility.d.ts| 100|废弃版本有变化|类名:accessibility<br>方法 or 属性:function sendEvent(event: EventInfo, callback: AsyncCallback\<void>): void;<br>废弃版本:N/A|类名:accessibility<br>方法 or 属性:function sendEvent(event: EventInfo, callback: AsyncCallback\<void>): void;<br>废弃版本:9<br>代替接口:ohos.accessibility|@ohos.accessibility.d.ts| 101|废弃版本有变化|类名:accessibility<br>方法 or 属性:function sendEvent(event: EventInfo): Promise\<void>;<br>废弃版本:N/A|类名:accessibility<br>方法 or 属性:function sendEvent(event: EventInfo): Promise\<void>;<br>废弃版本:9<br>代替接口:ohos.accessibility|@ohos.accessibility.d.ts| 102|新增(错误码)|NA|类名:accessibility<br>方法 or 属性:function on(type: 'accessibilityStateChange', callback: Callback\<boolean>): void;<br>错误码内容: 401|@ohos.accessibility.d.ts| 103|新增(错误码)|NA|类名:accessibility<br>方法 or 属性:function on(type: 'touchGuideStateChange', callback: Callback\<boolean>): void;<br>错误码内容: 401|@ohos.accessibility.d.ts| 104|新增(错误码)|NA|类名:accessibility<br>方法 or 属性:function off(type: 'accessibilityStateChange', callback?: Callback\<boolean>): void;<br>错误码内容: 401|@ohos.accessibility.d.ts| 105|新增(错误码)|NA|类名:accessibility<br>方法 or 属性:function off(type: 'touchGuideStateChange', callback?: Callback\<boolean>): void;<br>错误码内容: 401|@ohos.accessibility.d.ts| 106|新增(错误码)|NA|类名:CaptionsManager<br>方法 or 属性:on(type: 'enableChange', callback: Callback\<boolean>): void;<br>错误码内容: 401|@ohos.accessibility.d.ts| 107|新增(错误码)|NA|类名:CaptionsManager<br>方法 or 属性:on(type: 'styleChange', callback: Callback\<CaptionsStyle>): void;<br>错误码内容: 401|@ohos.accessibility.d.ts| 108|新增(错误码)|NA|类名:CaptionsManager<br>方法 or 属性:off(type: 'enableChange', callback?: Callback\<boolean>): void;<br>错误码内容: 401|@ohos.accessibility.d.ts| 109|新增(错误码)|NA|类名:CaptionsManager<br>方法 or 属性:off(type: 'styleChange', callback?: Callback\<CaptionsStyle>): void;<br>错误码内容: 401|@ohos.accessibility.d.ts| 110