mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-23 15:20:17 +00:00
api问题整改&supportKeys接口回调改为AsyncCallback
Signed-off-by: mayunteng_1 <mayunteng@huawei.com> Change-Id: I49cf285d6bb7ec6590a5dc267cd086ae6bbe4e30
This commit is contained in:
parent
65bd44eddd
commit
953d6dc707
1
api/@ohos.multimodalInput.inputConsumer.d.ts
vendored
1
api/@ohos.multimodalInput.inputConsumer.d.ts
vendored
@ -20,7 +20,6 @@ import { Callback } from './basic';
|
||||
*
|
||||
* @since 8
|
||||
* @syscap SystemCapability.MultimodalInput.Input.InputConsumer
|
||||
* @import import inputConsumer from '@ohos.multimodalInput.inputConsumer';
|
||||
* @systemapi hide for inner use
|
||||
*/
|
||||
|
||||
|
15
api/@ohos.multimodalInput.inputDevice.d.ts
vendored
15
api/@ohos.multimodalInput.inputDevice.d.ts
vendored
@ -21,7 +21,6 @@ import { KeyCode } from "./@ohos.multimodalInput.keyCode"
|
||||
*
|
||||
* @since 8
|
||||
* @syscap SystemCapability.MultimodalInput.Input.InputDevice
|
||||
* @import import inputDevice from '@ohos.multimodalInput.inputDevice';
|
||||
*/
|
||||
declare namespace inputDevice {
|
||||
/**
|
||||
@ -93,7 +92,7 @@ declare namespace inputDevice {
|
||||
* @since 9
|
||||
* @syscap SystemCapability.MultimodalInput.Input.InputDevice
|
||||
* @param type Type of the input device event, which is **change**.
|
||||
* @return Callback for the input device event.
|
||||
* @returns Callback for the input device event.
|
||||
* @throws {BusinessError} 401 - Parameter error.
|
||||
*/
|
||||
function on(type: "change", listener: Callback<DeviceListener>): void;
|
||||
@ -104,7 +103,7 @@ declare namespace inputDevice {
|
||||
* @since 9
|
||||
* @syscap SystemCapability.MultimodalInput.Input.InputDevice
|
||||
* @param type Type of the input device event, which is **change**.
|
||||
* @return Callback for the input device event.
|
||||
* @returns Callback for the input device event.
|
||||
* @throws {BusinessError} 401 - Parameter error.
|
||||
*/
|
||||
function off(type: "change", listener?: Callback<DeviceListener>): void;
|
||||
@ -318,10 +317,10 @@ declare namespace inputDevice {
|
||||
* @syscap SystemCapability.MultimodalInput.Input.InputDevice
|
||||
* @param deviceId ID of the input device.
|
||||
* @param keys Key codes of the input device, You can query a maximum of five key codes at a time.
|
||||
* @return Returns a result indicating whether the specified key codes are supported.
|
||||
* @returns Returns a result indicating whether the specified key codes are supported.
|
||||
* @throws {BusinessError} 401 - Parameter error.
|
||||
*/
|
||||
function supportKeys(deviceId: number, keys: Array<KeyCode>, callback: Callback<Array<boolean>>): void;
|
||||
function supportKeys(deviceId: number, keys: Array<KeyCode>, callback: AsyncCallback<Array<boolean>>): void;
|
||||
|
||||
/**
|
||||
* Checks whether the specified key codes of an input device are supported.
|
||||
@ -330,7 +329,7 @@ declare namespace inputDevice {
|
||||
* @syscap SystemCapability.MultimodalInput.Input.InputDevice
|
||||
* @param deviceId ID of the input device.
|
||||
* @param keys Key codes of the input device, You can query a maximum of five key codes at a time.
|
||||
* @return Returns a result indicating whether the specified key codes are supported.
|
||||
* @returns Returns a result indicating whether the specified key codes are supported.
|
||||
* @throws {BusinessError} 401 - Parameter error.
|
||||
*/
|
||||
function supportKeys(deviceId: number, keys: Array<KeyCode>): Promise<Array<boolean>>;
|
||||
@ -341,7 +340,7 @@ declare namespace inputDevice {
|
||||
* @since 9
|
||||
* @syscap SystemCapability.MultimodalInput.Input.InputDevice
|
||||
* @param deviceId ID of the specified input device.
|
||||
* @return Returns the keyboard type.
|
||||
* @returns Returns the keyboard type.
|
||||
* @throws {BusinessError} 401 - Parameter error.
|
||||
*/
|
||||
function getKeyboardType(deviceId: number, callback: AsyncCallback<KeyboardType>): void;
|
||||
@ -352,7 +351,7 @@ declare namespace inputDevice {
|
||||
* @since 9
|
||||
* @syscap SystemCapability.MultimodalInput.Input.InputDevice
|
||||
* @param deviceId ID of the specified input device.
|
||||
* @return Returns the keyboard type.
|
||||
* @returns Returns the keyboard type.
|
||||
* @throws {BusinessError} 401 - Parameter error.
|
||||
*/
|
||||
function getKeyboardType(deviceId: number): Promise<KeyboardType>;
|
||||
|
1
api/@ohos.multimodalInput.inputEvent.d.ts
vendored
1
api/@ohos.multimodalInput.inputEvent.d.ts
vendored
@ -18,7 +18,6 @@
|
||||
*
|
||||
* @since 9
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @import import InputEvent from '@ohos.multimodalInput.inputEvent';
|
||||
*/
|
||||
export declare interface InputEvent {
|
||||
/**
|
||||
|
@ -18,7 +18,6 @@
|
||||
*
|
||||
* @since 8
|
||||
* @syscap SystemCapability.MultimodalInput.Input.InputSimulator
|
||||
* @import import inputEventClient from '@ohos.multimodalInput.inputEventClient';
|
||||
* @systemapi hide for inner use
|
||||
*/
|
||||
|
||||
|
5
api/@ohos.multimodalInput.inputMonitor.d.ts
vendored
5
api/@ohos.multimodalInput.inputMonitor.d.ts
vendored
@ -21,7 +21,6 @@ import { MouseEvent } from './@ohos.multimodalInput.mouseEvent';
|
||||
* System API, available only to system processes
|
||||
* @since 7
|
||||
* @syscap SystemCapability.MultimodalInput.Input.InputMonitor
|
||||
* @import import inputMonitor from '@ohos.multimodalInput.inputMonitor';
|
||||
* @permission ohos.permission.INPUT_MONITORING
|
||||
* @systemapi hide for inner use
|
||||
*/
|
||||
@ -63,7 +62,7 @@ declare namespace inputMonitor {
|
||||
function on(type:"mouse", receiver:Callback<MouseEvent>):void;
|
||||
|
||||
/**
|
||||
* Cancels listening for touch input events.
|
||||
* Cancel listening for touch input events.
|
||||
* @since 7
|
||||
* @syscap SystemCapability.MultimodalInput.Input.InputMonitor
|
||||
* @systemapi hide for inner use
|
||||
@ -76,7 +75,7 @@ declare namespace inputMonitor {
|
||||
function off(type:"touch", receiver?:TouchEventReceiver):void;
|
||||
|
||||
/**
|
||||
* Cancels listening for mouse input events.
|
||||
* Cancel listening for mouse input events.
|
||||
* @since 9
|
||||
* @syscap SystemCapability.MultimodalInput.Input.InputMonitor
|
||||
* @systemapi hide for inner use
|
||||
|
1
api/@ohos.multimodalInput.keyCode.d.ts
vendored
1
api/@ohos.multimodalInput.keyCode.d.ts
vendored
@ -18,7 +18,6 @@
|
||||
*
|
||||
* @since 9
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @import import {KeyCode} from '@ohos.multimodalInput.keyCode',
|
||||
*/
|
||||
|
||||
export declare enum KeyCode {
|
||||
|
3
api/@ohos.multimodalInput.keyEvent.d.ts
vendored
3
api/@ohos.multimodalInput.keyEvent.d.ts
vendored
@ -19,7 +19,6 @@ import { KeyCode } from "./@ohos.multimodalInput.keyCode"
|
||||
*
|
||||
* @since 9
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @import import {Action} from '@ohos.multimodalInput.keyEvent';
|
||||
*/
|
||||
export declare enum Action {
|
||||
/**
|
||||
@ -43,7 +42,6 @@ export declare enum Action {
|
||||
*
|
||||
* @since 9
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @import import {Key} from '@ohos.multimodalInput.keyEvent';
|
||||
*/
|
||||
export declare interface Key {
|
||||
/**
|
||||
@ -67,7 +65,6 @@ export declare interface Key {
|
||||
*
|
||||
* @since 9
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @import import {KeyEvent} from '@ohos.multimodalInput.keyEvent';
|
||||
*/
|
||||
export declare interface KeyEvent extends InputEvent {
|
||||
/**
|
||||
|
5
api/@ohos.multimodalInput.mouseEvent.d.ts
vendored
5
api/@ohos.multimodalInput.mouseEvent.d.ts
vendored
@ -20,7 +20,6 @@ import { KeyCode } from "./@ohos.multimodalInput.keyCode"
|
||||
*
|
||||
* @since 9
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @import import {Action} from '@ohos.multimodalInput.mouseEvent';
|
||||
*/
|
||||
export declare enum Action {
|
||||
/**
|
||||
@ -64,7 +63,6 @@ export declare enum Action {
|
||||
*
|
||||
* @since 9
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @import import {Button} from '@ohos.multimodalInput.mouseEvent';
|
||||
*/
|
||||
export declare enum Button {
|
||||
/**
|
||||
@ -113,7 +111,6 @@ export declare enum Button {
|
||||
*
|
||||
* @since 9
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @import import {Axis} from '@ohos.multimodalInput.mouseEvent';
|
||||
*/
|
||||
export declare enum Axis {
|
||||
/**
|
||||
@ -137,7 +134,6 @@ export declare enum Axis {
|
||||
*
|
||||
* @since 9
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @import import {AxisValue} from '@ohos.multimodalInput.mouseEvent';
|
||||
*/
|
||||
export declare interface AxisValue {
|
||||
/**
|
||||
@ -156,7 +152,6 @@ export declare interface AxisValue {
|
||||
*
|
||||
* @since 9
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @import import {MouseEvent} from '@ohos.multimodalInput.mouseEvent';
|
||||
*/
|
||||
export declare interface MouseEvent extends InputEvent {
|
||||
/**
|
||||
|
13
api/@ohos.multimodalInput.pointer.d.ts
vendored
13
api/@ohos.multimodalInput.pointer.d.ts
vendored
@ -20,7 +20,6 @@ import { AsyncCallback } from "./basic";
|
||||
*
|
||||
* @since 9
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Pointer
|
||||
* @import import pointer from '@ohos.multimodalInput.pointer';
|
||||
*/
|
||||
declare namespace pointer {
|
||||
/**
|
||||
@ -242,7 +241,7 @@ declare namespace pointer {
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Pointer
|
||||
* @systemapi hide for inner use
|
||||
* @param speed Pointer moving speed.
|
||||
* @return Returns the result through a promise.
|
||||
* @returns Returns the result through a promise.
|
||||
* @throws {BusinessError} 401 - Parameter error.
|
||||
*/
|
||||
function setPointerSpeed(speed: number): Promise<void>;
|
||||
@ -262,7 +261,7 @@ declare namespace pointer {
|
||||
* @since 9
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Pointer
|
||||
* @systemapi hide for inner use
|
||||
* @return Returns the result through a promise.
|
||||
* @returns Returns the result through a promise.
|
||||
*/
|
||||
function getPointerSpeed(): Promise<number>;
|
||||
|
||||
@ -283,7 +282,7 @@ declare namespace pointer {
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Pointer
|
||||
* @param windowId Window ID.
|
||||
* @param pointerStyle Pointer style.
|
||||
* @return Returns the result through a promise.
|
||||
* @returns Returns the result through a promise.
|
||||
* @throws {BusinessError} 401 - Parameter error.
|
||||
*/
|
||||
function setPointerStyle(windowId: number, pointerStyle: PointerStyle): Promise<void>;
|
||||
@ -303,7 +302,7 @@ declare namespace pointer {
|
||||
* @since 9
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Pointer
|
||||
* @param windowId Window ID.
|
||||
* @return Returns the result through a promise.
|
||||
* @returns Returns the result through a promise.
|
||||
* @throws {BusinessError} 401 - Parameter error.
|
||||
*/
|
||||
function getPointerStyle(windowId: number): Promise<PointerStyle>;
|
||||
@ -335,7 +334,7 @@ declare namespace pointer {
|
||||
*
|
||||
* @since 9
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Pointer
|
||||
* @return Returns <b>true</b> if the pointer icon is visible; returns <b>false</b> otherwise.
|
||||
* @returns Returns <b>true</b> if the pointer icon is visible; returns <b>false</b> otherwise.
|
||||
* @throws {BusinessError} 401 - Parameter error.
|
||||
*/
|
||||
function isPointerVisible(callback: AsyncCallback<boolean>): void;
|
||||
@ -345,7 +344,7 @@ declare namespace pointer {
|
||||
*
|
||||
* @since 9
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Pointer
|
||||
* @return Returns <b>true</b> if the pointer icon is visible; returns <b>false</b> otherwise.
|
||||
* @returns Returns <b>true</b> if the pointer icon is visible; returns <b>false</b> otherwise.
|
||||
*/
|
||||
function isPointerVisible(): Promise<boolean>;
|
||||
}
|
||||
|
5
api/@ohos.multimodalInput.touchEvent.d.ts
vendored
5
api/@ohos.multimodalInput.touchEvent.d.ts
vendored
@ -19,7 +19,6 @@ import { InputEvent } from './@ohos.multimodalInput.inputEvent'
|
||||
*
|
||||
* @since 9
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @import import {Action} from '@ohos.multimodalInput.touchEvent';
|
||||
*/
|
||||
export declare enum Action {
|
||||
/**
|
||||
@ -48,7 +47,6 @@ export declare enum Action {
|
||||
*
|
||||
* @since 9
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @import import {ToolType} from '@ohos.multimodalInput.touchEvent';
|
||||
*/
|
||||
export declare enum ToolType {
|
||||
/**
|
||||
@ -94,7 +92,6 @@ export declare enum ToolType {
|
||||
*
|
||||
* @since 9
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @import import {SourceType} from '@ohos.multimodalInput.touchEvent';
|
||||
*/
|
||||
export declare enum SourceType {
|
||||
/**
|
||||
@ -118,7 +115,6 @@ export declare enum SourceType {
|
||||
*
|
||||
* @since 9
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @import import {Touch} from '@ohos.multimodalInput.touchEvent';
|
||||
*/
|
||||
export declare interface Touch {
|
||||
/**
|
||||
@ -217,7 +213,6 @@ export declare interface Touch {
|
||||
*
|
||||
* @since 9
|
||||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||||
* @import import {TouchEvent} from '@ohos.multimodalInput.touchEvent';
|
||||
*/
|
||||
export declare interface TouchEvent extends InputEvent {
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user