!12744 无障碍框架部分接口废弃

Merge pull request !12744 from lsl/master
This commit is contained in:
openharmony_ci 2024-07-30 12:51:35 +00:00 committed by Gitee
commit ab8f585745
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
5 changed files with 38 additions and 0 deletions

View File

@ -33,6 +33,7 @@ export declare class GesturePath {
* @param { number } durationTime - Indicates the duration of the gesture.
* @syscap SystemCapability.BarrierFree.Accessibility.Core
* @since 9
* @deprecated since 12
*/
constructor(durationTime: number);
/**

View File

@ -32,6 +32,7 @@ export declare class GesturePoint {
* @param { number } positionY - Indicates the Y coordinate of point.
* @syscap SystemCapability.BarrierFree.Accessibility.Core
* @since 9
* @deprecated since 12
*/
constructor(positionX: number, positionY: number);
/**

View File

@ -422,6 +422,7 @@ declare namespace accessibility {
* @returns { CaptionsManager } Returns the captions manager.
* @syscap SystemCapability.BarrierFree.Accessibility.Hearing
* @since 8
* @deprecated since 12
*/
function getCaptionsManager(): CaptionsManager;
@ -461,6 +462,7 @@ declare namespace accessibility {
* 3. Parameter verification failed.
* @syscap SystemCapability.BarrierFree.Accessibility.Hearing
* @since 8
* @deprecated since 12
*/
on(type: 'enableChange', callback: Callback<boolean>): void;
@ -475,6 +477,7 @@ declare namespace accessibility {
* 3. Parameter verification failed.
* @syscap SystemCapability.BarrierFree.Accessibility.Hearing
* @since 8
* @deprecated since 12
*/
on(type: 'styleChange', callback: Callback<CaptionsStyle>): void;
@ -489,6 +492,7 @@ declare namespace accessibility {
* 3. Parameter verification failed.
* @syscap SystemCapability.BarrierFree.Accessibility.Hearing
* @since 8
* @deprecated since 12
*/
off(type: 'enableChange', callback?: Callback<boolean>): void;
@ -503,6 +507,7 @@ declare namespace accessibility {
* 3. Parameter verification failed.
* @syscap SystemCapability.BarrierFree.Accessibility.Hearing
* @since 8
* @deprecated since 12
*/
off(type: 'styleChange', callback?: Callback<CaptionsStyle>): void;
}

View File

@ -126,6 +126,7 @@ export default class AccessibilityExtensionAbility {
*
* @syscap SystemCapability.BarrierFree.Accessibility.Core
* @since 9
* @deprecated since 12
*/
onConnect(): void;
@ -134,6 +135,7 @@ export default class AccessibilityExtensionAbility {
*
* @syscap SystemCapability.BarrierFree.Accessibility.Core
* @since 9
* @deprecated since 12
*/
onDisconnect(): void;
@ -143,6 +145,7 @@ export default class AccessibilityExtensionAbility {
* @param { AccessibilityEvent } event Indicates an accessibility event.
* @syscap SystemCapability.BarrierFree.Accessibility.Core
* @since 9
* @deprecated since 12
*/
onAccessibilityEvent(event: AccessibilityEvent): void;
@ -153,6 +156,7 @@ export default class AccessibilityExtensionAbility {
* @returns { boolean }
* @syscap SystemCapability.BarrierFree.Accessibility.Core
* @since 9
* @deprecated since 12
*/
onKeyEvent(keyEvent: KeyEvent): boolean;
}

View File

@ -42,6 +42,7 @@ export default class AccessibilityExtensionContext extends ExtensionContext {
* 3. Parameter verification failed.
* @syscap SystemCapability.BarrierFree.Accessibility.Core
* @since 9
* @deprecated since 12
*/
setTargetBundleName(targetNames: Array<string>, callback: AsyncCallback<void>): void;
@ -56,6 +57,7 @@ export default class AccessibilityExtensionContext extends ExtensionContext {
* 3. Parameter verification failed.
* @syscap SystemCapability.BarrierFree.Accessibility.Core
* @since 9
* @deprecated since 12
*/
setTargetBundleName(targetNames: Array<string>): Promise<void>;
@ -71,6 +73,7 @@ export default class AccessibilityExtensionContext extends ExtensionContext {
* @throws { BusinessError } 9300003 - No accessibility permission to perform the operation.
* @syscap SystemCapability.BarrierFree.Accessibility.Core
* @since 9
* @deprecated since 12
*/
getFocusElement(isAccessibilityFocus: boolean, callback: AsyncCallback<AccessibilityElement>): void;
@ -86,6 +89,7 @@ export default class AccessibilityExtensionContext extends ExtensionContext {
* @throws { BusinessError } 9300003 - No accessibility permission to perform the operation.
* @syscap SystemCapability.BarrierFree.Accessibility.Core
* @since 9
* @deprecated since 12
*/
getFocusElement(isAccessibilityFocus?: boolean): Promise<AccessibilityElement>;
@ -99,6 +103,7 @@ export default class AccessibilityExtensionContext extends ExtensionContext {
* @throws { BusinessError } 9300003 - No accessibility permission to perform the operation.
* @syscap SystemCapability.BarrierFree.Accessibility.Core
* @since 9
* @deprecated since 12
*/
getFocusElement(callback: AsyncCallback<AccessibilityElement>): void;
@ -114,6 +119,7 @@ export default class AccessibilityExtensionContext extends ExtensionContext {
* @throws { BusinessError } 9300003 - No accessibility permission to perform the operation.
* @syscap SystemCapability.BarrierFree.Accessibility.Core
* @since 9
* @deprecated since 12
*/
getWindowRootElement(windowId: number, callback: AsyncCallback<AccessibilityElement>): void;
@ -129,6 +135,7 @@ export default class AccessibilityExtensionContext extends ExtensionContext {
* @throws { BusinessError } 9300003 - No accessibility permission to perform the operation.
* @syscap SystemCapability.BarrierFree.Accessibility.Core
* @since 9
* @deprecated since 12
*/
getWindowRootElement(windowId?: number): Promise<AccessibilityElement>;
@ -142,6 +149,7 @@ export default class AccessibilityExtensionContext extends ExtensionContext {
* @throws { BusinessError } 9300003 - No accessibility permission to perform the operation.
* @syscap SystemCapability.BarrierFree.Accessibility.Core
* @since 9
* @deprecated since 12
*/
getWindowRootElement(callback: AsyncCallback<AccessibilityElement>): void;
@ -157,6 +165,7 @@ export default class AccessibilityExtensionContext extends ExtensionContext {
* @throws { BusinessError } 9300003 - No accessibility permission to perform the operation.
* @syscap SystemCapability.BarrierFree.Accessibility.Core
* @since 9
* @deprecated since 12
*/
getWindows(displayId: number, callback: AsyncCallback<Array<AccessibilityElement>>): void;
@ -172,6 +181,7 @@ export default class AccessibilityExtensionContext extends ExtensionContext {
* @throws { BusinessError } 9300003 - No accessibility permission to perform the operation.
* @syscap SystemCapability.BarrierFree.Accessibility.Core
* @since 9
* @deprecated since 12
*/
getWindows(displayId?: number): Promise<Array<AccessibilityElement>>;
@ -185,6 +195,7 @@ export default class AccessibilityExtensionContext extends ExtensionContext {
* @throws { BusinessError } 9300003 - No accessibility permission to perform the operation.
* @syscap SystemCapability.BarrierFree.Accessibility.Core
* @since 9
* @deprecated since 12
*/
getWindows(callback: AsyncCallback<Array<AccessibilityElement>>): void;
@ -233,6 +244,7 @@ export default class AccessibilityExtensionContext extends ExtensionContext {
* @throws { BusinessError } 9300003 - No accessibility permission to perform the operation.
* @syscap SystemCapability.BarrierFree.Accessibility.Core
* @since 10
* @deprecated since 12
*/
injectGestureSync(gesturePath: GesturePath): void;
}
@ -252,6 +264,7 @@ declare interface AccessibilityElement {
* @param { AsyncCallback<Array<T>> } callback Indicates the listener.
* @syscap SystemCapability.BarrierFree.Accessibility.Core
* @since 9
* @deprecated since 12
*/
attributeNames<T extends keyof ElementAttributeValues>(callback: AsyncCallback<Array<T>>): void;
@ -260,6 +273,7 @@ declare interface AccessibilityElement {
* @returns { Promise<Array<T>> }
* @syscap SystemCapability.BarrierFree.Accessibility.Core
* @since 9
* @deprecated since 12
*/
attributeNames<T extends keyof ElementAttributeValues>(): Promise<Array<T>>;
@ -275,6 +289,7 @@ declare interface AccessibilityElement {
* @throws { BusinessError } 9300004 - This property does not exist.
* @syscap SystemCapability.BarrierFree.Accessibility.Core
* @since 9
* @deprecated since 12
*/
attributeValue<T extends keyof ElementAttributeValues>(
attributeName: T,
@ -293,6 +308,7 @@ declare interface AccessibilityElement {
* @throws { BusinessError } 9300004 - This property does not exist.
* @syscap SystemCapability.BarrierFree.Accessibility.Core
* @since 9
* @deprecated since 12
*/
attributeValue<T extends keyof ElementAttributeValues>(attributeName: T): Promise<ElementAttributeValues[T]>;
@ -302,6 +318,7 @@ declare interface AccessibilityElement {
* @param { AsyncCallback<Array<string>> } callback Indicates the listener.
* @syscap SystemCapability.BarrierFree.Accessibility.Core
* @since 9
* @deprecated since 12
*/
actionNames(callback: AsyncCallback<Array<string>>): void;
@ -311,6 +328,7 @@ declare interface AccessibilityElement {
* @returns { Promise<Array<string>> }
* @syscap SystemCapability.BarrierFree.Accessibility.Core
* @since 9
* @deprecated since 12
*/
actionNames(): Promise<Array<string>>;
@ -327,6 +345,7 @@ declare interface AccessibilityElement {
* @throws { BusinessError } 9300005 - This action is not supported.
* @syscap SystemCapability.BarrierFree.Accessibility.Core
* @since 9
* @deprecated since 12
*/
performAction(actionName: string, parameters: object, callback: AsyncCallback<void>): void;
@ -343,6 +362,7 @@ declare interface AccessibilityElement {
* @throws { BusinessError } 9300005 - This action is not supported.
* @syscap SystemCapability.BarrierFree.Accessibility.Core
* @since 9
* @deprecated since 12
*/
performAction(actionName: string, parameters?: object): Promise<void>;
@ -358,6 +378,7 @@ declare interface AccessibilityElement {
* @throws { BusinessError } 9300005 - This action is not supported.
* @syscap SystemCapability.BarrierFree.Accessibility.Core
* @since 9
* @deprecated since 12
*/
performAction(actionName: string, callback: AsyncCallback<void>): void;
@ -408,6 +429,7 @@ declare interface AccessibilityElement {
* 3. Parameter verification failed.
* @syscap SystemCapability.BarrierFree.Accessibility.Core
* @since 9
* @deprecated since 12
*/
findElement(type: 'content', condition: string, callback: AsyncCallback<Array<AccessibilityElement>>): void;
@ -423,6 +445,7 @@ declare interface AccessibilityElement {
* 3. Parameter verification failed.
* @syscap SystemCapability.BarrierFree.Accessibility.Core
* @since 9
* @deprecated since 12
*/
findElement(type: 'content', condition: string): Promise<Array<AccessibilityElement>>;
@ -438,6 +461,7 @@ declare interface AccessibilityElement {
* 3. Parameter verification failed.
* @syscap SystemCapability.BarrierFree.Accessibility.Core
* @since 9
* @deprecated since 12
*/
findElement(type: 'focusType', condition: FocusType, callback: AsyncCallback<AccessibilityElement>): void;
@ -453,6 +477,7 @@ declare interface AccessibilityElement {
* 3. Parameter verification failed.
* @syscap SystemCapability.BarrierFree.Accessibility.Core
* @since 9
* @deprecated since 12
*/
findElement(type: 'focusType', condition: FocusType): Promise<AccessibilityElement>;
@ -468,6 +493,7 @@ declare interface AccessibilityElement {
* 3. Parameter verification failed.
* @syscap SystemCapability.BarrierFree.Accessibility.Core
* @since 9
* @deprecated since 12
*/
findElement(type: 'focusDirection', condition: FocusDirection, callback: AsyncCallback<AccessibilityElement>): void;
@ -483,6 +509,7 @@ declare interface AccessibilityElement {
* 3. Parameter verification failed.
* @syscap SystemCapability.BarrierFree.Accessibility.Core
* @since 9
* @deprecated since 12
*/
findElement(type: 'focusDirection', condition: FocusDirection): Promise<AccessibilityElement>;