api变更

Signed-off-by: 郭旭 <guoxu34@huawei.com>
This commit is contained in:
郭旭 2024-11-09 02:14:10 +00:00
parent d0d4a37420
commit ba2db8c3de
4 changed files with 24 additions and 24 deletions

View File

@ -197,7 +197,7 @@ export declare interface ThreeFingersTap {
* @interface TouchGestureEvent
* @syscap SystemCapability.MultimodalInput.Input.Core
* @systemapi hide for inner use
* @since 13
* @since 14
*/
export declare interface TouchGestureEvent {
/**
@ -206,7 +206,7 @@ export declare interface TouchGestureEvent {
* @type { TouchGestureAction }
* @syscap SystemCapability.MultimodalInput.Input.Core
* @systemapi hide for inner use
* @since 13
* @since 14
*/
action: TouchGestureAction;
/**
@ -215,7 +215,7 @@ export declare interface TouchGestureEvent {
* @type { Touch[] }
* @syscap SystemCapability.MultimodalInput.Input.Core
* @systemapi hide for inner use
* @since 13
* @since 14
*/
touches: Touch[];
}
@ -226,7 +226,7 @@ export declare interface TouchGestureEvent {
* @enum { number }
* @syscap SystemCapability.MultimodalInput.Input.Core
* @systemapi hide for inner use
* @since 13
* @since 14
*/
export declare enum TouchGestureAction {
/**
@ -234,7 +234,7 @@ export declare enum TouchGestureAction {
*
* @syscap SystemCapability.MultimodalInput.Input.Core
* @systemapi hide for inner use
* @since 13
* @since 14
*/
SWIPE_DOWN = 0,
/**
@ -242,7 +242,7 @@ export declare enum TouchGestureAction {
*
* @syscap SystemCapability.MultimodalInput.Input.Core
* @systemapi hide for inner use
* @since 13
* @since 14
*/
SWIPE_UP,
/**
@ -250,7 +250,7 @@ export declare enum TouchGestureAction {
*
* @syscap SystemCapability.MultimodalInput.Input.Core
* @systemapi hide for inner use
* @since 13
* @since 14
*/
SWIPE_LEFT,
/**
@ -258,7 +258,7 @@ export declare enum TouchGestureAction {
*
* @syscap SystemCapability.MultimodalInput.Input.Core
* @systemapi hide for inner use
* @since 13
* @since 14
*/
SWIPE_RIGHT,
/**
@ -266,7 +266,7 @@ export declare enum TouchGestureAction {
*
* @syscap SystemCapability.MultimodalInput.Input.Core
* @systemapi hide for inner use
* @since 13
* @since 14
*/
PINCH_CLOSED,
/**
@ -274,7 +274,7 @@ export declare enum TouchGestureAction {
*
* @syscap SystemCapability.MultimodalInput.Input.Core
* @systemapi hide for inner use
* @since 13
* @since 14
*/
PINCH_OPENED,
/**
@ -282,7 +282,7 @@ export declare enum TouchGestureAction {
*
* @syscap SystemCapability.MultimodalInput.Input.Core
* @systemapi hide for inner use
* @since 13
* @since 14
*/
GESTURE_END
}

View File

@ -25,7 +25,7 @@ import { Callback } from './@ohos.base';
*
* @namespace inputConsumer
* @syscap SystemCapability.MultimodalInput.Input.InputConsumer
* @since 13
* @since 14
*/
declare namespace inputConsumer {
/**
@ -93,7 +93,7 @@ declare namespace inputConsumer {
*
* @typedef HotkeyOptions
* @syscap SystemCapability.MultimodalInput.Input.InputConsumer
* @since 13
* @since 14
*/
interface HotkeyOptions {
/**
@ -101,7 +101,7 @@ declare namespace inputConsumer {
*
* @type { Array<number> }
* @syscap SystemCapability.MultimodalInput.Input.InputConsumer
* @since 13
* @since 14
*/
preKeys: Array<number>;
@ -110,7 +110,7 @@ declare namespace inputConsumer {
*
* @type { number }
* @syscap SystemCapability.MultimodalInput.Input.InputConsumer
* @since 13
* @since 14
*/
finalKey: number;
@ -119,7 +119,7 @@ declare namespace inputConsumer {
*
* @type { ?boolean }
* @syscap SystemCapability.MultimodalInput.Input.InputConsumer
* @since 13
* @since 14
*/
isRepeat?: boolean;
}
@ -235,7 +235,7 @@ declare namespace inputConsumer {
*
* @Returns { Promise<Array<HotkeyOptions>> } All system hotkeys.
* @syscap SystemCapability.MultimodalInput.Input.InputConsumer
* @since 13
* @since 14
*/
function getAllSystemHotkeys(): Promise<Array<HotkeyOptions>>;
@ -251,7 +251,7 @@ declare namespace inputConsumer {
* <br> GetAllSystemHotkeys} interface to query all system hotkeys.
* @throws { BusinessError } 4200003 - The hotkey has been subscribed to by another.
* @syscap SystemCapability.MultimodalInput.Input.InputConsumer
* @since 13
* @since 14
*/
function on(type: 'hotkeyChange', hotkeyOptions: HotkeyOptions, callback: Callback<HotkeyOptions>): void
@ -264,7 +264,7 @@ declare namespace inputConsumer {
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
* <br>2. Incorrect parameter types; 3. Parameter verification failed.
* @syscap SystemCapability.MultimodalInput.Input.InputConsumer
* @since 13
* @since 14
*/
function off(type: 'hotkeyChange', hotkeyOptions: HotkeyOptions, callback?: Callback<HotkeyOptions>): void
}

View File

@ -633,7 +633,7 @@ declare namespace inputDevice {
*
* @returns { Promise<number> } Promise used to return the interval since the last input.
* @syscap SystemCapability.MultimodalInput.Input.InputDevice
* @since 13
* @since 14
*/
function getIntervalSinceLastInput(): Promise<number>;
}

View File

@ -477,7 +477,7 @@ declare namespace inputMonitor {
* 2.Incorrect parameter types.
* @syscap SystemCapability.MultimodalInput.Input.InputMonitor
* @systemapi hide for inner use
* @since 13
* @since 14
*/
function on(type: 'touchscreenSwipe', fingers: number, receiver: Callback<TouchGestureEvent>): void;
@ -495,7 +495,7 @@ declare namespace inputMonitor {
* 2.Incorrect parameter types.
* @syscap SystemCapability.MultimodalInput.Input.InputMonitor
* @systemapi hide for inner use
* @since 13
* @since 14
*/
function off(type: 'touchscreenSwipe', fingers: number, receiver?: Callback<TouchGestureEvent>): void;
@ -513,7 +513,7 @@ declare namespace inputMonitor {
* 2.Incorrect parameter types.
* @syscap SystemCapability.MultimodalInput.Input.InputMonitor
* @systemapi hide for inner use
* @since 13
* @since 14
*/
function on(type: 'touchscreenPinch', fingers: number, receiver: Callback<TouchGestureEvent>): void;
@ -531,7 +531,7 @@ declare namespace inputMonitor {
* 2.Incorrect parameter types.
* @syscap SystemCapability.MultimodalInput.Input.InputMonitor
* @systemapi hide for inner use
* @since 13
* @since 14
*/
function off(type: 'touchscreenPinch', fingers: number, receiver?: Callback<TouchGestureEvent>): void;
}