diff --git a/en/application-dev/reference/apis/js-apis-inputmethod.md b/en/application-dev/reference/apis/js-apis-inputmethod.md index deb605abe2bb17257c62c4e7004eabe97557e0cf..a89590f552dd1a55408fd2743bffc9cde1f73e14 100644 --- a/en/application-dev/reference/apis/js-apis-inputmethod.md +++ b/en/application-dev/reference/apis/js-apis-inputmethod.md @@ -151,7 +151,7 @@ Obtains the list of installed input methods. This API uses an asynchronous callb ### listInputMethod -listInputMethod(): Promise<Array<InputMethodProperty>> +listInputMethod(): Array<InputMethodProperty> Obtains the list of installed input methods. This API uses an asynchronous callback to return the result. diff --git a/en/application-dev/reference/apis/js-apis-inputmethodengine.md b/en/application-dev/reference/apis/js-apis-inputmethodengine.md index 753992ebd71d29a5a2bc77b717ef0df6cd988125..60c6c8a4ce2d0caad26c838e6353cdc21bcbc785 100644 --- a/en/application-dev/reference/apis/js-apis-inputmethodengine.md +++ b/en/application-dev/reference/apis/js-apis-inputmethodengine.md @@ -732,7 +732,7 @@ Obtains the attribute of the edit box. This API uses an asynchronous callback to ### getEditorAttribute -getEditorAttribute(): Promise<EditorAttribute> +getEditorAttribute(): EditorAttribute Obtains the attribute of the edit box. This API uses a promise to return the result. 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 798b366a2a8d3b5508492c29da13d86957dd90c4..c41ddadc13fd7842c517cdc577997630bfff7f21 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inputmethod.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inputmethod.md @@ -147,7 +147,7 @@ listInputMethod(callback: AsyncCallback<Array<InputMethodProperty>>) ### listInputMethod -listInputMethod(): Promise<Array<InputMethodProperty>> +listInputMethod(): Array<InputMethodProperty> 查询已安装的输入法列表。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-inputmethodengine.md b/zh-cn/application-dev/reference/apis/js-apis-inputmethodengine.md index 1b6bae7a64b10704f1f9be3c4569de44069b0e98..b95d3757bbbb24935047ee7520256ed24d1fcacd 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inputmethodengine.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inputmethodengine.md @@ -735,7 +735,7 @@ getEditorAttribute(callback: AsyncCallback<EditorAttribute>): void ### getEditorAttribute -getEditorAttribute(): Promise<EditorAttribute> +getEditorAttribute(): EditorAttribute 获取编辑框属性值。