mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 14:13:45 +00:00
api7和api8整改
Signed-off-by: mayunteng_1 <mayunteng@huawei.com> Change-Id: I56cf28fcb74ab034d53191ab5ca582e452e98524
This commit is contained in:
parent
ca2e389d40
commit
2b29e4ed13
16
api/@ohos.multimodalInput.inputConsumer.d.ts
vendored
16
api/@ohos.multimodalInput.inputConsumer.d.ts
vendored
@ -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.
|
||||
|
20
api/@ohos.multimodalInput.inputDevice.d.ts
vendored
20
api/@ohos.multimodalInput.inputDevice.d.ts
vendored
@ -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.
|
||||
|
@ -16,7 +16,6 @@
|
||||
import { AsyncCallback } from "./basic";
|
||||
|
||||
declare namespace inputDeviceCooperate {
|
||||
|
||||
/**
|
||||
* Enumerates mouse traversal events.
|
||||
*
|
||||
|
13
api/@ohos.multimodalInput.inputEvent.d.ts
vendored
13
api/@ohos.multimodalInput.inputEvent.d.ts
vendored
@ -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
|
||||
|
@ -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.
|
||||
|
60
api/@ohos.multimodalInput.mouseEvent.d.ts
vendored
60
api/@ohos.multimodalInput.mouseEvent.d.ts
vendored
@ -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
|
||||
|
13
api/@ohos.multimodalInput.pointer.d.ts
vendored
13
api/@ohos.multimodalInput.pointer.d.ts
vendored
@ -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.
|
||||
|
60
api/@ohos.multimodalInput.touchEvent.d.ts
vendored
60
api/@ohos.multimodalInput.touchEvent.d.ts
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user