提交 5f45cefd 编写于 作者: H Hollokin

API资料补充

Signed-off-by: NHollokin <taoyuxin2@huawei.com>
上级 534e97ce
...@@ -69,7 +69,7 @@ Extension生命周期回调,在销毁输入法应用时回调,执行资源 ...@@ -69,7 +69,7 @@ Extension生命周期回调,在销毁输入法应用时回调,执行资源
onRequest(want: Want, startId: number): void; onRequest(want: Want, startId: number): void;
Extension生命周期回调,在开始执行输入法应用时回调,执行输入法的相关操作。 Extension生命周期回调,在一个输入法extention开始时回调,执行输入法的相关操作。
**系统能力**:SystemCapability.MiscServices.InputMethodFramework **系统能力**:SystemCapability.MiscServices.InputMethodFramework
...@@ -87,7 +87,7 @@ Extension生命周期回调,在开始执行输入法应用时回调,执行 ...@@ -87,7 +87,7 @@ Extension生命周期回调,在开始执行输入法应用时回调,执行
onConnect(want: Want): rpc.RemoteObject; onConnect(want: Want): rpc.RemoteObject;
Extension生命周期回调,在首次链接输入法ability时回调。 Extension生命周期回调,在输入法extention首次连接输入法ability时回调。
**系统能力**:SystemCapability.MiscServices.InputMethodFramework **系统能力**:SystemCapability.MiscServices.InputMethodFramework
...@@ -105,7 +105,7 @@ Extension生命周期回调,在首次链接输入法ability时回调。 ...@@ -105,7 +105,7 @@ Extension生命周期回调,在首次链接输入法ability时回调。
onDisconnect(want: Want): rpc.RemoteObject; onDisconnect(want: Want): rpc.RemoteObject;
Extension生命周期回调,在所有接在输入法extention上的ability都断开的时候回调。 Extension生命周期回调,在所有接在输入法extention上的ability都断开的时候回调。
**系统能力**:SystemCapability.MiscServices.InputMethodFramework **系统能力**:SystemCapability.MiscServices.InputMethodFramework
......
...@@ -34,8 +34,12 @@ import inputMethod from '@ohos.inputmethod'; ...@@ -34,8 +34,12 @@ import inputMethod from '@ohos.inputmethod';
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| packageName<sup>deprecated</sup> | string | 是 | 否 | 包名。 | | packageName<sup>deprecated</sup> | string | 是 | 否 | 包名。 |
| methodId<sup>deprecated</sup> | string | 是 | 否 | Ability名。 | | methodId<sup>deprecated</sup> | string | 是 | 否 | Ability名。 |
| name<sup>9+</sup> | string | 是 | 否 | 包名。 | | name<sup>9+</sup> | string | 是 | 否 | 包名,非必填项。 |
| id<sup>9+</sup> | string | 是 | 否 | Ability名。 | | id<sup>9+</sup> | string | 是 | 否 | Ability名,非必填项。 |
| label<sup>9+</sup> | string | 是 | 否 | 输入法标签,非必填项。|
| icon<sup>9+</sup> | string | 是 | 否 | 输入法图标,非必填项。 |
| iconId<sup>9+</sup> | number | 是 | 否 | 输入法图标id,非必填项。 |
| extra<sup>9+</sup> | object | 是 | 否 | 输入法其他信息,非必填项。 |
## inputMethod.getInputMethodController<sup>deprecated</sup> ## inputMethod.getInputMethodController<sup>deprecated</sup>
...@@ -82,12 +86,17 @@ getController(): InputMethodController ...@@ -82,12 +86,17 @@ getController(): InputMethodController
var InputMethodController = inputMethod.getController(); var InputMethodController = inputMethod.getController();
``` ```
## inputMethod.getInputMethodSetting<sup>8+</sup> ## inputMethod.getInputMethodSetting<sup>deprecated</sup>
getInputMethodSetting(): InputMethodSetting getInputMethodSetting(): InputMethodSetting
获取客户端设置实例[InputMethodSetting](#inputmethodsetting8) 获取客户端设置实例[InputMethodSetting](#inputmethodsetting8)
> **说明:**
> 从API version 9开始废弃, 建议使用[getSetting](#getSetting)替代
>
> 从 API version 6开始支持。
**系统能力**: SystemCapability.MiscServices.InputMethodFramework **系统能力**: SystemCapability.MiscServices.InputMethodFramework
**返回值:** **返回值:**
...@@ -145,17 +154,23 @@ switchInputMethod(target: InputMethodProperty, callback: AsyncCallback&lt;boolea ...@@ -145,17 +154,23 @@ switchInputMethod(target: InputMethodProperty, callback: AsyncCallback&lt;boolea
**示例:** **示例:**
```js ```js
inputMethod.switchInputMethod({packageName:'com.example.kikakeyboard', methodId:'com.example.kikakeyboard'} ,(err,result) => { try{
if (err) { inputMethod.switchInputMethod({packageName:'com.example.kikakeyboard', methodId:'com.example.kikakeyboard'}, (err, result) => {
console.error('switchInputMethod err: ' + JSON.stringify(err)); if (err) {
return; // 处理业务逻辑执行错误
} console.error('switchInputMethod err: ' + JSON.stringify(err));
if (result) { return;
console.info('Success to switchInputMethod.(callback)'); }
} else { if (result) {
console.error('Failed to switchInputMethod.(callback)'); console.info('Success to switchInputMethod.(callback)');
} } else {
}); console.error('Failed to switchInputMethod.(callback)');
}
});
} catch(err) {
// 捕获参数错误
console.error('err: ' + err.code + 'err message: ' + err.message);
}
``` ```
## inputMethod.switchInputMethod<sup>9+</sup> ## inputMethod.switchInputMethod<sup>9+</sup>
switchInputMethod(target: InputMethodProperty): Promise&lt;boolean&gt; switchInputMethod(target: InputMethodProperty): Promise&lt;boolean&gt;
...@@ -181,15 +196,19 @@ switchInputMethod(target: InputMethodProperty): Promise&lt;boolean&gt; ...@@ -181,15 +196,19 @@ switchInputMethod(target: InputMethodProperty): Promise&lt;boolean&gt;
**示例:** **示例:**
```js ```js
inputMethod.switchInputMethod({packageName:'com.example.kikakeyboard', methodId:'com.example.kikakeyboard'}).then((result) => { try {
if (result) { inputMethod.switchInputMethod({packageName:'com.example.kikakeyboard', methodId:'com.example.kikakeyboard'}).then((result) => {
console.info('Success to switchInputMethod.(promise)'); if (result) {
} else { console.info('Success to switchInputMethod.(promise)');
console.error('Failed to switchInputMethod.(promise)'); } else {
} console.error('Failed to switchInputMethod.(promise)');
}).catch((err) => { }
console.error('switchInputMethod promise err: ' + err); }).catch((err) => {
}) console.error('switchInputMethod promise err: ' + err);
})
} catch(err) {
console.error('err: ' + err.code + 'err message: ' + err.message);
}
``` ```
## inputMethod.getCurrentInputMethod<sup>9+</sup> ## inputMethod.getCurrentInputMethod<sup>9+</sup>
...@@ -232,17 +251,25 @@ switchCurrentInputMethodSubtype(target: InputMethodSubtype, callback: AsyncCallb ...@@ -232,17 +251,25 @@ switchCurrentInputMethodSubtype(target: InputMethodSubtype, callback: AsyncCallb
**示例:** **示例:**
```js ```js
inputMethod.switchCurrentInputMethodSubtype(subType ,(err,result) => { let inputMethodSubProperty = {
if (err) { id: "com.example.kikainput",
console.error('switchCurrentInputMethodSubtype err: ' + JSON.stringify(err)); label: "ServiceExtAbility"
return; }
} try {
if (result) { inputMethod.switchCurrentInputMethodSubtype(inputMethodSubProperty, (err, result) => {
console.info('Success to switchCurrentInputMethodSubtype.(callback)'); if (err) {
} else { console.error('switchCurrentInputMethodSubtype err: ' + JSON.stringify(err));
console.error('Failed to switchCurrentInputMethodSubtype.(callback)'); return;
} }
}); if (result) {
console.info('Success to switchCurrentInputMethodSubtype.(callback)');
} else {
console.error('Failed to switchCurrentInputMethodSubtype.(callback)');
}
});
} catch(err) {
console.error('err: ' + err.code + 'err message: ' + err.message);
}
``` ```
## inputMethod.switchCurrentInputMethodSubtype<sup>9+</sup> ## inputMethod.switchCurrentInputMethodSubtype<sup>9+</sup>
...@@ -264,15 +291,23 @@ switchCurrentInputMethodSubtype(target: InputMethodSubtype): Promise&lt;boolean& ...@@ -264,15 +291,23 @@ switchCurrentInputMethodSubtype(target: InputMethodSubtype): Promise&lt;boolean&
**示例:** **示例:**
```js ```js
inputMethod.switchCurrentInputMethodSubtype(subType).then((result) => { let inputMethodSubProperty = {
if (result) { id: "com.example.kikainput",
console.info('Success to switchCurrentInputMethodSubtype.(promise)'); label: "ServiceExtAbility"
} else { }
console.error('Failed to switchCurrentInputMethodSubtype.(promise)'); try {
} inputMethod.switchCurrentInputMethodSubtype(inputMethodSubProperty).then((result) => {
}).catch((err) => { if (result) {
console.error('switchCurrentInputMethodSubtype promise err: ' + err); console.info('Success to switchCurrentInputMethodSubtype.(promise)');
}) } else {
console.error('Failed to switchCurrentInputMethodSubtype.(promise)');
}
}).catch((err) => {
console.error('switchCurrentInputMethodSubtype promise err: ' + err);
})
} catch(err) {
console.error('err: ' + err.code + 'err message: ' + err.message);
}
``` ```
## inputMethod.getCurrentInputMethodSubtype<sup>9+</sup> ## inputMethod.getCurrentInputMethodSubtype<sup>9+</sup>
...@@ -318,17 +353,29 @@ switchCurrentInputMethodAndSubtype(inputMethodProperty: InputMethodProperty, inp ...@@ -318,17 +353,29 @@ switchCurrentInputMethodAndSubtype(inputMethodProperty: InputMethodProperty, inp
**示例:** **示例:**
```js ```js
inputMethod.switchCurrentInputMethodAndSubtype(property, subType ,(err,result) => { let inputMethodSubProperty = {
if (err) { id: "com.example.kikainput",
console.error('switchCurrentInputMethodAndSubtype err: ' + JSON.stringify(err)); label: "ServiceExtAbility"
return; }
} let inputMethodProperty = {
if (result) { name: 'com.example.kikakeyboard',
console.info('Success to switchCurrentInputMethodAndSubtype.(callback)'); id: 'com.example.kikakeyboard'
} else { }
console.error('Failed to switchCurrentInputMethodAndSubtype.(callback)'); try {
} inputMethod.switchCurrentInputMethodAndSubtype(inputMethodProperty, inputMethodSubProperty, (err,result) => {
}); if (err) {
console.error('switchCurrentInputMethodAndSubtype err: ' + JSON.stringify(err));
return;
}
if (result) {
console.info('Success to switchCurrentInputMethodAndSubtype.(callback)');
} else {
console.error('Failed to switchCurrentInputMethodAndSubtype.(callback)');
}
});
} catch (err) {
console.error('err: ' + err.code + 'err message: ' + err.message);
}
``` ```
## inputMethod.switchCurrentInputMethodAndSubtype<sup>9+</sup> ## inputMethod.switchCurrentInputMethodAndSubtype<sup>9+</sup>
...@@ -351,20 +398,32 @@ switchCurrentInputMethodAndSubtype(inputMethodProperty: InputMethodProperty, inp ...@@ -351,20 +398,32 @@ switchCurrentInputMethodAndSubtype(inputMethodProperty: InputMethodProperty, inp
**示例:** **示例:**
```js ```js
inputMethod.switchCurrentInputMethodAndSubtype(property, subType).then((result) => { let inputMethodSubProperty = {
if (result) { id: "com.example.kikainput",
console.info('Success to switchCurrentInputMethodAndSubtype.(promise)'); label: "ServiceExtAbility"
} else { }
console.error('Failed to switchCurrentInputMethodAndSubtype.(promise)'); let inputMethodProperty = {
} name: 'com.example.kikakeyboard',
}).catch((err) => { id: 'com.example.kikakeyboard'
console.error('switchCurrentInputMethodAndSubtype promise err: ' + err); }
}) try {
inputMethod.switchCurrentInputMethodAndSubtype(property, subType).then((result) => {
if (result) {
console.info('Success to switchCurrentInputMethodAndSubtype.(promise)');
} else {
console.error('Failed to switchCurrentInputMethodAndSubtype.(promise)');
}
}).catch((err) => {
console.error('switchCurrentInputMethodAndSubtype promise err: ' + err);
})
} catch(err) {
console.error('err: ' + err.code + 'err message: ' + err.message);
}
``` ```
## InputMethodController ## InputMethodController
下列API示例中都需使用[getInputMethodController](#inputmethodgetinputmethodcontroller)回调获取到InputMethodController实例,再通过此实例调用对应方法。 下列API示例中都需使用[getController](#inputmethodgetcontroller)回调获取到InputMethodController实例,再通过此实例调用对应方法。
### stopInput<sup>deprecated</sup> ### stopInput<sup>deprecated</sup>
...@@ -412,7 +471,6 @@ stopInput(): Promise&lt;boolean&gt; ...@@ -412,7 +471,6 @@ stopInput(): Promise&lt;boolean&gt;
**示例:** **示例:**
```js ```js
InputMethodController.stopInput().then((result) => { InputMethodController.stopInput().then((result) => {
if (result) { if (result) {
...@@ -442,17 +500,21 @@ stopInputSession(callback: AsyncCallback&lt;boolean&gt;): void ...@@ -442,17 +500,21 @@ stopInputSession(callback: AsyncCallback&lt;boolean&gt;): void
**示例:** **示例:**
```js ```js
InputMethodController.stopInputSession((error, result) => { try {
if (error) { InputMethodController.stopInputSession((error, result) => {
console.error('failed to stopInputSession because: ' + JSON.stringify(error)); if (error) {
return; console.error('failed to stopInputSession because: ' + JSON.stringify(error));
} return;
if (result) { }
console.info('Success to stopInputSession.(callback)'); if (result) {
} else { console.info('Success to stopInputSession.(callback)');
console.error('Failed to stopInputSession.(callback)'); } else {
} console.error('Failed to stopInputSession.(callback)');
}); }
});
} catch(err) {
console.error('err: ' + err.code + 'err message: ' + err.message);
}
``` ```
### stopInputSession ### stopInputSession
...@@ -471,17 +533,20 @@ stopInputSession(): Promise&lt;boolean&gt; ...@@ -471,17 +533,20 @@ stopInputSession(): Promise&lt;boolean&gt;
**示例:** **示例:**
```js ```js
InputMethodController.stopInputSession().then((result) => { try {
if (result) { InputMethodController.stopInputSession().then((result) => {
console.info('Success to stopInputSession.(promise)'); if (result) {
} else { console.info('Success to stopInputSession.(promise)');
console.error('Failed to stopInputSession.(promise)'); } else {
} console.error('Failed to stopInputSession.(promise)');
}).catch((err) => { }
console.error('stopInputSession promise err: ' + err); }).catch((err) => {
}) console.error('stopInputSession promise err: ' + err);
})
} catch(err) {
console.error('err: ' + err.code + 'err message: ' + err.message);
}
``` ```
### showSoftKeyboard<sup>9+</sup> ### ### showSoftKeyboard<sup>9+</sup> ###
...@@ -510,7 +575,6 @@ InputMethodController.showSoftKeyboard((err) => { ...@@ -510,7 +575,6 @@ InputMethodController.showSoftKeyboard((err) => {
}) })
``` ```
### showSoftKeyboard<sup>9+</sup> ### ### showSoftKeyboard<sup>9+</sup> ###
showSoftKeyboard(): Promise&lt;void&gt; showSoftKeyboard(): Promise&lt;void&gt;
...@@ -588,7 +652,7 @@ InputMethodController.hideSoftKeyboard().then(async (err) => { ...@@ -588,7 +652,7 @@ InputMethodController.hideSoftKeyboard().then(async (err) => {
## InputMethodSetting<sup>8+</sup> ## InputMethodSetting<sup>8+</sup>
下列API示例中都需使用[getInputMethodSetting](#inputmethodgetinputmethodcontroller)回调获取到InputMethodSetting实例,再通过此实例调用对应方法。 下列API示例中都需使用[getSetting](#inputmethodgetsetting)回调获取到InputMethodSetting实例,再通过此实例调用对应方法。
### on('imeChange')<a name="imeChange"></a> ### on('imeChange')<a name="imeChange"></a>
...@@ -653,13 +717,21 @@ listInputMethodSubtype(inputMethodProperty: InputMethodProperty, callback: Async ...@@ -653,13 +717,21 @@ listInputMethodSubtype(inputMethodProperty: InputMethodProperty, callback: Async
**示例:** **示例:**
```js ```js
InputMethodSetting.listInputMethodSubtype({"name":'', "id":''}, (err,data) => { let inputMethodSubProperty = {
if (err) { id: "com.example.kikainput",
console.error('listInputMethod failed because: ' + JSON.stringify(err)); label: "ServiceExtAbility"
return; }
} try {
console.log('listInputMethod success'); InputMethodSetting.listInputMethodSubtype(inputMethodSubProperty, (err,data) => {
}); if (err) {
console.error('listInputMethodSubtype failed because: ' + JSON.stringify(err));
return;
}
console.log('listInputMethodSubtype success');
});
} catch (err) {
console.error('err: ' + err.code + 'err message: ' + err.message);
}
``` ```
### listInputMethodSubtype<sup>9+</sup> ### listInputMethodSubtype<sup>9+</sup>
...@@ -679,11 +751,19 @@ listInputMethodSubtype(inputMethodProperty: InputMethodProperty): Promise&lt;Arr ...@@ -679,11 +751,19 @@ listInputMethodSubtype(inputMethodProperty: InputMethodProperty): Promise&lt;Arr
**示例:** **示例:**
```js ```js
InputMethodSetting.listInputMethodSubtype().then((data) => { let inputMethodSubProperty = {
console.info('listInputMethodSubtype success'); id: "com.example.kikainput",
}).catch((err) => { label: "ServiceExtAbility"
console.error('listInputMethodSubtype promise err: ' + err); }
}) try {
InputMethodSetting.listInputMethodSubtype(inputMethodSubProperty).then((data) => {
console.info('listInputMethodSubtype success');
}).catch((err) => {
console.error('listInputMethodSubtype promise err: ' + err);
})
} catch(err) {
console.error('err: ' + err.code + 'err message: ' + err.message);
}
``` ```
### listCurrentInputMethodSubtype<sup>9+</sup> ### listCurrentInputMethodSubtype<sup>9+</sup>
...@@ -703,13 +783,17 @@ listCurrentInputMethodSubtype(callback: AsyncCallback&lt;Array&lt;InputMethodSub ...@@ -703,13 +783,17 @@ listCurrentInputMethodSubtype(callback: AsyncCallback&lt;Array&lt;InputMethodSub
**示例:** **示例:**
```js ```js
InputMethodSetting.listCurrentInputMethodSubtype((err,data) => { try {
if (err) { InputMethodSetting.listCurrentInputMethodSubtype((err,data) => {
console.error('listCurrentInputMethodSubtype failed because: ' + JSON.stringify(err)); if (err) {
return; console.error('listCurrentInputMethodSubtype failed because: ' + JSON.stringify(err));
} return;
console.log('listCurrentInputMethodSubtype success'); }
}); console.log('listCurrentInputMethodSubtype success');
});
} catch(err) {
console.error('err: ' + err.code + 'err message: ' + err.message);
}
``` ```
### listCurrentInputMethodSubtype<sup>9+</sup> ### listCurrentInputMethodSubtype<sup>9+</sup>
...@@ -729,11 +813,16 @@ listCurrentInputMethodSubtype(): Promise&lt;Array&lt;InputMethodSubtype&gt;&gt; ...@@ -729,11 +813,16 @@ listCurrentInputMethodSubtype(): Promise&lt;Array&lt;InputMethodSubtype&gt;&gt;
**示例:** **示例:**
```js ```js
InputMethodSetting.listCurrentInputMethodSubtype().then((data) => { try {
console.info('listCurrentInputMethodSubtype success'); InputMethodSetting.listCurrentInputMethodSubtype().then((data) => {
}).catch((err) => { console.info('listCurrentInputMethodSubtype success');
console.error('listCurrentInputMethodSubtype promise err: ' + err); }).catch((err) => {
}) console.error('listCurrentInputMethodSubtype promise err: ' + err);
})
} catch(err) {
console.error('err: ' + err.code + 'err message: ' + err.message);
}
``` ```
### getInputMethods<sup>9+</sup> ### getInputMethods<sup>9+</sup>
...@@ -754,13 +843,17 @@ getInputMethods(enable: boolean, callback: AsyncCallback&lt;Array&lt;InputMethod ...@@ -754,13 +843,17 @@ getInputMethods(enable: boolean, callback: AsyncCallback&lt;Array&lt;InputMethod
**示例:** **示例:**
```js ```js
InputMethodSetting.getInputMethods(true, (err,data) => { try {
if (err) { InputMethodSetting.getInputMethods(true, (err,data) => {
console.error('getInputMethods failed because: ' + JSON.stringify(err)); if (err) {
return; console.error('getInputMethods failed because: ' + JSON.stringify(err));
} return;
console.log('getInputMethods success'); }
}); console.log('getInputMethods success');
});
} catch (err) {
console.error('err: ' + err.code + 'err message: ' + err.message);
}
``` ```
### getInputMethods<sup>9+</sup> ### getInputMethods<sup>9+</sup>
...@@ -786,11 +879,15 @@ getInputMethods(enable: boolean): Promise&lt;Array&lt;InputMethodProperty&gt;&gt ...@@ -786,11 +879,15 @@ getInputMethods(enable: boolean): Promise&lt;Array&lt;InputMethodProperty&gt;&gt
**示例:** **示例:**
```js ```js
InputMethodSetting.getInputMethods(true).then((data) => { try {
console.info('getInputMethods success'); InputMethodSetting.getInputMethods(true).then((data) => {
}).catch((err) => { console.info('getInputMethods success');
console.error('getInputMethods promise err: ' + err); }).catch((err) => {
}) console.error('getInputMethods promise err: ' + err);
})
} catch(err) {
console.error('err: ' + err.code + 'err message: ' + err.message);
}
``` ```
### listInputMethod<sup>deprecated</sup> ### listInputMethod<sup>deprecated</sup>
...@@ -888,16 +985,20 @@ showOptionalInputMethods(callback: AsyncCallback&lt;void&gt;): void ...@@ -888,16 +985,20 @@ showOptionalInputMethods(callback: AsyncCallback&lt;void&gt;): void
**示例:** **示例:**
```js ```js
InputMethodSetting.showOptionalInputMethods((err) => { try {
if (err) { InputMethodSetting.showOptionalInputMethods((err) => {
console.error('showOptionalInputMethods failed because: ' + JSON.stringify(err)); if (err) {
return; console.error('showOptionalInputMethods failed because: ' + JSON.stringify(err));
} return;
console.info('showOptionalInputMethods success'); }
}); console.info('showOptionalInputMethods success');
});
} catch (err) {
console.error('err: ' + err.code + 'err message: ' + err.message);
}
``` ```
### displayOptionalInputMethod ### displayOptionalInputMethod<sup>deprecated</sup>
displayOptionalInputMethod(): Promise&lt;void&gt; displayOptionalInputMethod(): Promise&lt;void&gt;
......
...@@ -57,6 +57,11 @@ getInputMethodEngine(): InputMethodEngine ...@@ -57,6 +57,11 @@ getInputMethodEngine(): InputMethodEngine
获取服务端实例。 获取服务端实例。
> **说明:**
> 从API version 9开始废弃, 建议使用[getInputMethodAbility](#getInputMethodAbility)替代
>
> 从 API version 8开始支持。
**系统能力**: SystemCapability.MiscServices.InputMethodFramework **系统能力**: SystemCapability.MiscServices.InputMethodFramework
**返回值:** **返回值:**
...@@ -71,7 +76,7 @@ getInputMethodEngine(): InputMethodEngine ...@@ -71,7 +76,7 @@ getInputMethodEngine(): InputMethodEngine
var InputMethodEngine = inputMethodEngine.getInputMethodEngine(); var InputMethodEngine = inputMethodEngine.getInputMethodEngine();
``` ```
## inputMethodAbility.getInputMethodAbility<a name="getInputMethodAbility"></a> ## inputMethodAbility.getInputMethodAbility<a name="getInputMethodAbility"></a><sup>9+</sup>
getInputMethodAbility(): InputMethodAbility getInputMethodAbility(): InputMethodAbility
...@@ -97,6 +102,11 @@ createKeyboardDelegate(): KeyboardDelegate ...@@ -97,6 +102,11 @@ createKeyboardDelegate(): KeyboardDelegate
获取客户端监听实例。 获取客户端监听实例。
> **说明:**
> 从API version 9开始废弃, 建议使用[getKeyboardDelegate](#getKeyboardDelegate)替代
>
> 从 API version 8开始支持。
**系统能力**: SystemCapability.MiscServices.InputMethodFramework **系统能力**: SystemCapability.MiscServices.InputMethodFramework
**返回值:** **返回值:**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册