From 80287e169f7a598b7b69a419279f8cc973507102 Mon Sep 17 00:00:00 2001 From: zhouyongfei Date: Tue, 29 Mar 2022 01:53:32 +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 42e9d3f7b3c3ed0dd3d8a47eb29f88343557a2c4 Mon Sep 17 00:00:00 2001 From: zhouyongfei Date: Tue, 29 Mar 2022 02:04:53 +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 4f5574e8f308e087620c57631bea9d025e896301 Mon Sep 17 00:00:00 2001 From: zhouyongfei Date: Tue, 29 Mar 2022 07:14:03 +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