diff --git a/api/@ohos.multimodalInput.inputConsumer.d.ts b/api/@ohos.multimodalInput.inputConsumer.d.ts index b7e0d8f3c92b80bca3891291a1b74b142a76cd25..dd4ed5e24a06ff7640add450803df2cba4edb647 100644 --- a/api/@ohos.multimodalInput.inputConsumer.d.ts +++ b/api/@ohos.multimodalInput.inputConsumer.d.ts @@ -28,6 +28,7 @@ declare namespace inputConsumer { /** * Defines event of key that user want to subscribe or unsubscribe. * + * @since 8 * @syscap SystemCapability.MultimodalInput.Input.InputConsumer * @systemapi hide for inner use * @param preKeys The pre-keys that want to subscribe or unsubscribe. @@ -36,10 +37,26 @@ declare namespace inputConsumer { * @param finalKeyDownDuration Duration of final key press. */ interface KeyOptions { + /** + * @since 8 + */ preKeys: Array; + /** + * @since 8 + */ finalKey: number; + /** + * @since 8 + */ isFinalKeyDown: boolean; + /** + * @since 8 + */ finalKeyDownDuration: number; + /** + * @since 9 + */ + finalKeyUpDelay: number; } /** diff --git a/api/@ohos.multimodalInput.inputDevice.d.ts b/api/@ohos.multimodalInput.inputDevice.d.ts index 2d3cc320917d95964c54880f9856073c5797dea4..37960c90a0c605f33801cc4f11439dda9c9d5493 100755 --- a/api/@ohos.multimodalInput.inputDevice.d.ts +++ b/api/@ohos.multimodalInput.inputDevice.d.ts @@ -321,7 +321,7 @@ declare namespace inputDevice { * @return Returns a result indicating whether the specified key codes are supported. * @throws {BusinessError} 401 - Parameter error. */ - function supportKeys(deviceId: number, keys: Array, callback: Callback>): void; + function supportKeys(deviceId: number, keys: Array, callback: AsyncCallback>): void; /** * Checks whether the specified key codes of an input device are supported. diff --git a/api/@ohos.multimodalInput.pointer.d.ts b/api/@ohos.multimodalInput.pointer.d.ts index 55fa1863b6d8688f50713e6f5fa12fcb75460dfc..9aea71551f25fc215f7e7ce76cef0d7233c40a1d 100644 --- a/api/@ohos.multimodalInput.pointer.d.ts +++ b/api/@ohos.multimodalInput.pointer.d.ts @@ -288,6 +288,25 @@ declare namespace pointer { */ function setPointerStyle(windowId: number, pointerStyle: PointerStyle): Promise; + /** + * 设置全局默认鼠标样式 + * @since 10 + * @systemapi hide for inner use + * @syscap SystemCapability.MultimodalInput.Input.Pointer + * @param pointerStyle Pointer style. + * @param callback Callback used to return the result. + */ + function setPointerStyle(pointerStyle: PointerStyle, callback: AsyncCallback): void; + + /** + * 设置全局默认鼠标样式 + * @since 10 + * @systemapi hide for inner use + * @syscap SystemCapability.MultimodalInput.Input.Pointer + * @param pointerStyle Pointer style. + */ + function setPointerStyle(pointerStyle: PointerStyle): Promise; + /** * Queries the pointer style. * @since 9 @@ -308,6 +327,24 @@ declare namespace pointer { */ function getPointerStyle(windowId: number): Promise; + /** + * 查询全局默认鼠标样式 + * @since 10 + * @systemapi hide for inner use + * @syscap SystemCapability.MultimodalInput.Input.Pointer + * @param callback Callback used to return the result. + */ + function getPointerStyle(callback: AsyncCallback): void; + + /** + * Queries the pointer style. + * @since 10 + * @systemapi hide for inner use + * @syscap SystemCapability.MultimodalInput.Input.Pointer + * @return Returns the result through a promise. + */ + function getPointerStyle(): Promise; + /** * Sets whether the pointer icon is visible. *