harmony 鸿蒙@ohos.InputMethodSubtype (输入法子类型)
@ohos.InputMethodSubtype (输入法子类型)
本模块提供对输入法子类型的属性管理。输入法子类型允许输入法根据需要显示不同的输入模式或语言,完成模式或语言切换,如:输入法的中文/英文键盘等均属于输入法的子类型。
说明:
本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
导入模块
import { InputMethodSubtype } from '@kit.IMEKit';
属性
属性值。
系统能力: SystemCapability.MiscServices.InputMethodFramework
名称 | 类型 | 只读 | 可选 | 说明 |
---|---|---|---|---|
label | string | 是 | 是 | 非必填。输入法子类型的标签。 |
labelId10+ | number | 是 | 是 | 非必填。输入法子类型的标签资源号。 |
name | string | 是 | 否 | 必填。输入法子类型所属应用的包名。 |
id | string | 是 | 否 | 必填。输入法子类型的id。 |
mode | ‘upper’ |‘lower’ | 是 | 是 | 非必填。输入法子类型的模式,包括upper(大写)和lower(小写)。 |
locale | string | 是 | 否 | 必填。输入法子类型的方言版本。 |
language | string | 是 | 否 | 必填。 输入法子类型的语言。 |
icon | string | 是 | 是 | 非必填。输入法子类型的图标,可以通过iconId查询获取。预留字段,暂不支持使用。 |
iconId | number | 是 | 是 | 非必填。输入法子类型的图标id。 |
extra | object | 否 | 是 | 必填。输入法子类型的其他信息。 说明: - 从API version 10开始为非必填参数。 - 预留字段,当前无具体含义,暂不支持使用。 |
你可能感兴趣的鸿蒙文章
harmony 鸿蒙inputmethod_attach_options_capi.h
harmony 鸿蒙inputmethod_controller_capi.h
harmony 鸿蒙inputmethod_cursor_info_capi.h
harmony 鸿蒙inputmethod_inputmethod_proxy_capi.h
harmony 鸿蒙inputmethod_private_command_capi.h
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦