提交 cbba02bc 编写于 作者: Z zhaolinglan

fix some differences form d.ts

Signed-off-by: Nzhaolinglan <zhaolinglan@huawei.com>
上级 ad0c394e
......@@ -9,6 +9,12 @@ InputMethodExtensionContext模块提供InputMethodExtensionAbility具有的能
> 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
> 本模块接口仅可在Stage模型下使用。
## 导入模块
```
import InputMethodExtensionContext from '@ohos.inputmethodextensioncontext';
```
## 使用说明
在使用InputMethodExtensionContext的功能前,需要通过InputMethodExtensionAbility子类实例获取。
......
......@@ -77,12 +77,11 @@ getInputMethodSetting(): InputMethodSetting
```
## inputMethod.switchInputMethod<sup>9+</sup>
switchInputMethod(target: InputmethodProperty, callback: AsyncCallback&lt;boolean&gt;): void;
switchInputMethod(target: InputMethodProperty, callback: AsyncCallback&lt;boolean&gt;): void
切换输入法。此接口仅可在Stage模型下使用。使用callback形式返回结果。参数个数为2,否则抛出异常。
**系统能力**:SystemCapability.Miscservices.InputMethodFramework
**系统能力**:SystemCapability.MiscServices.InputMethodFramework
**参数:**
......@@ -108,11 +107,11 @@ inputmethod.switchInputMethod({packageName:"com.example.kikakeyboard", methodId:
});
```
## inputMethod.switchInputMethod<sup>9+</sup>
switchInputMethod(target: InputmethodProperty): Promise&lt;boolean&gt;
switchInputMethod(target: InputMethodProperty): Promise&lt;boolean&gt;
切换输入法。此接口仅可在Stage模型下使用。使用promise形式返回结果。参数个数为1,否则抛出异常。
**系统能力**: SystemCapability.Miscservices.InputMethodFramework
**系统能力**: SystemCapability.MiscServices.InputMethodFramework
**参数:**
......@@ -340,7 +339,7 @@ InputMethodSetting.listInputMethod((err,data) => {
### listInputMethod
listInputMethod(): Promise<Array<InputMethodProperty>>;
listInputMethod(): Promise&lt;Array<InputMethodProperty>&gt;
查询已安装的输入法列表。使用promise形式返回结果。参数个数为0,否则抛出异常。
......
......@@ -980,7 +980,7 @@ getEditorAttribute(callback: AsyncCallback&lt;EditorAttribute&gt;): void
### getEditorAttribute
getEditorAttribute(): Promise<EditorAttribute>
getEditorAttribute(): Promise&lt;EditorAttribute&gt;
获取编辑框属性值。使用promise形式返回结果。参数个数为0,否则抛出异常。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册