From 7723e8af6ad67667756aa16955b15af80bf4da3b Mon Sep 17 00:00:00 2001 From: zhouyongfei Date: Fri, 4 Mar 2022 17:33:11 +0800 Subject: [PATCH] refresh Signed-off-by: zhouyongfei --- .../reference/apis/js-apis-inputmethodengine.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) 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 00e4a69a66..83af08a877 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inputmethodengine.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inputmethodengine.md @@ -146,7 +146,7 @@ on(type: 'keyboardShow'|'keyboardHide', callback: () => void): void; | 参数名 | 类型 | 必填 | 说明 | | -------- | ------ | ---- | ------------------------------------------------------------ | | type | string | 是 | 设置监听类型。
- type为'keyboardShow',表示订阅输入法显示。
- type为'keyboardHide',表示订阅输入法隐藏。 | - | callback | void | 否 | 无回调函数。 | + | callback | void | 否 | 回调函数。 | - 示例: @@ -169,7 +169,7 @@ off(type: 'keyboardShow'|'keyboardHide', callback?: () => void): void; | 参数名 | 类型 | 必填 | 说明 | | -------- | ------ | ---- | ------------------------------------------------------------ | | type | string | 是 | 设置监听类型。
- type为'keyboardShow',表示订阅输入法显示。
- type为'keyboardHide',表示订阅输入法隐藏。 | - | callback | void | 否 | 无回调函数。 | + | callback | void | 否 | 回调函数。 | - 示例: @@ -397,6 +397,12 @@ hideKeyboard(): Promise<void> **系统能力**: SystemCapability.MiscServices.InputMethod +- 返回值 + + | 类型 | 说明 | + | ---------------------- | ------------ | + | AsyncCallback<void> | 不需要的参数 | + - 示例 @@ -701,11 +707,11 @@ getEditorAttribute(callback: AsyncCallback<EditorAttribute>): void | ------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | | callback | AsyncCallback<[EditorAttribute](#EditorAttribute)> | 是 | 编辑框属性值。 | - - 示例 - ``` +- 示例 + ``` TextInputClient.getEditorAttribute((EditorAttribute)=>{ }); - ``` + ``` ### getEditorAttribute -- GitLab