提交 9e512b15 编写于 作者: M ma-shaoyin

Signed-off-by: ma-shaoyin <mashaoyin1@huawei.com>

 Changes to be committed:
上级 283b8557
......@@ -51,7 +51,7 @@ this.context.destroy((err) => {
## InputMethodExtensionContext.destroy
destroy(): Promise<void&gt;
destroy(): Promise\<void>;
停止输入法应用自身。通过Promise异步回调。
......@@ -61,7 +61,7 @@ destroy(): Promise<void&gt;
| 类型 | 说明 |
| -------- | -------- |
| Promise<void&gt; | 无返回结果的Promise对象。 |
| Promise\<void>; | 无返回结果的Promise对象。 |
**示例:**
......
......@@ -884,7 +884,7 @@ inputMethodController.off('selectByRange');
### on('selectByMovement')<sup>10+</sup>
on(type: 'selectByMovement', callback: Callback&lt;Range&gt;): void
on(type: 'selectByMovement', callback: Callback&lt;Movement&gt;): void
订阅输入法应用按光标动作选中文本事件。使用callback异步回调。
......@@ -1235,8 +1235,6 @@ showOptionalInputMethods(callback: AsyncCallback&lt;boolean&gt;): void
显示输入法选择对话框。使用callback异步回调。
**需要权限:** ohos.permission.CONNECT_IME_ABILITY,仅系统应用可用。
**系统能力:** SystemCapability.MiscServices.InputMethodFramework
**参数:**
......@@ -1275,8 +1273,6 @@ showOptionalInputMethods(): Promise&lt;boolean&gt;
显示输入法选择对话框。使用promise异步回调。
**需要权限:** ohos.permission.CONNECT_IME_ABILITY,仅系统应用可用。
**系统能力:** SystemCapability.MiscServices.InputMethodFramework
**返回值:**
......
......@@ -708,7 +708,7 @@ hide(callback: AsyncCallback&lt;void&gt;): void
| 错误码ID | 错误信息 |
| -------- | -------------------------- |
| 12800003 | Input method client error. |
| 12800003 | input method client error. |
**示例:**
......@@ -742,7 +742,7 @@ hide(): Promise&lt;void&gt;
| 错误码ID | 错误信息 |
| -------- | -------------------------- |
| 12800003 | Input method client error. |
| 12800003 | input method client error. |
**示例:**
......@@ -837,7 +837,7 @@ sendKeyFunction(action:number, callback: AsyncCallback&lt;boolean&gt;): void
| 错误码ID | 错误信息 |
| -------- | -------------------------- |
| 12800003 | Input method client error. |
| 12800003 | input method client error. |
**示例:**
......@@ -886,7 +886,7 @@ sendKeyFunction(action: number): Promise&lt;boolean&gt;
| 错误码ID | 错误信息 |
| -------- | -------------------------- |
| 12800003 | Input method client error. |
| 12800003 | input method client error. |
**示例:**
......@@ -928,7 +928,7 @@ getForward(length:number, callback: AsyncCallback&lt;string&gt;): void
| 错误码ID | 错误信息 |
| -------- | ------------------------------ |
| 12800003 | Input method client error. |
| 12800003 | input method client error. |
| 12800006 | Input method controller error. |
**示例:**
......@@ -974,7 +974,7 @@ getForward(length:number): Promise&lt;string&gt;
| 错误码ID | 错误信息 |
| -------- | ------------------------------ |
| 12800003 | Input method client error. |
| 12800003 | input method client error. |
| 12800006 | Input method controller error. |
**示例:**
......@@ -1013,7 +1013,7 @@ getBackward(length:number, callback: AsyncCallback&lt;string&gt;): void
| 错误码ID | 错误信息 |
| -------- | ------------------------------ |
| 12800003 | Input method client error. |
| 12800003 | input method client error. |
| 12800006 | Input method controller error. |
**示例:**
......@@ -1059,7 +1059,7 @@ getBackward(length:number): Promise&lt;string&gt;
| 错误码ID | 错误信息 |
| -------- | ------------------------------ |
| 12800003 | Input method client error. |
| 12800003 | input method client error. |
| 12800006 | Input method controller error. |
**示例:**
......@@ -1099,7 +1099,7 @@ deleteForward(length:number, callback: AsyncCallback&lt;boolean&gt;): void
| 错误码ID | 错误信息 |
| -------- | -------------------------- |
| 12800002 | Input method engine error. |
| 12800003 | Input method client error. |
| 12800003 | input method client error. |
**示例:**
......@@ -1149,7 +1149,7 @@ deleteForward(length:number): Promise&lt;boolean&gt;
| 错误码ID | 错误信息 |
| -------- | -------------------------- |
| 12800002 | Input method engine error. |
| 12800003 | Input method client error. |
| 12800003 | input method client error. |
**示例:**
......@@ -1192,7 +1192,7 @@ deleteBackward(length:number, callback: AsyncCallback&lt;boolean&gt;): void
| 错误码ID | 错误信息 |
| -------- | -------------------------- |
| 12800002 | Input method engine error. |
| 12800003 | Input method client error. |
| 12800003 | input method client error. |
**示例:**
......@@ -1242,7 +1242,7 @@ deleteBackward(length:number): Promise&lt;boolean&gt;
| 错误码ID | 错误信息 |
| -------- | -------------------------- |
| 12800002 | Input method engine error. |
| 12800003 | Input method client error. |
| 12800003 | input method client error. |
**示例:**
......@@ -1281,7 +1281,7 @@ insertText(text:string, callback: AsyncCallback&lt;boolean&gt;): void
| 错误码ID | 错误信息 |
| -------- | -------------------------- |
| 12800002 | Input method engine error. |
| 12800003 | Input method client error. |
| 12800003 | input method client error. |
**示例:**
......@@ -1326,7 +1326,7 @@ insertText(text:string): Promise&lt;boolean&gt;
| 错误码ID | 错误信息 |
| -------- | -------------------------- |
| 12800002 | Input method engine error. |
| 12800003 | Input method client error. |
| 12800003 | input method client error. |
**示例:**
......@@ -1366,7 +1366,7 @@ getEditorAttribute(callback: AsyncCallback&lt;EditorAttribute&gt;): void
| 错误码ID | 错误信息 |
| -------- | -------------------------- |
| 12800003 | Input method client error. |
| 12800003 | input method client error. |
**示例:**
......@@ -1401,7 +1401,7 @@ getEditorAttribute(): Promise&lt;EditorAttribute&gt;
| 错误码ID | 错误信息 |
| -------- | -------------------------- |
| 12800003 | Input method client error. |
| 12800003 | input method client error. |
**示例:**
......@@ -1435,7 +1435,7 @@ moveCursor(direction: number, callback: AsyncCallback&lt;void&gt;): void
| 错误码ID | 错误信息 |
| -------- | -------------------------- |
| 12800003 | Input method client error. |
| 12800003 | input method client error. |
**示例:**
......@@ -1479,7 +1479,7 @@ moveCursor(direction: number): Promise&lt;void&gt;
| 错误码ID | 错误信息 |
| -------- | -------------------------- |
| 12800003 | Input method client error. |
| 12800003 | input method client error. |
**示例:**
......@@ -1517,7 +1517,7 @@ selectByRange(range: Range, callback: AsyncCallback&lt;void&gt;): void
| 错误码ID | 错误信息 |
| -------- | -------------------------- |
| 401 | parameter error. |
| 12800003 | Input method client error. |
| 12800003 | input method client error. |
**示例:**
......@@ -1562,7 +1562,7 @@ selectByRange(range: Range): Promise&lt;void&gt;
| 错误码ID | 错误信息 |
| -------- | -------------------------- |
| 401 | parameter error. |
| 12800003 | Input method client error. |
| 12800003 | input method client error. |
**示例:**
......@@ -1600,7 +1600,7 @@ selectByMovement(movement: Movement, callback: AsyncCallback&lt;void&gt;): void
| 错误码ID | 错误信息 |
| -------- | -------------------------- |
| 401 | parameter error. |
| 12800003 | Input method client error. |
| 12800003 | input method client error. |
**示例:**
......@@ -1620,7 +1620,7 @@ try {
### selectByMovement<sup>10+</sup>
selectByMovement(range: Range): Promise&lt;void&gt;
selectByMovement(movement: Movement): Promise&lt;void&gt;
根据索引范围选中文本。使用promise异步回调。
......@@ -1645,7 +1645,7 @@ selectByMovement(range: Range): Promise&lt;void&gt;
| 错误码ID | 错误信息 |
| -------- | -------------------------- |
| 401 | parameter error. |
| 12800003 | Input method client error. |
| 12800003 | input method client error. |
**示例:**
......@@ -1682,7 +1682,7 @@ getTextIndexAtCursor(callback: AsyncCallback&lt;number&gt;): void
| 错误码ID | 错误信息 |
| -------- | ------------------------------ |
| 401 | parameter error. |
| 12800003 | Input method client error. |
| 12800003 | input method client error. |
| 12800006 | Input method controller error. |
**示例:**
......@@ -1717,7 +1717,7 @@ getTextIndexAtCursor(): Promise&lt;number&gt;
| 错误码ID | 错误信息 |
| -------- | ------------------------------ |
| 12800003 | Input method client error. |
| 12800003 | input method client error. |
| 12800006 | Input method controller error. |
**示例:**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册