提交 d787319f 编写于 作者: H Hollokin

update

Signed-off-by: NHollokin <taoyuxin2@huawei.com>
上级 50211b2a
...@@ -250,12 +250,12 @@ switchCurrentInputMethodSubtype(target: InputMethodSubtype, callback: AsyncCallb ...@@ -250,12 +250,12 @@ switchCurrentInputMethodSubtype(target: InputMethodSubtype, callback: AsyncCallb
**示例:** **示例:**
```js ```js
let inputMethodSubProperty = { let inputMethodSubtype = {
id: "com.example.kikainput", id: "com.example.kikainput",
label: "ServiceExtAbility" label: "ServiceExtAbility"
} }
try { try {
inputMethod.switchCurrentInputMethodSubtype(inputMethodSubProperty, (err, result) => { inputMethod.switchCurrentInputMethodSubtype(inputMethodSubtype, (err, result) => {
if (err) { if (err) {
console.error('switchCurrentInputMethodSubtype err: ' + JSON.stringify(err)); console.error('switchCurrentInputMethodSubtype err: ' + JSON.stringify(err));
return; return;
...@@ -290,12 +290,12 @@ switchCurrentInputMethodSubtype(target: InputMethodSubtype): Promise&lt;boolean& ...@@ -290,12 +290,12 @@ switchCurrentInputMethodSubtype(target: InputMethodSubtype): Promise&lt;boolean&
**示例:** **示例:**
```js ```js
let inputMethodSubProperty = { let inputMethodSubtype = {
id: "com.example.kikainput", id: "com.example.kikainput",
label: "ServiceExtAbility" label: "ServiceExtAbility"
} }
try { try {
inputMethod.switchCurrentInputMethodSubtype(inputMethodSubProperty).then((result) => { inputMethod.switchCurrentInputMethodSubtype(inputMethodSubtype).then((result) => {
if (result) { if (result) {
console.info('Success to switchCurrentInputMethodSubtype.(promise)'); console.info('Success to switchCurrentInputMethodSubtype.(promise)');
} else { } else {
...@@ -725,12 +725,12 @@ listInputMethodSubtype(inputMethodProperty: InputMethodProperty, callback: Async ...@@ -725,12 +725,12 @@ listInputMethodSubtype(inputMethodProperty: InputMethodProperty, callback: Async
**示例:** **示例:**
```js ```js
let inputMethodSubProperty = { let inputMethodProperty = {
id: "com.example.kikainput", packageName:'com.example.kikakeyboard',
label: "ServiceExtAbility" methodId:'com.example.kikakeyboard'
} }
try { try {
InputMethodSetting.listInputMethodSubtype(inputMethodSubProperty, (err,data) => { InputMethodSetting.listInputMethodSubtype(inputMethodProperty, (err,data) => {
if (err) { if (err) {
console.error('listInputMethodSubtype failed: ' + JSON.stringify(err)); console.error('listInputMethodSubtype failed: ' + JSON.stringify(err));
return; return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册