From c7092f57dde0dcb02d1e506de6d976059004791c Mon Sep 17 00:00:00 2001 From: ma-shaoyin Date: Mon, 15 Aug 2022 15:41:03 +0800 Subject: [PATCH 1/2] Signed-off-by: ma-shaoyin Changes to be committed: --- api/@ohos.inputmethod.d.ts | 42 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/api/@ohos.inputmethod.d.ts b/api/@ohos.inputmethod.d.ts index 0dbd6256dc..b6e27e9e61 100644 --- a/api/@ohos.inputmethod.d.ts +++ b/api/@ohos.inputmethod.d.ts @@ -84,6 +84,48 @@ declare namespace inputMethod { stopInput(callback: AsyncCallback): void; stopInput(): Promise; + + /** + * Show soft keyboard + * @since 9 + * @param callback + * @return : + * if true, success. + * if false, fail. + * @syscap SystemCapability.MiscServices.InputMethodFramework + */ + showSoftKeyboard(callback: AsyncCallback): void; + + /** + * Show soft keyboard + * @since 9 + * @return : + * if true, success. + * if false, fail. + * @syscap SystemCapability.MiscServices.InputMethodFramework + */ + showSoftKeyboard():Promise; + + /** + * Hide soft keyboard + * @since 9 + * @param callback + * @return : + * if true, success. + * if false, fail. + * @syscap SystemCapability.MiscServices.InputMethodFramework + */ + hideSoftKeyboard(callback: AsyncCallback): void; + + /** + * Hide soft keyboard + * @since 9 + * @return : + * if true, success. + * if false, fail. + * @syscap SystemCapability.MiscServices.InputMethodFramework + */ + hideSoftKeyboard():Promise; } /** From 1d3c492b00fd352d5c8344c63a6b432954d50427 Mon Sep 17 00:00:00 2001 From: ma-shaoyin Date: Tue, 16 Aug 2022 11:10:55 +0800 Subject: [PATCH 2/2] Signed-off-by: ma-shaoyin Changes to be committed: --- api/@ohos.inputmethod.d.ts | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/api/@ohos.inputmethod.d.ts b/api/@ohos.inputmethod.d.ts index b6e27e9e61..d62a23bdd1 100644 --- a/api/@ohos.inputmethod.d.ts +++ b/api/@ohos.inputmethod.d.ts @@ -89,43 +89,35 @@ declare namespace inputMethod { * Show soft keyboard * @since 9 * @param callback - * @return : - * if true, success. - * if false, fail. + * @return :- * @syscap SystemCapability.MiscServices.InputMethodFramework */ - showSoftKeyboard(callback: AsyncCallback): void; + showSoftKeyboard(callback: AsyncCallback): void; /** * Show soft keyboard * @since 9 - * @return : - * if true, success. - * if false, fail. + * @return :- * @syscap SystemCapability.MiscServices.InputMethodFramework */ - showSoftKeyboard():Promise; + showSoftKeyboard():Promise; /** * Hide soft keyboard * @since 9 * @param callback - * @return : - * if true, success. - * if false, fail. + * @return :- * @syscap SystemCapability.MiscServices.InputMethodFramework */ - hideSoftKeyboard(callback: AsyncCallback): void; + hideSoftKeyboard(callback: AsyncCallback): void; /** * Hide soft keyboard * @since 9 - * @return : - * if true, success. - * if false, fail. + * @return :- * @syscap SystemCapability.MiscServices.InputMethodFramework */ - hideSoftKeyboard():Promise; + hideSoftKeyboard():Promise; } /**