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 db7024c5ff5defa0b621ab906782caac26038e61..4cf22ecd39b36f6c8613d52ce00a9719baf6a0a6 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>