Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
XKZJ_WCL
Docs
提交
b2d30a89
D
Docs
项目概览
XKZJ_WCL
/
Docs
与 Fork 源项目一致
Fork自
OpenHarmony / Docs
通知
1
Star
0
Fork
0
代码
文件
提交
分支
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看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
b2d30a89
编写于
3月 27, 2023
作者:
O
openharmony_ci
提交者:
Gitee
3月 27, 2023
浏览文件
操作
浏览文件
下载
差异文件
!16300 【docs】修改子类型 id name label的含义赋值
Merge pull request !16300 from cy7717/master
上级
bd09ad56
fc30eda3
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
53 addition
and
43 deletion
+53
-43
zh-cn/application-dev/reference/apis/js-apis-inputmethod-subtype.md
...ication-dev/reference/apis/js-apis-inputmethod-subtype.md
+1
-1
zh-cn/application-dev/reference/apis/js-apis-inputmethod.md
zh-cn/application-dev/reference/apis/js-apis-inputmethod.md
+10
-42
zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.12/changelog-imf.md
...e-notes/changelogs/OpenHarmony_3.2.10.12/changelog-imf.md
+21
-0
zh-cn/release-notes/changelogs/OpenHarmony_4.0.5.3/changelog-imf.md
...ase-notes/changelogs/OpenHarmony_4.0.5.3/changelog-imf.md
+21
-0
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-inputmethod-subtype.md
浏览文件 @
b2d30a89
...
...
@@ -21,7 +21,7 @@ import InputMethodSubtype from '@ohos.InputMethodSubtype';
| 名称 | 类型 | 可读 | 可写 | 必选 | 说明 |
| -------- | -------- | -------- | -------- | -------- | -------- |
| label | string | 是 | 否 | 否 | 输入法子类型的标签。 |
| name | string | 是 | 否 | 是 | 输入法
子类型的名字
。 |
| name | string | 是 | 否 | 是 | 输入法
应用的包名
。 |
| id | string | 是 | 否 | 是 | 输入法子类型的id。 |
| mode | string | 是 | 否 | 否 | 输入法子类型的模式,包括upper(大写)和lower(小写)。 |
| locale | string | 是 | 否 | 是 | 输入法子类型的方言版本。 |
...
...
zh-cn/application-dev/reference/apis/js-apis-inputmethod.md
浏览文件 @
b2d30a89
...
...
@@ -256,9 +256,9 @@ switchCurrentInputMethodSubtype(target: InputMethodSubtype, callback: AsyncCallb
```
js
try
{
inputMethod
.
switchCurrentInputMethodSubtype
({
id
:
"
com.example.kikakeyboard
"
,
label
:
"
ServiceExtAbility
"
,
name
:
""
,
id
:
"
ServiceExtAbility
"
,
label
:
""
,
name
:
"
com.example.kikakeyboard
"
,
mode
:
"
upper
"
,
locale
:
""
,
language
:
""
,
...
...
@@ -317,9 +317,9 @@ switchCurrentInputMethodSubtype(target: InputMethodSubtype): Promise<boolean&
```
js
try
{
inputMethod
.
switchCurrentInputMethodSubtype
({
id
:
"
com.example.kikakeyboard
"
,
label
:
"
ServiceExtAbility
"
,
name
:
""
,
id
:
"
ServiceExtAbility
"
,
label
:
""
,
name
:
"
com.example.kikakeyboard
"
,
mode
:
"
upper
"
,
locale
:
""
,
language
:
""
,
...
...
@@ -391,25 +391,9 @@ switchCurrentInputMethodAndSubtype(inputMethodProperty: InputMethodProperty, inp
```
js
let
im
=
inputMethod
.
getCurrentInputMethod
();
let
inputMethodProperty
=
{
packageName
:
im
.
packageName
,
methodId
:
im
.
methodId
,
name
:
im
.
packageName
,
id
:
im
.
methodId
,
extra
:
{}
}
let
imSubType
=
inputMethod
.
getCurrentInputMethodSubtype
();
try
{
inputMethod
.
switchCurrentInputMethodAndSubtype
(
inputMethodProperty
,
{
id
:
"
com.example.kikakeyboard
"
,
label
:
"
ServiceExtAbility
"
,
name
:
""
,
mode
:
"
upper
"
,
locale
:
""
,
language
:
""
,
icon
:
""
,
iconId
:
0
,
extra
:
{}
},
(
err
,
result
)
=>
{
inputMethod
.
switchCurrentInputMethodAndSubtype
(
im
,
imSubType
,
(
err
,
result
)
=>
{
if
(
err
!==
undefined
)
{
console
.
error
(
'
Failed to switchCurrentInputMethodAndSubtype:
'
+
JSON
.
stringify
(
err
));
return
;
...
...
@@ -461,25 +445,9 @@ switchCurrentInputMethodAndSubtype(inputMethodProperty: InputMethodProperty, inp
```
js
let
im
=
inputMethod
.
getCurrentInputMethod
();
let
inputMethodProperty
=
{
packageName
:
im
.
packageName
,
methodId
:
im
.
methodId
,
name
:
im
.
packageName
,
id
:
im
.
methodId
,
extra
:
{}
}
let
imSubType
=
inputMethod
.
getCurrentInputMethodSubtype
();
try
{
inputMethod
.
switchCurrentInputMethodAndSubtype
(
inputMethodProperty
,
{
id
:
im
.
packageName
,
label
:
im
.
methodId
,
name
:
""
,
mode
:
"
upper
"
,
locale
:
""
,
language
:
""
,
icon
:
""
,
iconId
:
0
,
extra
:
{}
}).
then
((
result
)
=>
{
inputMethod
.
switchCurrentInputMethodAndSubtype
(
im
,
imSubType
).
then
((
result
)
=>
{
if
(
result
)
{
console
.
info
(
'
Succeeded in switching currentInputMethodAndSubtype.
'
);
}
else
{
...
...
zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.12/changelog-imf.md
0 → 100644
浏览文件 @
b2d30a89
# 输入法框架子系统-输入法框架服务ChangeLog
## @ohos.InputMethodSubtype 中输入法子类型中name、label、id属性值变更
从API9开始,变更如上三个属性值
开发者需要根据以下说明对应用进行适配。
**变更影响**
此三个属性的取值发生变化,需要开发者进行适配更新
| 名称 | 变更前 | 变更后 |
| -------- | -------- | -------- |
| label | (1)取值:输入法子类型的id。| (1)取值:输入法子类型的标签。|
| name | (1)说明:输入法子类型的名字;(2)取值:输入法子类型的标签。| (1)说明:输入法应用的包名;(2)取值:输入法应用的包名。|
| id | (1)取值:输入法应用的包名。| (1)取值:输入法子类型的id。|
**适配指导**
请按上述取值变更结果适配更新。
zh-cn/release-notes/changelogs/OpenHarmony_4.0.5.3/changelog-imf.md
0 → 100644
浏览文件 @
b2d30a89
# 输入法框架子系统-输入法框架服务ChangeLog
## @ohos.InputMethodSubtype 中输入法子类型中name、label、id属性值变更
从API9开始,变更如上三个属性值
开发者需要根据以下说明对应用进行适配。
**变更影响**
此三个属性的取值发生变化,需要开发者进行适配更新
| 名称 | 变更前 | 变更后 |
| -------- | -------- | -------- |
| label | (1)取值:输入法子类型的id。| (1)取值:输入法子类型的标签。|
| name | (1)说明:输入法子类型的名字;(2)取值:输入法子类型的标签。| (1)说明:输入法应用的包名;(2)取值:输入法应用的包名。|
| id | (1)取值:输入法应用的包名。| (1)取值:输入法子类型的id。|
**适配指导**
请按上述取值变更结果适配更新。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录