• 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 **System capability**: SystemCapability.MiscServices.InputMethodFramework
18
19| Name| Type| Readable| Writable| Mandatory| Description|
20| -------- | -------- | -------- | -------- | -------- | -------- |
21| label | string | Yes| No| No| Label of the input method subtype.|
22| name | string | Yes| No| Yes| Name of the input method subtype.|
23| id | string | Yes| No| Yes| ID of the input method subtype.|
24| mode | string | Yes| No| No| Mode of the input method subtype, including **upper** (uppercase) and **lower** (lowercase).|
25| locale | string | Yes| No| Yes| Locale of the input method subtype.|
26| language | string | Yes| No| Yes| Language of the input method subtype.|
27| icon | string | Yes| No| No| Icon of the input method subtype.|
28| iconId | number | Yes| No| No| Icon ID of the input method subtype.|
29| extra | object | Yes| Yes| Yes| Extra information of the input method subtype.|
30