add interface

Signed-off-by: hungry_feiwei <huxiao31@huawei.com>
This commit is contained in:
hungry_feiwei 2022-05-05 16:37:41 +08:00
parent 5e4b237d9c
commit e3b56dc019

View File

@ -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>;
/**
*
*