diff --git a/api/@ohos.multimodalInput.inputDevice.d.ts b/api/@ohos.multimodalInput.inputDevice.d.ts index c93165c80edf91f152cc0edc001424034191a5a5..70fedd711529d34e1aa5ae88fa508b4e197baed8 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.