未验证 提交 d50465d6 编写于 作者: O openharmony_ci 提交者: Gitee

!13549 【轻量级 PR】:update zh-cn/application-dev/reference/apis/js-apis-inputmethod.md.

Merge pull request !13549 from 葛亚芳/N/A
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
import inputMethod from '@ohos.inputmethod'; import inputMethod from '@ohos.inputmethod';
``` ```
## 常量 ## 常量<sup>8+</sup>
常量值。 常量值。
...@@ -22,7 +22,7 @@ import inputMethod from '@ohos.inputmethod'; ...@@ -22,7 +22,7 @@ import inputMethod from '@ohos.inputmethod';
| -------- | -------- | ---------- | -------- | | -------- | -------- | ---------- | -------- |
| MAX_TYPE_NUM | number | 128 | 可支持的最大输入法个数。 | | MAX_TYPE_NUM | number | 128 | 可支持的最大输入法个数。 |
## InputMethodProperty ## InputMethodProperty<sup>8+</sup>
输入法应用属性。 输入法应用属性。
...@@ -53,7 +53,7 @@ getInputMethodController(): InputMethodController ...@@ -53,7 +53,7 @@ getInputMethodController(): InputMethodController
let inputMethodController = inputMethod.getInputMethodController(); let inputMethodController = inputMethod.getInputMethodController();
``` ```
## inputMethod.getInputMethodSetting ## inputMethod.getInputMethodSetting<sup>8+</sup>
getInputMethodSetting(): InputMethodSetting getInputMethodSetting(): InputMethodSetting
...@@ -133,11 +133,11 @@ inputMethodController.stopInput().then((result) => { ...@@ -133,11 +133,11 @@ inputMethodController.stopInput().then((result) => {
}) })
``` ```
## InputMethodSetting ## InputMethodSetting<sup>8+</sup>
下列API示例中都需使用[getInputMethodSetting](#inputmethodgetinputmethodsetting)回调获取到InputMethodSetting实例,再通过此实例调用对应方法。 下列API示例中都需使用[getInputMethodSetting](#inputmethodgetinputmethodsetting)回调获取到InputMethodSetting实例,再通过此实例调用对应方法。
### listInputMethod ### listInputMethod<sup>8+</sup>
listInputMethod(callback: AsyncCallback&lt;Array&lt;InputMethodProperty&gt;&gt;): void listInputMethod(callback: AsyncCallback&lt;Array&lt;InputMethodProperty&gt;&gt;): void
...@@ -163,7 +163,7 @@ inputMethodSetting.listInputMethod((err, data) => { ...@@ -163,7 +163,7 @@ inputMethodSetting.listInputMethod((err, data) => {
}); });
``` ```
### listInputMethod ### listInputMethod<sup>8+</sup>
listInputMethod(): Promise&lt;Array&lt;InputMethodProperty&gt;&gt; listInputMethod(): Promise&lt;Array&lt;InputMethodProperty&gt;&gt;
...@@ -187,7 +187,7 @@ inputMethodSetting.listInputMethod().then((data) => { ...@@ -187,7 +187,7 @@ inputMethodSetting.listInputMethod().then((data) => {
}) })
``` ```
### displayOptionalInputMethod ### displayOptionalInputMethod<sup>8+</sup>
displayOptionalInputMethod(callback: AsyncCallback&lt;void&gt;): void displayOptionalInputMethod(callback: AsyncCallback&lt;void&gt;): void
...@@ -213,7 +213,7 @@ inputMethodSetting.displayOptionalInputMethod((err) => { ...@@ -213,7 +213,7 @@ inputMethodSetting.displayOptionalInputMethod((err) => {
}); });
``` ```
### displayOptionalInputMethod ### displayOptionalInputMethod<sup>8+</sup>
displayOptionalInputMethod(): Promise&lt;void&gt; displayOptionalInputMethod(): Promise&lt;void&gt;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册