harmony 鸿蒙@ohos.InputMethodSubtype (输入法子类型)

  • 2025-06-16
  • 浏览 (2)

@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 鸿蒙IME Kit(输入法开发服务)

harmony 鸿蒙InputMethod

harmony 鸿蒙输入法框架错误码

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

harmony 鸿蒙inputmethod_text_avoid_info_capi.h

harmony 鸿蒙inputmethod_text_config_capi.h

0  赞