api7和api8整改

Signed-off-by: mayunteng_1 <mayunteng@huawei.com>
Change-Id: I56cf28fcb74ab034d53191ab5ca582e452e98524
This commit is contained in:
mayunteng_1 2022-09-27 09:11:33 +08:00
parent ca2e389d40
commit 2b29e4ed13
8 changed files with 96 additions and 90 deletions

View File

@ -16,18 +16,18 @@
import { Callback } from './basic';
/**
* The event of key input management module is configured to subscribe and unsubscribe system keys.
*
* @since 8
* @syscap SystemCapability.MultimodalInput.Input.InputConsumer
* @import import inputConsumer from '@ohos.multimodalInput.inputConsumer';
* @systemapi hide for inner use
*/
* The event of key input management module is configured to subscribe and unsubscribe system keys.
*
* @since 8
* @syscap SystemCapability.MultimodalInput.Input.InputConsumer
* @import import inputConsumer from '@ohos.multimodalInput.inputConsumer';
* @systemapi hide for inner use
*/
declare namespace inputConsumer {
/**
* Defines event of key that user want to subscribe or unsubscribe.
*
* @since 8
* @syscap SystemCapability.MultimodalInput.Input.InputConsumer
* @systemapi hide for inner use
* @param preKeys The pre-keys that want to subscribe or unsubscribe.

View File

@ -17,15 +17,21 @@ import { Callback, AsyncCallback } from "./basic";
import { KeyCode } from "./@ohos.multimodalInput.keyCode"
/**
* The input device management module is configured to obtain an ID and device information of an input device.
*
* @since 8
* @syscap SystemCapability.MultimodalInput.Input.InputDevice
* @import import inputDevice from '@ohos.multimodalInput.inputDevice';
*/
* The input device management module is configured to obtain an ID and device information of an input device.
*
* @since 8
* @syscap SystemCapability.MultimodalInput.Input.InputDevice
* @import import inputDevice from '@ohos.multimodalInput.inputDevice';
*/
declare namespace inputDevice {
/**
* @since 9
*/
type ChangedType = 'add' | 'remove';
/**
* @since 9
*/
type SourceType = 'keyboard' | 'mouse' | 'touchpad' | 'touchscreen' | 'joystick' | 'trackball';
/**
@ -108,6 +114,7 @@ declare namespace inputDevice {
* For example, a touchscreen may report information such as x, y, and pressure,
* which indicate the x-axis coordinate, y-axis coordinate, and pressure, respectively.
*
* @since 8
* @syscap SystemCapability.MultimodalInput.Input.InputDevice
* @param source Input source type of the axis. For example, if a mouse reports an x-axis event, the source of the x-axis is the mouse.
* @param axis Type of the axis. for example, the x-axis, y-axis, and pressure axis.
@ -157,6 +164,7 @@ declare namespace inputDevice {
/**
* Defines the information about an input device.
*
* @since 8
* @syscap SystemCapability.MultimodalInput.Input.InputDevice
* @param name Name of the input device.
* @param sources Source type supported by the input device. For example, if a keyboard is attached with a touchpad, the device has two input sources: keyboard and touchpad.

View File

@ -16,7 +16,6 @@
import { AsyncCallback } from "./basic";
declare namespace inputDeviceCooperate {
/**
* Enumerates mouse traversal events.
*

View File

@ -14,13 +14,12 @@
*/
/**
* InputEvent
*
* @since 9
* @syscap SystemCapability.MultimodalInput.Input.Core
* @import import InputEvent from '@ohos.multimodalInput.inputEvent';
*/
* InputEvent
*
* @since 9
* @syscap SystemCapability.MultimodalInput.Input.Core
* @import import InputEvent from '@ohos.multimodalInput.inputEvent';
*/
export declare interface InputEvent {
/**
* Unique event ID generated by the server

View File

@ -25,7 +25,8 @@
declare namespace inputEventClient {
/**
* Defines event of key that user want to inject.
*
*
* @since 8
* @syscap SystemCapability.MultimodalInput.Input.InputSimulator
* @systemapi hide for inner use
* @param isPressed The status of key.

View File

@ -16,12 +16,12 @@ import { InputEvent } from "./@ohos.multimodalInput.inputEvent"
import { KeyCode } from "./@ohos.multimodalInput.keyCode"
/**
* Action
*
* @since 9
* @syscap SystemCapability.MultimodalInput.Input.Core
* @import import {Action} from '@ohos.multimodalInput.mouseEvent';
*/
* Action
*
* @since 9
* @syscap SystemCapability.MultimodalInput.Input.Core
* @import import {Action} from '@ohos.multimodalInput.mouseEvent';
*/
export declare enum Action {
/**
* Cancel
@ -60,12 +60,12 @@ export declare enum Action {
}
/**
* Button
*
* @since 9
* @syscap SystemCapability.MultimodalInput.Input.Core
* @import import {Button} from '@ohos.multimodalInput.mouseEvent';
*/
* Button
*
* @since 9
* @syscap SystemCapability.MultimodalInput.Input.Core
* @import import {Button} from '@ohos.multimodalInput.mouseEvent';
*/
export declare enum Button {
/**
* Left button on the mouse
@ -109,12 +109,12 @@ export declare enum Button {
}
/**
* Axis
*
* @since 9
* @syscap SystemCapability.MultimodalInput.Input.Core
* @import import {Axis} from '@ohos.multimodalInput.mouseEvent';
*/
* Axis
*
* @since 9
* @syscap SystemCapability.MultimodalInput.Input.Core
* @import import {Axis} from '@ohos.multimodalInput.mouseEvent';
*/
export declare enum Axis {
/**
* Vertical scroll axis
@ -133,12 +133,12 @@ export declare enum Axis {
}
/**
* AxisValue
*
* @since 9
* @syscap SystemCapability.MultimodalInput.Input.Core
* @import import {AxisValue} from '@ohos.multimodalInput.mouseEvent';
*/
* AxisValue
*
* @since 9
* @syscap SystemCapability.MultimodalInput.Input.Core
* @import import {AxisValue} from '@ohos.multimodalInput.mouseEvent';
*/
export declare interface AxisValue {
/**
* Axis type
@ -152,12 +152,12 @@ export declare interface AxisValue {
}
/**
* MouseEvent
*
* @since 9
* @syscap SystemCapability.MultimodalInput.Input.Core
* @import import {MouseEvent} from '@ohos.multimodalInput.mouseEvent';
*/
* MouseEvent
*
* @since 9
* @syscap SystemCapability.MultimodalInput.Input.Core
* @import import {MouseEvent} from '@ohos.multimodalInput.mouseEvent';
*/
export declare interface MouseEvent extends InputEvent {
/**
* Mouse event action

View File

@ -16,13 +16,12 @@
import { AsyncCallback } from "./basic";
/**
* Declares interfaces related to mouse pointer attributes.
*
* @since 9
* @syscap SystemCapability.MultimodalInput.Input.Pointer
* @import import pointer from '@ohos.multimodalInput.pointer';
*/
* Declares interfaces related to mouse pointer attributes.
*
* @since 9
* @syscap SystemCapability.MultimodalInput.Input.Pointer
* @import import pointer from '@ohos.multimodalInput.pointer';
*/
declare namespace pointer {
/**
* Pointer style.

View File

@ -15,12 +15,12 @@
import { InputEvent } from './@ohos.multimodalInput.inputEvent'
/**
* Action
*
* @since 9
* @syscap SystemCapability.MultimodalInput.Input.Core
* @import import {Action} from '@ohos.multimodalInput.touchEvent';
*/
* Action
*
* @since 9
* @syscap SystemCapability.MultimodalInput.Input.Core
* @import import {Action} from '@ohos.multimodalInput.touchEvent';
*/
export declare enum Action {
/**
* Touch cancelled
@ -44,12 +44,12 @@ export declare enum Action {
}
/**
* ToolType
*
* @since 9
* @syscap SystemCapability.MultimodalInput.Input.Core
* @import import {ToolType} from '@ohos.multimodalInput.touchEvent';
*/
* ToolType
*
* @since 9
* @syscap SystemCapability.MultimodalInput.Input.Core
* @import import {ToolType} from '@ohos.multimodalInput.touchEvent';
*/
export declare enum ToolType {
/**
* Finger
@ -90,12 +90,12 @@ export declare enum ToolType {
}
/**
* SourceType
*
* @since 9
* @syscap SystemCapability.MultimodalInput.Input.Core
* @import import {SourceType} from '@ohos.multimodalInput.touchEvent';
*/
* SourceType
*
* @since 9
* @syscap SystemCapability.MultimodalInput.Input.Core
* @import import {SourceType} from '@ohos.multimodalInput.touchEvent';
*/
export declare enum SourceType {
/**
* Touchscreen
@ -114,12 +114,12 @@ export declare enum SourceType {
}
/**
* Touch
*
* @since 9
* @syscap SystemCapability.MultimodalInput.Input.Core
* @import import {Touch} from '@ohos.multimodalInput.touchEvent';
*/
* Touch
*
* @since 9
* @syscap SystemCapability.MultimodalInput.Input.Core
* @import import {Touch} from '@ohos.multimodalInput.touchEvent';
*/
export declare interface Touch {
/**
* Pointer identifier
@ -213,12 +213,12 @@ export declare interface Touch {
}
/**
* TouchEvent
*
* @since 9
* @syscap SystemCapability.MultimodalInput.Input.Core
* @import import {TouchEvent} from '@ohos.multimodalInput.touchEvent';
*/
* TouchEvent
*
* @since 9
* @syscap SystemCapability.MultimodalInput.Input.Core
* @import import {TouchEvent} from '@ohos.multimodalInput.touchEvent';
*/
export declare interface TouchEvent extends InputEvent {
/**
* Touch action