Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
5aa1f6d5
D
Docs
项目概览
OpenHarmony
/
Docs
接近 2 年 前同步成功
通知
159
Star
292
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
5aa1f6d5
编写于
5月 05, 2023
作者:
H
Hollokin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
d.ts文件中有两端注释说明的,按照最新的说明中的版本号来描述文档
Signed-off-by:
N
Hollokin
<
taoyuxin2@huawei.com
>
上级
e903333f
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
3 addition
and
17 deletion
+3
-17
zh-cn/application-dev/reference/apis/js-apis-inputmethod.md
zh-cn/application-dev/reference/apis/js-apis-inputmethod.md
+3
-17
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-inputmethod.md
浏览文件 @
5aa1f6d5
...
@@ -37,7 +37,7 @@ import inputMethod from '@ohos.inputMethod';
...
@@ -37,7 +37,7 @@ import inputMethod from '@ohos.inputMethod';
| labelId
<sup>
10+
</sup>
| string | 是 | 否 | 输入法对外显示名称资源号。 非必填。|
| labelId
<sup>
10+
</sup>
| string | 是 | 否 | 输入法对外显示名称资源号。 非必填。|
| icon
<sup>
9+
</sup>
| string | 是 | 否 | 输入法图标数据。非必填。 |
| icon
<sup>
9+
</sup>
| string | 是 | 否 | 输入法图标数据。非必填。 |
| iconId
<sup>
9+
</sup>
| number | 是 | 否 | 输入法图标资源号。非必填。 |
| iconId
<sup>
9+
</sup>
| number | 是 | 否 | 输入法图标资源号。非必填。 |
| extra
<sup>
9+
</sup>
| object | 是 | 是 | 输入法扩展信息。 非必填。
<br/>
**说明:**
从API version 10开始改为非必选参数
。|
| extra
<sup>
10+
</sup>
| object | 是 | 是 | 输入法扩展信息。 非必填
。|
| packageName
<sup>
(deprecated)
</sup>
| string | 是 | 否 | 输入法包名。必填。
<br/>
**说明:**
从API version 8开始支持,从API version 9开始废弃,建议使用name替代。 |
| packageName
<sup>
(deprecated)
</sup>
| string | 是 | 否 | 输入法包名。必填。
<br/>
**说明:**
从API version 8开始支持,从API version 9开始废弃,建议使用name替代。 |
| methodId
<sup>
(deprecated)
</sup>
| string | 是 | 否 | 输入法唯一标识。必填。
<br/>
**说明:**
从API version 8开始支持,从API version 9开始废弃,建议使用id替代。 |
| methodId
<sup>
(deprecated)
</sup>
| string | 是 | 否 | 输入法唯一标识。必填。
<br/>
**说明:**
从API version 8开始支持,从API version 9开始废弃,建议使用id替代。 |
...
@@ -226,7 +226,7 @@ getCurrentInputMethod(): InputMethodProperty
...
@@ -226,7 +226,7 @@ getCurrentInputMethod(): InputMethodProperty
let
currentIme
=
inputMethod
.
getCurrentInputMethod
();
let
currentIme
=
inputMethod
.
getCurrentInputMethod
();
```
```
## inputMethod.switchCurrentInputMethodSubtype<sup>
9
+</sup>
## inputMethod.switchCurrentInputMethodSubtype<sup>
10
+</sup>
switchCurrentInputMethodSubtype(target: InputMethodSubtype, callback: AsyncCallback
\<
boolean>): void
switchCurrentInputMethodSubtype(target: InputMethodSubtype, callback: AsyncCallback
\<
boolean>): void
...
@@ -282,7 +282,7 @@ try {
...
@@ -282,7 +282,7 @@ try {
}
}
```
```
## inputMethod.switchCurrentInputMethodSubtype<sup>
9
+</sup>
## inputMethod.switchCurrentInputMethodSubtype<sup>
10
+</sup>
switchCurrentInputMethodSubtype(target: InputMethodSubtype): Promise
<
boolean
>
switchCurrentInputMethodSubtype(target: InputMethodSubtype): Promise
<
boolean
>
...
@@ -583,20 +583,6 @@ let inputMethodSetting = inputMethod.getInputMethodSetting();
...
@@ -583,20 +583,6 @@ let inputMethodSetting = inputMethod.getInputMethodSetting();
| COPY | 4 |复制。 |
| COPY | 4 |复制。 |
| PASTE | 5 |粘贴。 |
| PASTE | 5 |粘贴。 |
## InputWindowInfo<sup>10+</sup>
输入法软键盘的窗口信息。
**系统能力:**
SystemCapability.MiscServices.InputMethodFramework
| 名称 | 类型 | 可读 | 可写 | 说明 |
| -------- | -------- | -------- | -------- | -------- |
| name
<sup>
10+
</sup>
| string | 是 | 是 | 输入法窗口的名称。|
| left
<sup>
10+
</sup>
| string | 是 | 是 | 输入法窗口左上顶点的x坐标。|
| top
<sup>
10+
</sup>
| string | 是 | 是 | 输入法窗口左上顶点的y坐标。|
| width
<sup>
10+
</sup>
| string | 是 | 是 | 输入法窗口的宽度。|
| height
<sup>
10+
</sup>
| string | 是 | 是 | 输入法窗口的高度。|
## FunctionKey<sup>10+</sup>
## FunctionKey<sup>10+</sup>
输入法功能键类型。
输入法功能键类型。
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录