harmony 鸿蒙js-apidiff-accessibility

  • 2023-06-24
  • 浏览 (547)

操作 旧版本 新版本 d.ts文件
新增 NA 类名:config;
方法or属性:function enableAbility(name: string, capability: Array<accessibility.Capability>): Promise<void>;
@ohos.accessibility.config.d.ts
新增 NA 类名:config;
方法or属性:function enableAbility(name: string, capability: Array<accessibility.Capability>, callback: AsyncCallback<void>): void;
@ohos.accessibility.config.d.ts
新增 NA 类名:config;
方法or属性:function disableAbility(name: string): Promise<void>;
@ohos.accessibility.config.d.ts
新增 NA 类名:config;
方法or属性:function disableAbility(name: string, callback: AsyncCallback<void>): void;
@ohos.accessibility.config.d.ts
新增 NA 类名:config;
方法or属性:function on(type: ‘enabledAccessibilityExtensionListChange’, callback: Callback<void>): void;
@ohos.accessibility.config.d.ts
新增 NA 类名:config;
方法or属性:function off(type: ‘enabledAccessibilityExtensionListChange’, callback?: Callback<void>): void;
@ohos.accessibility.config.d.ts
新增 NA 类名:config;
方法or属性:type DaltonizationColorFilter = ‘Normal’ |‘Protanomaly’ |‘Deuteranomaly’ |‘Tritanomaly’;
@ohos.accessibility.config.d.ts
新增 NA 类名:Config;
方法or属性:set(value: T): Promise<void>;
@ohos.accessibility.config.d.ts
新增 NA 类名:Config;
方法or属性:set(value: T, callback: AsyncCallback<void>): void;
@ohos.accessibility.config.d.ts
新增 NA 类名:Config;
方法or属性:get(): Promise<T>;
@ohos.accessibility.config.d.ts
新增 NA 类名:Config;
方法or属性:get(callback: AsyncCallback<T>): void;
@ohos.accessibility.config.d.ts
新增 NA 类名:Config;
方法or属性:on(callback: Callback<T>): void;
@ohos.accessibility.config.d.ts
新增 NA 类名:Config;
方法or属性:off(callback?: Callback<T>): void;
@ohos.accessibility.config.d.ts
新增 NA 类名:accessibility;
方法or属性:function getAccessibilityExtensionList(abilityType: AbilityType, stateType: AbilityState): Promise<Array<AccessibilityAbilityInfo>>;
@ohos.accessibility.d.ts
新增 NA 类名:accessibility;
方法or属性:function getAccessibilityExtensionList(abilityType: AbilityType, stateType: AbilityState, callback: AsyncCallback<Array<AccessibilityAbilityInfo>>): void;
@ohos.accessibility.d.ts
新增 NA 类名:accessibility;
方法or属性:function sendAccessibilityEvent(event: EventInfo, callback: AsyncCallback<void>): void;
@ohos.accessibility.d.ts
新增 NA 类名:accessibility;
方法or属性:function sendAccessibilityEvent(event: EventInfo): Promise<void>;
@ohos.accessibility.d.ts
新增 NA 类名:GesturePath;
方法or属性:constructor(durationTime: number);
@ohos.accessibility.GesturePath.d.ts
新增 NA 类名:GesturePath;
方法or属性:points: Array<GesturePoint>;
@ohos.accessibility.GesturePath.d.ts
新增 NA 类名:GesturePath;
方法or属性:durationTime: number;
@ohos.accessibility.GesturePath.d.ts
新增 NA 类名:GesturePoint;
方法or属性:constructor(positionX: number, positionY: number);
@ohos.accessibility.GesturePoint.d.ts
新增 NA 类名:GesturePoint;
方法or属性:positionX: number;
@ohos.accessibility.GesturePoint.d.ts
新增 NA 类名:GesturePoint;
方法or属性:positionY: number;
@ohos.accessibility.GesturePoint.d.ts
新增 NA 类名:sourcefile;
方法or属性:type GestureType = ‘left’ |‘leftThenRight’ |‘leftThenUp’ |‘leftThenDown’ |
‘right’ |‘rightThenLeft’ |‘rightThenUp’ |‘rightThenDown’ |
‘up’ |‘upThenLeft’ |‘upThenRight’ |‘upThenDown’ |
‘down’ |‘downThenLeft’ |‘downThenRight’ |‘downThenUp’;
@ohos.application.AccessibilityExtensionAbility.d.ts
新增 NA 类名:sourcefile;
方法or属性:type PageUpdateType = ‘pageContentUpdate’ |‘pageStateUpdate’;
@ohos.application.AccessibilityExtensionAbility.d.ts
新增 NA 类名:sourcefile;
方法or属性:type TouchGuideType = ‘touchBegin’ |‘touchEnd’;
@ohos.application.AccessibilityExtensionAbility.d.ts
新增 NA 类名:AccessibilityExtensionAbility;
方法or属性:context: AccessibilityExtensionContext;
@ohos.application.AccessibilityExtensionAbility.d.ts
新增 NA 类名:AccessibilityExtensionAbility;
方法or属性:onConnect(): void;
@ohos.application.AccessibilityExtensionAbility.d.ts
新增 NA 类名:AccessibilityExtensionAbility;
方法or属性:onDisconnect(): void;
@ohos.application.AccessibilityExtensionAbility.d.ts
新增 NA 类名:AccessibilityExtensionAbility;
方法or属性:onAccessibilityEvent(event: AccessibilityEvent): void;
@ohos.application.AccessibilityExtensionAbility.d.ts
新增 NA 类名:AccessibilityExtensionAbility;
方法or属性:onKeyEvent(keyEvent: KeyEvent): boolean;
@ohos.application.AccessibilityExtensionAbility.d.ts
新增 NA 类名:AccessibilityEvent;
方法or属性:eventType: accessibility.EventType |accessibility.WindowUpdateType |
TouchGuideType |GestureType |PageUpdateType;
@ohos.application.AccessibilityExtensionAbility.d.ts
新增 NA 类名:AccessibilityEvent;
方法or属性:target?: AccessibilityElement;
@ohos.application.AccessibilityExtensionAbility.d.ts
新增 NA 类名:AccessibilityEvent;
方法or属性:timeStamp?: number;
@ohos.application.AccessibilityExtensionAbility.d.ts
新增 NA 类名:sourcefile;
方法or属性:type ElementAttributeValues = {
/
* Indicates accessibility focus state.
*/
‘accessibilityFocused’: boolean;
/

* Indicates the bundle name to which it belongs.
*/
‘bundleName’: string;
/
* Indicates whether the element is checkable.
*/
‘checkable’: boolean;
/

* Indicates whether the element is checked.
*/
‘checked’: boolean;
/
* Indicates all child elements.
*/
‘children’: Array<AccessibilityElement>;
/

* Indicates whether the element is clickable.
*/
‘clickable’: boolean;
/
* Indicates the component ID to which the element belongs.
*/
‘componentId’: number;
/

* Indicates the component type to which the element belongs.
*/
‘componentType’: string;
/
* Indicates the content.
*/
‘contents’: Array<string>;
/

* Indicates the index of the current item.
*/
‘currentIndex’: number;
/
* Indicates the description of the element.
*/
‘description’: string;
/

* Indicates whether the element is editable.
*/
‘editable’: boolean;
/
* Indicates the list index of the last item displayed on the screen.
*/
‘endIndex’: number;
/

* Indicates the string of error state.
*/
‘error’: string;
/
* Indicates whether the element is focusable.
*/
‘focusable’: boolean;
/

* Indicates the hint text.
*/
‘hintText’: string;
/
* Indicates the type of input text.
*/
‘inputType’: number;
/

* Indicates the inspector key.
*/
‘inspectorKey’: string
/
* Indicates whether the element is active or not.
*/
‘isActive’: boolean;
/

* Indicates whether the element is enable or not.
*/
‘isEnable’: boolean;
/
* Indicates whether the element is hint state or not.
*/
‘isHint’: boolean;
/

* Indicates whether the element is focused or not.
*/
‘isFocused’: boolean;
/
* Indicates whether the element is password or not.
*/
‘isPassword’: boolean;
/

* Indicates whether the element is visible or not.
*/
‘isVisible’: boolean;
/
* Indicates the total count of the items.
*/
‘itemCount’: number;
/

* Indicates the last content.
*/
‘lastContent’: string;
/
* Indicates the display layer of the element.
*/
‘layer’: number;
/

* Indicates whether the element is long clickable.
*/
‘longClickable’: boolean;
/
* Indicates the page id.
*/
‘pageId’: number;
/

* Indicates the parent of the element.
*/
‘parent’: AccessibilityElement;
/
* Indicates whether the element supports multiple lines of text.
*/
‘pluralLineSupported’: boolean;
/

* Indicates the area of the element.
*/
‘rect’: Rect;
/
* Indicates the resource name of the element.
*/
‘resourceName’: string;
/

* Indicates the root element of the window element.
*/
‘rootElement’: AccessibilityElement;
/
* Indicates the display area of the element.
*/
‘screenRect’: Rect;
/

* Indicates whether the element is scrollable.
*/
‘scrollable’: boolean;
/
* Indicates whether the element is selected.
*/
‘selected’: boolean;
/

* Indicates the list index of the first item displayed on the screen.
*/
‘startIndex’: number;
/
* Indicates the text of the element.
*/
‘text’: string;
/

* Indicates the maximum length limit of the element text.
*/
‘textLengthLimit’: number;
/
* Indicates the unit of movement of the element text as it is read.
*/
‘textMoveUnit’: accessibility.TextMoveUnit;
/

* Indicates the action that triggered the element event.
*/
‘triggerAction’: accessibility.Action;
/
* Indicates the window type of the element.
*/
‘type’: WindowType;
/

* Indicates the maximum value.
*/
‘valueMax’: number;
/
* Indicates the minimum value.
*/
‘valueMin’: number;
/

* Indicates the current value.
*/
‘valueNow’: number;
/**
* Indicates the window id.
*/
‘windowId’: number;
}
AccessibilityExtensionContext.d.ts
新增 NA 类名:sourcefile;
方法or属性:type FocusDirection = ‘up’ |‘down’ |‘left’ |‘right’ |‘forward’ |‘backward’;
AccessibilityExtensionContext.d.ts
新增 NA 类名:sourcefile;
方法or属性:type FocusType = ‘accessibility’ |‘normal’;
AccessibilityExtensionContext.d.ts
新增 NA 类名:sourcefile;
方法or属性:type WindowType = ‘application’ |‘system’;
AccessibilityExtensionContext.d.ts
新增 NA 类名:AccessibilityExtensionContext;
方法or属性:setTargetBundleName(targetNames: Array<string>): Promise<void>;
AccessibilityExtensionContext.d.ts
新增 NA 类名:AccessibilityExtensionContext;
方法or属性:setTargetBundleName(targetNames: Array<string>, callback: AsyncCallback<void>): void;
AccessibilityExtensionContext.d.ts
新增 NA 类名:AccessibilityExtensionContext;
方法or属性:getFocusElement(isAccessibilityFocus?: boolean): Promise<AccessibilityElement>;
AccessibilityExtensionContext.d.ts
新增 NA 类名:AccessibilityExtensionContext;
方法or属性:getFocusElement(callback: AsyncCallback<AccessibilityElement>): void;
AccessibilityExtensionContext.d.ts
新增 NA 类名:AccessibilityExtensionContext;
方法or属性:getFocusElement(isAccessibilityFocus: boolean, callback: AsyncCallback<AccessibilityElement>): void;
AccessibilityExtensionContext.d.ts
新增 NA 类名:AccessibilityExtensionContext;
方法or属性:getWindowRootElement(windowId?: number): Promise<AccessibilityElement>;
AccessibilityExtensionContext.d.ts
新增 NA 类名:AccessibilityExtensionContext;
方法or属性:getWindowRootElement(callback: AsyncCallback<AccessibilityElement>): void;
AccessibilityExtensionContext.d.ts
新增 NA 类名:AccessibilityExtensionContext;
方法or属性:getWindowRootElement(windowId: number, callback: AsyncCallback<AccessibilityElement>): void;
AccessibilityExtensionContext.d.ts
新增 NA 类名:AccessibilityExtensionContext;
方法or属性:getWindows(displayId?: number): Promise<Array<AccessibilityElement>>;
AccessibilityExtensionContext.d.ts
新增 NA 类名:AccessibilityExtensionContext;
方法or属性:getWindows(callback: AsyncCallback<Array<AccessibilityElement>>): void;
AccessibilityExtensionContext.d.ts
新增 NA 类名:AccessibilityExtensionContext;
方法or属性:getWindows(displayId: number, callback: AsyncCallback<Array<AccessibilityElement>>): void;
AccessibilityExtensionContext.d.ts
新增 NA 类名:AccessibilityExtensionContext;
方法or属性:injectGesture(gesturePath: GesturePath): Promise<void>;
AccessibilityExtensionContext.d.ts
新增 NA 类名:AccessibilityExtensionContext;
方法or属性:injectGesture(gesturePath: GesturePath, callback: AsyncCallback<void>): void;
AccessibilityExtensionContext.d.ts
新增 NA 类名:AccessibilityElement;
方法or属性:attributeNames<T extends keyof ElementAttributeValues>(): Promise<Array<T>>;
AccessibilityExtensionContext.d.ts
新增 NA 类名:AccessibilityElement;
方法or属性:attributeNames<T extends keyof ElementAttributeValues>(callback: AsyncCallback<Array<T>>): void;
AccessibilityExtensionContext.d.ts
新增 NA 类名:AccessibilityElement;
方法or属性:attributeValue<T extends keyof ElementAttributeValues>(attributeName: T): Promise<ElementAttributeValues[T]>;
AccessibilityExtensionContext.d.ts
新增 NA 类名:AccessibilityElement;
方法or属性:attributeValue<T extends keyof ElementAttributeValues>(attributeName: T,
callback: AsyncCallback<ElementAttributeValues[T]>): void;
AccessibilityExtensionContext.d.ts
新增 NA 类名:AccessibilityElement;
方法or属性:actionNames(): Promise<Array<string>>;
AccessibilityExtensionContext.d.ts
新增 NA 类名:AccessibilityElement;
方法or属性:actionNames(callback: AsyncCallback<Array<string>>): void;
AccessibilityExtensionContext.d.ts
新增 NA 类名:AccessibilityElement;
方法or属性:performAction(actionName: string, parameters?: object): Promise<void>;
AccessibilityExtensionContext.d.ts
新增 NA 类名:AccessibilityElement;
方法or属性:performAction(actionName: string, callback: AsyncCallback<void>): void;
AccessibilityExtensionContext.d.ts
新增 NA 类名:AccessibilityElement;
方法or属性:performAction(actionName: string, parameters: object, callback: AsyncCallback<void>): void;
AccessibilityExtensionContext.d.ts
新增 NA 类名:AccessibilityElement;
方法or属性:findElement(type: ‘content’, condition: string): Promise<Array<AccessibilityElement>>;
AccessibilityExtensionContext.d.ts
新增 NA 类名:AccessibilityElement;
方法or属性:findElement(type: ‘content’, condition: string, callback: AsyncCallback<Array<AccessibilityElement>>): void
AccessibilityExtensionContext.d.ts
新增 NA 类名:AccessibilityElement;
方法or属性:findElement(type: ‘focusType’, condition: FocusType): Promise<AccessibilityElement>;
AccessibilityExtensionContext.d.ts
新增 NA 类名:AccessibilityElement;
方法or属性:findElement(type: ‘focusType’, condition: FocusType, callback: AsyncCallback<AccessibilityElement>): void
AccessibilityExtensionContext.d.ts
新增 NA 类名:AccessibilityElement;
方法or属性:findElement(type: ‘focusDirection’, condition: FocusDirection): Promise<AccessibilityElement>;
AccessibilityExtensionContext.d.ts
新增 NA 类名:AccessibilityElement;
方法or属性:findElement(type: ‘focusDirection’, condition: FocusDirection, callback: AsyncCallback<AccessibilityElement>): void
AccessibilityExtensionContext.d.ts
新增 NA 类名:Rect;
方法or属性:left: number;
AccessibilityExtensionContext.d.ts
新增 NA 类名:Rect;
方法or属性:top: number;
AccessibilityExtensionContext.d.ts
新增 NA 类名:Rect;
方法or属性:width: number;
AccessibilityExtensionContext.d.ts
新增 NA 类名:Rect;
方法or属性:height: number;
AccessibilityExtensionContext.d.ts
废弃版本有变化 类名:accessibility;
方法or属性:function getAbilityLists(abilityType: AbilityType, stateType: AbilityState,

callback: AsyncCallback<Array<AccessibilityAbilityInfo>>): void;
旧版本信息:
类名:accessibility;
方法or属性:function getAbilityLists(abilityType: AbilityType, stateType: AbilityState,

callback: AsyncCallback<Array<AccessibilityAbilityInfo>>): void;
新版本信息:9
代替接口: ohos.accessibility#getAccessibilityExtensionList
@ohos.accessibility.d.ts
废弃版本有变化 类名:accessibility;
方法or属性:function getAbilityLists(abilityType: AbilityType,

stateType: AbilityState): Promise<Array<AccessibilityAbilityInfo>>;
旧版本信息:
类名:accessibility;
方法or属性:function getAbilityLists(abilityType: AbilityType,

stateType: AbilityState): Promise<Array<AccessibilityAbilityInfo>>;
新版本信息:9
代替接口: ohos.accessibility#getAccessibilityExtensionList
@ohos.accessibility.d.ts
废弃版本有变化 类名:accessibility;
方法or属性:function sendEvent(event: EventInfo, callback: AsyncCallback<void>): void;
旧版本信息:
类名:accessibility;
方法or属性:function sendEvent(event: EventInfo, callback: AsyncCallback<void>): void;
新版本信息:9
代替接口: ohos.accessibility#sendAccessibilityEvent
@ohos.accessibility.d.ts
废弃版本有变化 类名:accessibility;
方法or属性:function sendEvent(event: EventInfo): Promise<void>;
旧版本信息:
类名:accessibility;
方法or属性:function sendEvent(event: EventInfo): Promise<void>;
新版本信息:9
代替接口: ohos.accessibility#sendAccessibilityEvent
@ohos.accessibility.d.ts
新增(错误码) 类名:accessibility;
方法or属性:function on(type: ‘accessibilityStateChange’, callback: Callback<boolean>): void;
旧版本信息:
类名:accessibility;
方法or属性:function on(type: ‘accessibilityStateChange’, callback: Callback<boolean>): void;
新版本信息:401
@ohos.accessibility.d.ts
新增(错误码) 类名:accessibility;
方法or属性:function on(type: ‘touchGuideStateChange’, callback: Callback<boolean>): void;
旧版本信息:
类名:accessibility;
方法or属性:function on(type: ‘touchGuideStateChange’, callback: Callback<boolean>): void;
新版本信息:401
@ohos.accessibility.d.ts
新增(错误码) 类名:accessibility;
方法or属性:function off(type: ‘accessibilityStateChange’, callback?: Callback<boolean>): void;
旧版本信息:
类名:accessibility;
方法or属性:function off(type: ‘accessibilityStateChange’, callback?: Callback<boolean>): void;
新版本信息:401
@ohos.accessibility.d.ts
新增(错误码) 类名:accessibility;
方法or属性:function off(type: ‘touchGuideStateChange’, callback?: Callback<boolean>): void;
旧版本信息:
类名:accessibility;
方法or属性:function off(type: ‘touchGuideStateChange’, callback?: Callback<boolean>): void;
新版本信息:401
@ohos.accessibility.d.ts
新增(错误码) 类名:CaptionsManager;
方法or属性:on(type: ‘enableChange’, callback: Callback<boolean>): void;
旧版本信息:
类名:CaptionsManager;
方法or属性:on(type: ‘enableChange’, callback: Callback<boolean>): void;
新版本信息:401
@ohos.accessibility.d.ts
新增(错误码) 类名:CaptionsManager;
方法or属性:on(type: ‘styleChange’, callback: Callback<CaptionsStyle>): void;
旧版本信息:
类名:CaptionsManager;
方法or属性:on(type: ‘styleChange’, callback: Callback<CaptionsStyle>): void;
新版本信息:401
@ohos.accessibility.d.ts
新增(错误码) 类名:CaptionsManager;
方法or属性:off(type: ‘enableChange’, callback?: Callback<boolean>): void;
旧版本信息:
类名:CaptionsManager;
方法or属性:off(type: ‘enableChange’, callback?: Callback<boolean>): void;
新版本信息:401
@ohos.accessibility.d.ts
新增(错误码) 类名:CaptionsManager;
方法or属性:off(type: ‘styleChange’, callback?: Callback<CaptionsStyle>): void;
旧版本信息:
类名:CaptionsManager;
方法or属性:off(type: ‘styleChange’, callback?: Callback<CaptionsStyle>): void;
新版本信息:401
@ohos.accessibility.d.ts
type有变化 类名:accessibility;
方法or属性:type AbilityType = ‘audible’ |‘generic’ |‘haptic’ |‘spoken’ |‘visual’ |‘all’;
旧版本信息:
类名:accessibility;
方法or属性:type AbilityType = ‘audible’ |‘generic’ |‘haptic’ |‘spoken’ |‘visual’ |‘all’;
新版本信息:’audible’ |‘generic’ |‘haptic’ |‘spoken’ |‘visual’ |‘all’
@ohos.accessibility.d.ts
函数有变化 类名:accessibility;
方法or属性:type AbilityType = ‘audible’ |‘generic’ |‘haptic’ |‘spoken’ |‘visual’;
类名:accessibility;
方法or属性:type AbilityType = ‘audible’ |‘generic’ |‘haptic’ |‘spoken’ |‘visual’ |‘all’;
@ohos.accessibility.d.ts

你可能感兴趣的鸿蒙文章

harmony 鸿蒙JS API差异报告

harmony 鸿蒙js-apidiff-ability

harmony 鸿蒙js-apidiff-account

harmony 鸿蒙js-apidiff-application

harmony 鸿蒙js-apidiff-arkui

harmony 鸿蒙js-apidiff-battery

harmony 鸿蒙js-apidiff-bundle

harmony 鸿蒙js-apidiff-communication

harmony 鸿蒙js-apidiff-compiler-and-runtime

harmony 鸿蒙js-apidiff-customization

0  赞