提交 913967e6 编写于 作者: H Hollokin

输入法框架API资料修改

Signed-off-by: NHollokin <taoyuxin2@huawei.com>
上级 00d84134
......@@ -1132,7 +1132,7 @@ showOptionalInputMethods(callback: AsyncCallback&lt;boolean&gt;): void
```js
try {
InputMethodSetting.showOptionalInputMethods((err) => {
InputMethodSetting.showOptionalInputMethods((err, data) => {
if (err) {
console.error('showOptionalInputMethods failed: ' + JSON.stringify(err));
return;
......@@ -1171,7 +1171,7 @@ showOptionalInputMethods(): Promise&lt;boolean&gt;
**示例:**
```js
InputMethodSetting.showOptionalInputMethods().then(() => {
InputMethodSetting.showOptionalInputMethods().then((data) => {
console.info('displayOptionalInputMethod success.');
}).catch((err) => {
console.error('displayOptionalInputMethod err: ' + err);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册