mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 22:24:20 +00:00
add interface
Signed-off-by: wangli <wangli382@huawei.com>
This commit is contained in:
parent
e5f217db40
commit
42065118f8
44
api/@ohos.multimodalInput.inputDevice.d.ts
vendored
44
api/@ohos.multimodalInput.inputDevice.d.ts
vendored
@ -462,6 +462,50 @@ declare namespace inputDevice {
|
||||
* @since 9
|
||||
*/
|
||||
function getKeyboardType(deviceId: number): Promise<KeyboardType>;
|
||||
|
||||
/**
|
||||
* Setting the Keyboard Repetition Delay.
|
||||
*
|
||||
* @param { number } delay - Repeat delay time.
|
||||
* @param { AsyncCallback<void> } callback - Callback used to return the result.
|
||||
* @throws { BusinessError } 401 - Parameter error.
|
||||
* @syscap SystemCapability.MultimodalInput.Input.InputDevice
|
||||
* @since 10
|
||||
*/
|
||||
function setKeyboardRepeatDelay(delay: number, callback: AsyncCallback<void>): void;
|
||||
|
||||
/**
|
||||
* Setting the Keyboard Repetition Delay.
|
||||
*
|
||||
* @param { number } delay - Repeat delay time.
|
||||
* @returns { Promise<void> } Returns the result through a promise.
|
||||
* @throws { BusinessError } 401 - Parameter error.
|
||||
* @syscap SystemCapability.MultimodalInput.Input.InputDevice
|
||||
* @since 10
|
||||
*/
|
||||
function setKeyboardRepeatDelay(delay: number): Promise<void>;
|
||||
|
||||
/**
|
||||
* Setting the Keyboard Key Repetition Rate.
|
||||
*
|
||||
* @param { number } rate - Key Repetition Rate.
|
||||
* @param { AsyncCallback<void> } callback - Callback used to return the result.
|
||||
* @throws { BusinessError } 401 - Parameter error.
|
||||
* @syscap SystemCapability.MultimodalInput.Input.InputDevice
|
||||
* @since 10
|
||||
*/
|
||||
function setKeyboardRepeatRate(rate: number, callback: AsyncCallback<void>): void;
|
||||
|
||||
/**
|
||||
* Setting the Keyboard Key Repetition Rate.
|
||||
*
|
||||
* @param { number } rate - Key Repetition Rate.
|
||||
* @returns { Promise<void> } Returns the result through a promise.
|
||||
* @throws { BusinessError } 401 - Parameter error.
|
||||
* @syscap SystemCapability.MultimodalInput.Input.InputDevice
|
||||
* @since 10
|
||||
*/
|
||||
function setKeyboardRepeatRate(rate: number): Promise<void>;
|
||||
}
|
||||
|
||||
export default inputDevice;
|
Loading…
Reference in New Issue
Block a user