mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-23 15:20:17 +00:00
add interface
Signed-off-by: hungry_feiwei <huxiao31@huawei.com>
This commit is contained in:
parent
5e4b237d9c
commit
e3b56dc019
21
api/@ohos.multimodalInput.inputDevice.d.ts
vendored
21
api/@ohos.multimodalInput.inputDevice.d.ts
vendored
@ -319,27 +319,6 @@ declare namespace inputDevice {
|
||||
function getKeyboardType(deviceId: number, callback: AsyncCallback<KeyboardType>): void;
|
||||
function getKeyboardType(deviceId: number): Promise<KeyboardType>;
|
||||
|
||||
/**
|
||||
* Sets whether the pointer icon is visible.
|
||||
*
|
||||
* @since 9
|
||||
* @syscap SystemCapability.MultimodalInput.Input.InputDevice
|
||||
* @param visible Whether the pointer icon is visible. The value **true** indicates that the pointer icon is visible, and the value **false** indicates the opposite.
|
||||
* @return callback function, receive reported data
|
||||
*/
|
||||
function setPointerVisibility(visible: boolean, callback: AsyncCallback<void>): void;
|
||||
function setPointerVisibility(visible: boolean): Promise<void>;
|
||||
|
||||
/**
|
||||
* 获取光标是否可见
|
||||
*
|
||||
* @since 9
|
||||
* @syscap SystemCapability.MultimodalInput.Input.InputDevice
|
||||
* @return callback function, receive reported data
|
||||
*/
|
||||
function isPointerVisible(callback: AsyncCallback<boolean>): void;
|
||||
function isPointerVisible(): Promise<boolean>;
|
||||
|
||||
/**
|
||||
* 鼠标位置设定
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user