diff --git a/api/@ohos.multimodalInput.inputDevice.d.ts b/api/@ohos.multimodalInput.inputDevice.d.ts old mode 100644 new mode 100755 index 8823d8574ef80dbe1081bb981aec62000879d8c2..77647b79f7179057e92958e5daef564ea75e389c --- a/api/@ohos.multimodalInput.inputDevice.d.ts +++ b/api/@ohos.multimodalInput.inputDevice.d.ts @@ -28,6 +28,8 @@ declare namespace inputDevice { type AxisType = 'NULL'; + type KeyboardType = 'alphabetic_keyboard' | 'digital_keyboard' | 'handwriting_pen' | 'remote_control' | 'no_keyboard' | 'unknown_device'; + /** * Defines axis information about events that can be reported by an input device. * For example, a touchscreen may report information such as x, y, and pressure, @@ -80,6 +82,17 @@ declare namespace inputDevice { */ function getDevice(deviceId: number, callback: AsyncCallback): void; function getDevice(deviceId: number): Promise; + + /** + * 获取指定设备id的键盘类型 + * + * @since 8 + * @syscap SystemCapability.MultimodalInput.Input.InputDevice + * @param 指定的设备id。 + * @return 返回键盘类型。 + */ + function getKeyboardType(deviceId: number, callback: Callback): void; + function getKeyboardType(deviceId: number): Promise; } export default inputDevice; \ No newline at end of file