From 5513f465740bd8229e795c379e1c1ef641035951 Mon Sep 17 00:00:00 2001 From: zhouyongfei Date: Tue, 29 Mar 2022 01:56:37 +0000 Subject: [PATCH 1/3] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E6=B3=95=E8=B5=84=E6=96=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhouyongfei --- api/@ohos.inputmethod.d.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/api/@ohos.inputmethod.d.ts b/api/@ohos.inputmethod.d.ts index 2ec69c2eeb..bca1c8e32e 100644 --- a/api/@ohos.inputmethod.d.ts +++ b/api/@ohos.inputmethod.d.ts @@ -22,12 +22,21 @@ import {AsyncCallback} from './basic'; * @syscap SystemCapability.MiscServices.InputMethodFramework */ declare namespace inputMethod { + /** + * @since 8 + */ const MAX_TYPE_NUM: number + /** + * @since 8 + */ function getInputMethodSetting(): InputMethodSetting; function getInputMethodController(): InputMethodController; + /** + * @since 8 + */ interface InputMethodSetting { listInputMethod(callback: AsyncCallback>): void; @@ -44,6 +53,9 @@ declare namespace inputMethod { stopInput(): Promise; } + /** + * @since 8 + */ interface InputMethodProperty { readonly packageName: string; readonly methodId: string; -- Gitee From 93abac576c5bc27d8aa8dc039c95dd3b40651539 Mon Sep 17 00:00:00 2001 From: zhouyongfei Date: Tue, 29 Mar 2022 02:01:26 +0000 Subject: [PATCH 2/3] refresh Signed-off-by: zhouyongfei --- api/@ohos.inputmethod.d.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/api/@ohos.inputmethod.d.ts b/api/@ohos.inputmethod.d.ts index bca1c8e32e..1b38bcfda4 100644 --- a/api/@ohos.inputmethod.d.ts +++ b/api/@ohos.inputmethod.d.ts @@ -23,20 +23,20 @@ import {AsyncCallback} from './basic'; */ declare namespace inputMethod { /** - * @since 8 - */ + * @since 8 + */ const MAX_TYPE_NUM: number /** - * @since 8 - */ + * @since 8 + */ function getInputMethodSetting(): InputMethodSetting; function getInputMethodController(): InputMethodController; /** - * @since 8 - */ + * @since 8 + */ interface InputMethodSetting { listInputMethod(callback: AsyncCallback>): void; @@ -54,8 +54,8 @@ declare namespace inputMethod { } /** - * @since 8 - */ + * @since 8 + */ interface InputMethodProperty { readonly packageName: string; readonly methodId: string; -- Gitee From f3069efc3e304f361a815d19f557bf91f25a1c71 Mon Sep 17 00:00:00 2001 From: zhouyongfei Date: Tue, 29 Mar 2022 07:16:02 +0000 Subject: [PATCH 3/3] refresh Signed-off-by: zhouyongfei --- api/@ohos.inputmethod.d.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/api/@ohos.inputmethod.d.ts b/api/@ohos.inputmethod.d.ts index 1b38bcfda4..fb1d97ce7d 100644 --- a/api/@ohos.inputmethod.d.ts +++ b/api/@ohos.inputmethod.d.ts @@ -18,20 +18,25 @@ import {AsyncCallback} from './basic'; /** * inputmethod * - * @since 6 * @syscap SystemCapability.MiscServices.InputMethodFramework */ declare namespace inputMethod { /** + * keyboard max number * @since 8 */ const MAX_TYPE_NUM: number /** + * input method setting * @since 8 */ function getInputMethodSetting(): InputMethodSetting; + /** + * input method controller + * @since 6 + */ function getInputMethodController(): InputMethodController; /** @@ -47,6 +52,9 @@ declare namespace inputMethod { displayOptionalInputMethod(): Promise; } + /** + * @since 6 + */ interface InputMethodController { stopInput(callback: AsyncCallback): void; @@ -54,6 +62,7 @@ declare namespace inputMethod { } /** + * input method info * @since 8 */ interface InputMethodProperty { -- Gitee