mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 06:03:30 +00:00
api告警修改
Signed-off-by: renxinyao <renxinyao2@huawei.com>
This commit is contained in:
parent
2a8b67661c
commit
b5f1cc09d7
16
api/@ohos.multimodalInput.gestureEvent.d.ts
vendored
16
api/@ohos.multimodalInput.gestureEvent.d.ts
vendored
@ -28,7 +28,7 @@
|
||||
export declare interface Pinch {
|
||||
/**
|
||||
* Action type
|
||||
*
|
||||
* @type { ActionType }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 10
|
||||
*/
|
||||
@ -36,7 +36,7 @@ export declare interface Pinch {
|
||||
|
||||
/**
|
||||
* scale
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 10
|
||||
*/
|
||||
@ -80,7 +80,7 @@ export declare interface Rotate {
|
||||
export declare interface ThreeFingersSwipe {
|
||||
/**
|
||||
* Action type
|
||||
*
|
||||
* @type { ActionType }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 10
|
||||
*/
|
||||
@ -88,7 +88,7 @@ export declare interface ThreeFingersSwipe {
|
||||
|
||||
/**
|
||||
* Coordinate x
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 10
|
||||
*/
|
||||
@ -96,7 +96,7 @@ export declare interface ThreeFingersSwipe {
|
||||
|
||||
/**
|
||||
* Coordinate y
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 10
|
||||
*/
|
||||
@ -113,7 +113,7 @@ export declare interface ThreeFingersSwipe {
|
||||
export declare interface FourFingersSwipe {
|
||||
/**
|
||||
* Action type
|
||||
*
|
||||
* @type { ActionType }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 10
|
||||
*/
|
||||
@ -121,7 +121,7 @@ export declare interface FourFingersSwipe {
|
||||
|
||||
/**
|
||||
* Coordinate x
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 10
|
||||
*/
|
||||
@ -129,7 +129,7 @@ export declare interface FourFingersSwipe {
|
||||
|
||||
/**
|
||||
* Coordinate y
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 10
|
||||
*/
|
||||
|
6
api/@ohos.multimodalInput.inputDevice.d.ts
vendored
6
api/@ohos.multimodalInput.inputDevice.d.ts
vendored
@ -31,7 +31,7 @@ import type { KeyCode } from './@ohos.multimodalInput.keyCode';
|
||||
declare namespace inputDevice {
|
||||
/**
|
||||
* Add or remove device
|
||||
*
|
||||
* @typedef { 'add' | 'remove' } ChangedType
|
||||
* @syscap SystemCapability.MultimodalInput.Input.InputDevice
|
||||
* @since 9
|
||||
*/
|
||||
@ -39,7 +39,7 @@ declare namespace inputDevice {
|
||||
|
||||
/**
|
||||
* The type of input device
|
||||
*
|
||||
* @typedef { 'keyboard' | 'mouse' | 'touchpad' | 'touchscreen' | 'joystick' | 'trackball' } SourceType
|
||||
* @syscap SystemCapability.MultimodalInput.Input.InputDevice
|
||||
* @since 9
|
||||
*/
|
||||
@ -47,7 +47,7 @@ declare namespace inputDevice {
|
||||
|
||||
/**
|
||||
* Axis Type of the input event
|
||||
*
|
||||
* @typedef { 'touchmajor'| 'touchminor' | 'orientation' | 'x' | 'y' | 'pressure' | 'toolminor' | 'toolmajor' | 'null' } AxisType
|
||||
* @syscap SystemCapability.MultimodalInput.Input.InputDevice
|
||||
* @since 9
|
||||
*/
|
||||
|
@ -23,23 +23,25 @@ import { AsyncCallback } from "./@ohos.base";
|
||||
/**
|
||||
* Events for input devices
|
||||
*
|
||||
* @since 9
|
||||
* @namespace inputDeviceCooperate
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Cooperator
|
||||
* @since 9
|
||||
*/
|
||||
|
||||
|
||||
declare namespace inputDeviceCooperate {
|
||||
/**
|
||||
* Enumerates mouse traversal events.
|
||||
*
|
||||
* @since 9
|
||||
* @type { EventMsg }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Cooperator
|
||||
* @systemapi hide for inner use.
|
||||
* @since 9
|
||||
*/
|
||||
enum EventMsg {
|
||||
/**
|
||||
* Mouse traversal message: mouse traversal is enabled.
|
||||
*
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Cooperator
|
||||
* @systemapi hide for inner use
|
||||
* @since 9
|
||||
*/
|
||||
MSG_COOPERATE_INFO_START = 200,
|
||||
@ -47,13 +49,15 @@ declare namespace inputDeviceCooperate {
|
||||
/**
|
||||
* Mouse traversal message: mouse traversal is successful.
|
||||
*
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Cooperator
|
||||
* @systemapi hide for inner use
|
||||
* @since 9
|
||||
*/
|
||||
MSG_COOPERATE_INFO_SUCCESS = 201,
|
||||
|
||||
/**
|
||||
* Mouse traversal message: mouse traversal fails.
|
||||
*
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Cooperator
|
||||
* @since 9
|
||||
*/
|
||||
MSG_COOPERATE_INFO_FAIL = 202,
|
||||
@ -61,6 +65,8 @@ declare namespace inputDeviceCooperate {
|
||||
/**
|
||||
* Mouse traversal status: mouse traversal is enabled.
|
||||
*
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Cooperator
|
||||
* @systemapi hide for inner use
|
||||
* @since 9
|
||||
*/
|
||||
MSG_COOPERATE_STATE_ON = 500,
|
||||
@ -69,6 +75,8 @@ declare namespace inputDeviceCooperate {
|
||||
* Mouse traversal status: mouse traversal is disabled.
|
||||
*
|
||||
* @since 9
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Cooperator
|
||||
* @systemapi hide for inner use
|
||||
*/
|
||||
MSG_COOPERATE_STATE_OFF = 501,
|
||||
}
|
||||
@ -79,8 +87,8 @@ declare namespace inputDeviceCooperate {
|
||||
* @since 9
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Cooperator
|
||||
* @systemapi hide for inner use
|
||||
* @param enable Whether to enable mouse traversal.
|
||||
* @param callback Asynchronous callback function.
|
||||
* @param { boolean } enable Whether to enable mouse traversal.
|
||||
* @param { AsyncCallback<void> } callback Asynchronous callback function.
|
||||
* @throws {BusinessError} 401 - Parameter error.
|
||||
*/
|
||||
function enable(enable: boolean, callback: AsyncCallback<void>): void;
|
||||
@ -88,108 +96,108 @@ declare namespace inputDeviceCooperate {
|
||||
/**
|
||||
* Enable or disable the mouse traversal.
|
||||
*
|
||||
* @since 9
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Cooperator
|
||||
* @systemapi hide for inner use
|
||||
* @param enable Whether to enable mouse traversal.
|
||||
* @throws {BusinessError} 401 - Parameter error.
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Cooperator
|
||||
* @systemapi hide for inner use
|
||||
* @since 9
|
||||
*/
|
||||
function enable(enable: boolean): Promise<void>;
|
||||
|
||||
/**
|
||||
* Starts mouse traversal.
|
||||
*
|
||||
* @since 9
|
||||
* @param { string } sinkDeviceDescriptor Descriptor of the target network for mouse traversal.
|
||||
* @param { number } srcInputDeviceId Identifier of the peripheral device for mouse traversal.
|
||||
* @param { AsyncCallback<void> } callback Asynchronous callback function.
|
||||
* @throws { BusinessError } 401 - Parameter error.
|
||||
* @throws { BusinessError } 4400001 - Incorrect descriptor for the target device.
|
||||
* @throws { BusinessError } 4400002 - Screen hop failed.
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Cooperator
|
||||
* @systemapi hide for inner use
|
||||
* @param sinkDeviceDescriptor Descriptor of the target network for mouse traversal.
|
||||
* @param srcInputDeviceId Identifier of the peripheral device for mouse traversal.
|
||||
* @param callback Asynchronous callback function.
|
||||
* @throws {BusinessError} 401 - Parameter error.
|
||||
* @throws {BusinessError} 4400001 - Incorrect descriptor for the target device.
|
||||
* @throws {BusinessError} 4400002 - Screen hop failed.
|
||||
* @since 9
|
||||
*/
|
||||
function start(sinkDeviceDescriptor: string, srcInputDeviceId: number, callback: AsyncCallback<void>): void;
|
||||
|
||||
/**
|
||||
* Starts mouse traversal.
|
||||
*
|
||||
* @since 9
|
||||
* @param { string } sinkDeviceDescriptor Descriptor of the target network for mouse traversal.
|
||||
* @param { number } srcInputDeviceId Identifier of the peripheral device for mouse traversal.
|
||||
* @throws { BusinessError } 401 - Parameter error.
|
||||
* @throws { BusinessError } 4400001 - Incorrect descriptor for the target device.
|
||||
* @throws { BusinessError } 4400002 - Screen hop failed.
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Cooperator
|
||||
* @systemapi hide for inner use
|
||||
* @param sinkDeviceDescriptor Descriptor of the target network for mouse traversal.
|
||||
* @param srcInputDeviceId Identifier of the peripheral device for mouse traversal.
|
||||
* @throws {BusinessError} 401 - Parameter error.
|
||||
* @throws {BusinessError} 4400001 - Incorrect descriptor for the target device.
|
||||
* @throws {BusinessError} 4400002 - Screen hop failed.
|
||||
*/
|
||||
* @systemapi hide for inner use
|
||||
* @since 9
|
||||
*/
|
||||
function start(sinkDeviceDescriptor: string, srcInputDeviceId: number): Promise<void>;
|
||||
|
||||
/**
|
||||
* Stops mouse traversal.
|
||||
*
|
||||
* @since 9
|
||||
* @param { AsyncCallback<void> } callback Asynchronous callback function.
|
||||
* @throws { BusinessError } 401 - Parameter error.
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Cooperator
|
||||
* @systemapi hide for inner use
|
||||
* @param callback Asynchronous callback function.
|
||||
* @throws {BusinessError} 401 - Parameter error.
|
||||
* @since 9
|
||||
*/
|
||||
function stop(callback: AsyncCallback<void>): void;
|
||||
|
||||
/**
|
||||
* Stops mouse traversal.
|
||||
*
|
||||
* @since 9
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Cooperator
|
||||
* @systemapi hide for inner use
|
||||
* @since 9
|
||||
*/
|
||||
function stop(): Promise<void>;
|
||||
|
||||
/**
|
||||
* Obtains the status of the mouse traversal switch.
|
||||
*
|
||||
* @since 9
|
||||
* @param {string} deviceDescriptor Descriptor of the target network for mouse traversal.
|
||||
* @param {AsyncCallback<{ state: boolean }>} callback Asynchronous callback used to receive the status of the mouse traversal switch.
|
||||
* @throws {BusinessError} 401 - Parameter error.
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Cooperator
|
||||
* @systemapi hide for inner use
|
||||
* @param deviceDescriptor Descriptor of the target network for mouse traversal.
|
||||
* @param callback Asynchronous callback used to receive the status of the mouse traversal switch.
|
||||
* @throws {BusinessError} 401 - Parameter error.
|
||||
* @since 9
|
||||
*/
|
||||
function getState(deviceDescriptor: string, callback: AsyncCallback<{ state: boolean }>): void;
|
||||
|
||||
/**
|
||||
* Obtains the status of the mouse traversal switch.
|
||||
*
|
||||
* @since 9
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Cooperator
|
||||
* @systemapi hide for inner use
|
||||
* @param deviceDescriptor Descriptor of the target network for mouse traversal.
|
||||
* @throws {BusinessError} 401 - Parameter error.
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Cooperator
|
||||
* @systemapi hide for inner use
|
||||
* @since 9
|
||||
*/
|
||||
function getState(deviceDescriptor: string): Promise<{ state: boolean }>;
|
||||
|
||||
/**
|
||||
* Enables listening for mouse traversal events.
|
||||
*
|
||||
* @since 9
|
||||
* @param { 'cooperation' } type Registration type.
|
||||
* @param { AsyncCallback<{ deviceDescriptor: string, eventMsg: EventMsg }> } callback Asynchronous callback used to receive mouse traversal events.
|
||||
* @returns Callback for the input device event.
|
||||
* @throws { BusinessError } 401 - Parameter error.
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Cooperator
|
||||
* @systemapi hide for inner use
|
||||
* @param type Registration type.
|
||||
* @param callback Asynchronous callback used to receive mouse traversal events.
|
||||
* @returns Callback for the input device event.
|
||||
* @throws {BusinessError} 401 - Parameter error.
|
||||
* @since 9
|
||||
*/
|
||||
function on(type: 'cooperation', callback: AsyncCallback<{ deviceDescriptor: string, eventMsg: EventMsg }>): void;
|
||||
|
||||
/**
|
||||
* Disables listening for mouse traversal events.
|
||||
*
|
||||
* @since 9
|
||||
* @param { 'cooperation' } type Registration type.
|
||||
* @param { AsyncCallback<void> } callback Asynchronous callback used to return the result.
|
||||
* @throws { BusinessError } 401 - Parameter error.
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Cooperator
|
||||
* @systemapi hide for inner use
|
||||
* @param type Registration type.
|
||||
* @param callback Asynchronous callback used to return the result.
|
||||
* @throws {BusinessError} 401 - Parameter error.
|
||||
* @since 9
|
||||
*/
|
||||
function off(type: 'cooperation', callback?: AsyncCallback<void>): void;
|
||||
|
||||
|
10
api/@ohos.multimodalInput.inputEvent.d.ts
vendored
10
api/@ohos.multimodalInput.inputEvent.d.ts
vendored
@ -28,7 +28,7 @@
|
||||
export declare interface InputEvent {
|
||||
/**
|
||||
* Unique event ID generated by the server
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -36,7 +36,7 @@ export declare interface InputEvent {
|
||||
|
||||
/**
|
||||
* ID of the device that reports the input event
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -44,7 +44,7 @@ export declare interface InputEvent {
|
||||
|
||||
/**
|
||||
* Occurrence time of the input event
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -52,7 +52,7 @@ export declare interface InputEvent {
|
||||
|
||||
/**
|
||||
* ID of the target screen
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -60,7 +60,7 @@ export declare interface InputEvent {
|
||||
|
||||
/**
|
||||
* ID of the target window
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
|
@ -40,7 +40,7 @@ declare namespace inputEventClient {
|
||||
interface KeyEvent {
|
||||
/**
|
||||
* The status of key.
|
||||
*
|
||||
* @type { boolean }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.InputSimulator
|
||||
* @systemapi hide for inner use
|
||||
* @since 8
|
||||
@ -49,7 +49,7 @@ declare namespace inputEventClient {
|
||||
|
||||
/**
|
||||
* The keyCode value of key.
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.InputSimulator
|
||||
* @systemapi hide for inner use
|
||||
* @since 8
|
||||
@ -58,7 +58,7 @@ declare namespace inputEventClient {
|
||||
|
||||
/**
|
||||
* Key hold duration.
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.InputSimulator
|
||||
* @systemapi hide for inner use
|
||||
* @since 8
|
||||
@ -67,7 +67,7 @@ declare namespace inputEventClient {
|
||||
|
||||
/**
|
||||
* Whether the key is blocked.
|
||||
*
|
||||
* @type { boolean }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.InputSimulator
|
||||
* @systemapi hide for inner use
|
||||
* @since 8
|
||||
|
30
api/@ohos.multimodalInput.keyEvent.d.ts
vendored
30
api/@ohos.multimodalInput.keyEvent.d.ts
vendored
@ -63,7 +63,7 @@ export declare enum Action {
|
||||
export declare interface Key {
|
||||
/**
|
||||
* Key code
|
||||
*
|
||||
* @type { KeyCode }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -71,7 +71,7 @@ export declare interface Key {
|
||||
|
||||
/**
|
||||
* Time when the key is pressed
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -79,7 +79,7 @@ export declare interface Key {
|
||||
|
||||
/**
|
||||
* Device to which the key belongs
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -96,7 +96,7 @@ export declare interface Key {
|
||||
export declare interface KeyEvent extends InputEvent {
|
||||
/**
|
||||
* Key action
|
||||
*
|
||||
* @type { Action }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -104,7 +104,7 @@ export declare interface KeyEvent extends InputEvent {
|
||||
|
||||
/**
|
||||
* Key that has changed
|
||||
*
|
||||
* @type { Key }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -112,7 +112,7 @@ export declare interface KeyEvent extends InputEvent {
|
||||
|
||||
/**
|
||||
* Unicode character corresponding to the key
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -120,7 +120,7 @@ export declare interface KeyEvent extends InputEvent {
|
||||
|
||||
/**
|
||||
* List of pressed keys
|
||||
*
|
||||
* @type { Key[] }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -128,7 +128,7 @@ export declare interface KeyEvent extends InputEvent {
|
||||
|
||||
/**
|
||||
* Whether ctrlKey is being pressed
|
||||
*
|
||||
* @type { boolean }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -136,7 +136,7 @@ export declare interface KeyEvent extends InputEvent {
|
||||
|
||||
/**
|
||||
* Whether altKey is being pressed
|
||||
*
|
||||
* @type { boolean }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -144,7 +144,7 @@ export declare interface KeyEvent extends InputEvent {
|
||||
|
||||
/**
|
||||
* Whether shiftKey is being pressed
|
||||
*
|
||||
* @type { boolean }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -152,7 +152,7 @@ export declare interface KeyEvent extends InputEvent {
|
||||
|
||||
/**
|
||||
* Whether logoKey is being pressed
|
||||
*
|
||||
* @type { boolean }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -160,7 +160,7 @@ export declare interface KeyEvent extends InputEvent {
|
||||
|
||||
/**
|
||||
* Whether fnKey is being pressed
|
||||
*
|
||||
* @type { boolean }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -168,7 +168,7 @@ export declare interface KeyEvent extends InputEvent {
|
||||
|
||||
/**
|
||||
* Whether capsLock is active
|
||||
*
|
||||
* @type { boolean }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -176,7 +176,7 @@ export declare interface KeyEvent extends InputEvent {
|
||||
|
||||
/**
|
||||
* Whether numLock is active
|
||||
*
|
||||
* @type { boolean }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -184,7 +184,7 @@ export declare interface KeyEvent extends InputEvent {
|
||||
|
||||
/**
|
||||
* Whether scrollLock is active
|
||||
*
|
||||
* @type { boolean }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
|
38
api/@ohos.multimodalInput.mouseEvent.d.ts
vendored
38
api/@ohos.multimodalInput.mouseEvent.d.ts
vendored
@ -218,7 +218,7 @@ export declare enum Axis {
|
||||
export declare interface AxisValue {
|
||||
/**
|
||||
* Axis type
|
||||
*
|
||||
* @type { Axis }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -226,7 +226,7 @@ export declare interface AxisValue {
|
||||
|
||||
/**
|
||||
* Axis value
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -284,7 +284,7 @@ export declare enum ToolType {
|
||||
export declare interface MouseEvent extends InputEvent {
|
||||
/**
|
||||
* Mouse event action
|
||||
*
|
||||
* @type { Action }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -292,7 +292,7 @@ export declare interface MouseEvent extends InputEvent {
|
||||
|
||||
/**
|
||||
* X coordinate of the mouse pointer on the screen
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -300,7 +300,7 @@ export declare interface MouseEvent extends InputEvent {
|
||||
|
||||
/**
|
||||
* Y coordinate of the mouse pointer on the screen
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -308,7 +308,7 @@ export declare interface MouseEvent extends InputEvent {
|
||||
|
||||
/**
|
||||
* X coordinate of the mouse pointer in the window
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -316,7 +316,7 @@ export declare interface MouseEvent extends InputEvent {
|
||||
|
||||
/**
|
||||
* Y coordinate of the mouse pointer in the window
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -325,7 +325,7 @@ export declare interface MouseEvent extends InputEvent {
|
||||
/**
|
||||
* X axis offset relative to the previous reported mouse pointer position. When the mouse pointer is at
|
||||
* the edge of the screen, the value may be less than the difference of the X coordinate reported twice.
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -333,7 +333,7 @@ export declare interface MouseEvent extends InputEvent {
|
||||
|
||||
/**
|
||||
* Y axis offset relative to the previous reported mouse pointer position
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -349,7 +349,7 @@ export declare interface MouseEvent extends InputEvent {
|
||||
|
||||
/**
|
||||
* Button that is being pressed
|
||||
*
|
||||
* @type { Button[] }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -357,7 +357,7 @@ export declare interface MouseEvent extends InputEvent {
|
||||
|
||||
/**
|
||||
* All axis data contained in the event
|
||||
*
|
||||
* @type { AxisValue[] }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -365,7 +365,7 @@ export declare interface MouseEvent extends InputEvent {
|
||||
|
||||
/**
|
||||
* List of pressed keys
|
||||
*
|
||||
* @type { KeyCode[] }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -373,7 +373,7 @@ export declare interface MouseEvent extends InputEvent {
|
||||
|
||||
/**
|
||||
* Whether ctrlKey is being pressed
|
||||
*
|
||||
* @type { boolean }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -381,7 +381,7 @@ export declare interface MouseEvent extends InputEvent {
|
||||
|
||||
/**
|
||||
* Whether altKey is being pressed
|
||||
*
|
||||
* @type { boolean }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -389,7 +389,7 @@ export declare interface MouseEvent extends InputEvent {
|
||||
|
||||
/**
|
||||
* Whether shiftKey is being pressed
|
||||
*
|
||||
* @type { boolean }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -405,7 +405,7 @@ export declare interface MouseEvent extends InputEvent {
|
||||
|
||||
/**
|
||||
* Whether fnKey is being pressed
|
||||
*
|
||||
* @type { boolean }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -413,7 +413,7 @@ export declare interface MouseEvent extends InputEvent {
|
||||
|
||||
/**
|
||||
* Whether capsLock is active
|
||||
*
|
||||
* @type { boolean }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -421,7 +421,7 @@ export declare interface MouseEvent extends InputEvent {
|
||||
|
||||
/**
|
||||
* Whether numLock is active
|
||||
*
|
||||
* @type { boolean }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -429,7 +429,7 @@ export declare interface MouseEvent extends InputEvent {
|
||||
|
||||
/**
|
||||
* Whether scrollLock is active
|
||||
*
|
||||
* @type { boolean }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
|
44
api/@ohos.multimodalInput.touchEvent.d.ts
vendored
44
api/@ohos.multimodalInput.touchEvent.d.ts
vendored
@ -177,7 +177,7 @@ export declare enum SourceType {
|
||||
export declare interface Touch {
|
||||
/**
|
||||
* Pointer identifier
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -185,7 +185,7 @@ export declare interface Touch {
|
||||
|
||||
/**
|
||||
* Time stamp when touch is pressed
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -193,7 +193,7 @@ export declare interface Touch {
|
||||
|
||||
/**
|
||||
* X coordinate of the touch position on the screen
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -201,7 +201,7 @@ export declare interface Touch {
|
||||
|
||||
/**
|
||||
* Y coordinate of the touch position on the screen
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -209,7 +209,7 @@ export declare interface Touch {
|
||||
|
||||
/**
|
||||
* X coordinate of the touch position in the window
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -217,7 +217,7 @@ export declare interface Touch {
|
||||
|
||||
/**
|
||||
* Y coordinate of the touch position in the window
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -225,7 +225,7 @@ export declare interface Touch {
|
||||
|
||||
/**
|
||||
* Pressure value. The value range is [0.0, 1.0]. The value 0.0 indicates that the pressure is not supported.
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -233,7 +233,7 @@ export declare interface Touch {
|
||||
|
||||
/**
|
||||
* Width of the contact area when touch is pressed
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -241,7 +241,7 @@ export declare interface Touch {
|
||||
|
||||
/**
|
||||
* Height of the contact area when touch is pressed
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -249,7 +249,7 @@ export declare interface Touch {
|
||||
|
||||
/**
|
||||
* Angle relative to the YZ plane. The value range is [-90, 90]. A positive value indicates a rightward tilt.
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -257,7 +257,7 @@ export declare interface Touch {
|
||||
|
||||
/**
|
||||
* Angle relative to the XZ plane. The value range is [-90, 90]. A positive value indicates a downward tilt.
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -265,7 +265,7 @@ export declare interface Touch {
|
||||
|
||||
/**
|
||||
* Center point X of the tool area
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -273,7 +273,7 @@ export declare interface Touch {
|
||||
|
||||
/**
|
||||
* Center point Y of the tool area
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -281,7 +281,7 @@ export declare interface Touch {
|
||||
|
||||
/**
|
||||
* Width of the tool area
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -289,7 +289,7 @@ export declare interface Touch {
|
||||
|
||||
/**
|
||||
* Height of the tool area
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -297,7 +297,7 @@ export declare interface Touch {
|
||||
|
||||
/**
|
||||
* X coordinate of the input device
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -305,7 +305,7 @@ export declare interface Touch {
|
||||
|
||||
/**
|
||||
* Y coordinate of the input device
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -313,7 +313,7 @@ export declare interface Touch {
|
||||
|
||||
/**
|
||||
* Tool type
|
||||
*
|
||||
* @type { ToolType }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -330,7 +330,7 @@ export declare interface Touch {
|
||||
export declare interface TouchEvent extends InputEvent {
|
||||
/**
|
||||
* Touch action
|
||||
*
|
||||
* @type { Action }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -338,7 +338,7 @@ export declare interface TouchEvent extends InputEvent {
|
||||
|
||||
/**
|
||||
* Current touch point
|
||||
*
|
||||
* @type { Touch }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -346,7 +346,7 @@ export declare interface TouchEvent extends InputEvent {
|
||||
|
||||
/**
|
||||
* All touch points
|
||||
*
|
||||
* @type { Touch[] }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -354,7 +354,7 @@ export declare interface TouchEvent extends InputEvent {
|
||||
|
||||
/**
|
||||
* Device type of the touch source
|
||||
*
|
||||
* @type { SourceType }
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @since 9
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user