• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# @ohos.InputMethodSubtype (Input Method Subtype)
2
3The **InputMethodSubtype** module provides APIs for managing the attributes of input method subtypes. Different attribute settings result in different subtypes.
4
5> **NOTE**
6>
7>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.
8
9## Modules to Import
10
11```
12import InputMethodSubtype from '@ohos.InputMethodSubtype';
13```
14
15## Attributes
16
17
18
19**System capability**: SystemCapability.MiscServices.InputMethodFramework
20
21| Name| Type| Readable| Writable| Description|
22| -------- | -------- | -------- | -------- | -------- |
23| label | string | Yes| No| Optional. Label of the input method subtype.|
24| labelId<sup>10+</sup> | string | Yes| No| Optional. Label ID of the input method subtype.|
25| name | string | Yes| No| Mandatory. Bundle name of the input method.|
26| id | string | Yes| No| Mandatory. ID of the input method subtype.|
27| mode | string | Yes| No| Optional. Mode of the input method subtype, including **upper** (uppercase) and **lower** (lowercase).|
28| locale | string | Yes| No| Mandatory. Locale of the input method subtype.|
29| language | string | Yes| No| Mandatory. Language of the input method subtype.|
30| icon | string | Yes| No| Optional. Icon of the input method subtype. It can be obtained by using **iconId**. This parameter is reserved.|
31| iconId | number | Yes| No| Optional. Icon ID of the input method subtype.|
32| extra | object | Yes| Yes| Optional. Extra information of the input method subtype. This parameter is reserved and currently has no specific meaning.<br>**NOTE**<br>This parameter is optional since API version 10.|
33