提交 d8b192de 编写于 作者: H Hollokin

输入法框架imf错误码信息相关资料补充

Signed-off-by: NHollokin <taoyuxin2@huawei.com>
上级 8811f996
...@@ -635,8 +635,7 @@ InputMethodController.hideSoftKeyboard((err) => { ...@@ -635,8 +635,7 @@ InputMethodController.hideSoftKeyboard((err) => {
}) })
``` ```
### hideSoftKeyboard<sup>9+</sup>
### hideSoftKeyboard<sup>9+</sup> ###
hideSoftKeyboard(): Promise&lt;void&gt; hideSoftKeyboard(): Promise&lt;void&gt;
...@@ -664,7 +663,7 @@ InputMethodController.hideSoftKeyboard().then(async (err) => { ...@@ -664,7 +663,7 @@ InputMethodController.hideSoftKeyboard().then(async (err) => {
下列API示例中都需使用[getSetting](#inputmethodgetsetting)回调获取到InputMethodSetting实例,再通过此实例调用对应方法。 下列API示例中都需使用[getSetting](#inputmethodgetsetting)回调获取到InputMethodSetting实例,再通过此实例调用对应方法。
### on('imeChange')<a name="imeChange"></a> ### on('imeChange')<a name="imeChange"></a><sup>9+</sup>
on(type: 'imeChange', callback: (inputMethodProperty: InputMethodProperty, inputMethodSubtype: InputMethodSubtype) => void): void on(type: 'imeChange', callback: (inputMethodProperty: InputMethodProperty, inputMethodSubtype: InputMethodSubtype) => void): void
......
...@@ -1674,7 +1674,8 @@ deleteBackward(length:number, callback: AsyncCallback&lt;boolean&gt;): void ...@@ -1674,7 +1674,8 @@ deleteBackward(length:number, callback: AsyncCallback&lt;boolean&gt;): void
```js ```js
var length = 1; var length = 1;
InputClient.deleteBackward(length, (err, result) => { try {
InputClient.deleteBackward(length, (err, result) => {
if (err) { if (err) {
console.error('deleteBackward err: ' + JSON.stringify(err)); console.error('deleteBackward err: ' + JSON.stringify(err));
return; return;
...@@ -1684,7 +1685,10 @@ InputClient.deleteBackward(length, (err, result) => { ...@@ -1684,7 +1685,10 @@ InputClient.deleteBackward(length, (err, result) => {
} else { } else {
console.error('Failed to deleteBackward.(callback) '); console.error('Failed to deleteBackward.(callback) ');
} }
}); });
} catch (err) {
console.error('deleteBackward err: ' + JSON.stringify(err));
}
``` ```
### deleteBackward<sup>9+</sup> ### deleteBackward<sup>9+</sup>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册