From a391b910ab3d5b371019b7d0f2f49b814d4201e2 Mon Sep 17 00:00:00 2001 From: KangPeng Date: Thu, 4 Sep 2025 16:37:23 +0800 Subject: [PATCH] =?UTF-8?q?arkts1.2=20=E9=9D=99=E6=80=81=E6=94=B9=E9=80=A0?= =?UTF-8?q?inputdevice=E6=A8=A1=E5=9D=976=E4=B8=AA=E6=8E=A5=E5=8F=A3-0728?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: KangPeng --- api/@ohos.multimodalInput.inputDevice.d.ts | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/api/@ohos.multimodalInput.inputDevice.d.ts b/api/@ohos.multimodalInput.inputDevice.d.ts index c93165c80e..70fedd7115 100644 --- a/api/@ohos.multimodalInput.inputDevice.d.ts +++ b/api/@ohos.multimodalInput.inputDevice.d.ts @@ -213,7 +213,8 @@ declare namespace inputDevice { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @syscap SystemCapability.MultimodalInput.Input.InputDevice - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function off(type: 'change', listener?: Callback): void; @@ -464,31 +465,31 @@ declare namespace inputDevice { * Obtains the IDs of all input devices. * This API uses an asynchronous callback to return the result. * - * @param { AsyncCallback> } callback - Callback used to return the IDs of all input devices. id is the unique ID of an input device. + * @param { AsyncCallback> } callback - Callback used to return the IDs of all input devices. id is the unique ID of an input device. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @syscap SystemCapability.MultimodalInput.Input.InputDevice * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - function getDeviceList(callback: AsyncCallback>): void; + function getDeviceList(callback: AsyncCallback>): void; /** * Obtains the IDs of all input devices. * This API uses a promise to return the result. * - * @returns { Promise> } - Promise used to return the IDs of all input devices. + * @returns { Promise> } - Promise used to return the IDs of all input devices. * @syscap SystemCapability.MultimodalInput.Input.InputDevice * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - function getDeviceList(): Promise>; + function getDeviceList(): Promise>; /** * Obtains information about the specified input device. * This API uses an asynchronous callback to return the result. * - * @param { number } deviceId - ID of the input device. + * @param { int } deviceId - ID of the input device. * @param { AsyncCallback } callback - Callback used to return information about the input device, * including device ID, name, supported source, physical address, version information, and product information. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; @@ -497,13 +498,13 @@ declare namespace inputDevice { * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - function getDeviceInfo(deviceId: number, callback: AsyncCallback): void; + function getDeviceInfo(deviceId: int, callback: AsyncCallback): void; /** * Obtains the information about the input device with the specified ID. * This API uses a promise to return the result. * - * @param { number } deviceId - ID of the input device. + * @param { int } deviceId - ID of the input device. * @returns { Promise } Promise used to return the information about the input device. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. @@ -511,7 +512,7 @@ declare namespace inputDevice { * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - function getDeviceInfo(deviceId: number): Promise; + function getDeviceInfo(deviceId: int): Promise; /** * Obtains information about the specified input device. -- Gitee