From 69b108b3cf423204618cf98b2dfea79e01d80d2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=9B=E4=BA=9A=E8=8A=B3?= Date: Thu, 12 Jan 2023 12:07:20 +0000 Subject: [PATCH] update zh-cn/application-dev/reference/apis/js-apis-inputmethod.md. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 葛亚芳 --- .../reference/apis/js-apis-inputmethod.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-inputmethod.md b/zh-cn/application-dev/reference/apis/js-apis-inputmethod.md index db7024c5ff..4cf22ecd39 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inputmethod.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inputmethod.md @@ -12,7 +12,7 @@ import inputMethod from '@ohos.inputmethod'; ``` -## 常量 +## 常量8+ 常量值。 @@ -22,7 +22,7 @@ import inputMethod from '@ohos.inputmethod'; | -------- | -------- | ---------- | -------- | | MAX_TYPE_NUM | number | 128 | 可支持的最大输入法个数。 | -## InputMethodProperty +## InputMethodProperty8+ 输入法应用属性。 @@ -53,7 +53,7 @@ getInputMethodController(): InputMethodController let inputMethodController = inputMethod.getInputMethodController(); ``` -## inputMethod.getInputMethodSetting +## inputMethod.getInputMethodSetting8+ getInputMethodSetting(): InputMethodSetting @@ -133,11 +133,11 @@ inputMethodController.stopInput().then((result) => { }) ``` -## InputMethodSetting +## InputMethodSetting8+ 下列API示例中都需使用[getInputMethodSetting](#inputmethodgetinputmethodsetting)回调获取到InputMethodSetting实例,再通过此实例调用对应方法。 -### listInputMethod +### listInputMethod8+ listInputMethod(callback: AsyncCallback<Array<InputMethodProperty>>): void @@ -163,7 +163,7 @@ inputMethodSetting.listInputMethod((err, data) => { }); ``` -### listInputMethod +### listInputMethod8+ listInputMethod(): Promise<Array<InputMethodProperty>> @@ -187,7 +187,7 @@ inputMethodSetting.listInputMethod().then((data) => { }) ``` -### displayOptionalInputMethod +### displayOptionalInputMethod8+ displayOptionalInputMethod(callback: AsyncCallback<void>): void @@ -213,7 +213,7 @@ inputMethodSetting.displayOptionalInputMethod((err) => { }); ``` -### displayOptionalInputMethod +### displayOptionalInputMethod8+ displayOptionalInputMethod(): Promise<void> -- GitLab