harmony 鸿蒙@ohos.InputMethodSubtype (Input Method Subtype)
@ohos.InputMethodSubtype (Input Method Subtype)
The InputMethodSubtype module provides APIs for managing the attributes of input method subtypes. The input method subtype allows the input method to switch to a specific mode or language, for example, the Chinese or English keyboard.
NOTE
The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version.
Modules to Import
import InputMethodSubtype from '@ohos.InputMethodSubtype';
Attributes
System capability: SystemCapability.MiscServices.InputMethodFramework
Name | Type | Readable | Writable | Description |
---|---|---|---|---|
label | string | Yes | No | Optional. Label of the input method subtype. |
labelId10+ | string | Yes | No | Optional. Label ID of the input method subtype. |
name | string | Yes | No | Mandatory. Bundle name of the application to which the input method subtype belongs. |
id | string | Yes | No | Mandatory. ID of the input method subtype. |
mode | string | Yes | No | Optional. Mode of the input method subtype, including upper (uppercase) and lower (lowercase). |
locale | string | Yes | No | Mandatory. Locale of the input method subtype. |
language | string | Yes | No | Mandatory. Language of the input method subtype. |
icon | string | Yes | No | Optional. Icon of the input method subtype. It can be obtained by using iconId. This parameter is reserved. |
iconId | number | Yes | No | Optional. Icon ID of the input method subtype. |
extra | object | Yes | Yes | Mandatory. Extra information of the input method subtype. NOTE - This parameter is optional since API version 10. - This parameter is reserved and currently has no specific meaning. |
你可能感兴趣的鸿蒙文章
harmony 鸿蒙System Common Events (To Be Deprecated Soon)
harmony 鸿蒙System Common Events
harmony 鸿蒙API Reference Document Description
harmony 鸿蒙Enterprise Device Management Overview (for System Applications Only)
harmony 鸿蒙BundleStatusCallback
harmony 鸿蒙@ohos.bundle.innerBundleManager (innerBundleManager)
harmony 鸿蒙@ohos.distributedBundle (Distributed Bundle Management)
harmony 鸿蒙@ohos.bundle (Bundle)
harmony 鸿蒙@ohos.enterprise.EnterpriseAdminExtensionAbility (EnterpriseAdminExtensionAbility)
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦