• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2022 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16/**
17 * Input method subtype
18 *
19 * @interface InputMethodSubtype
20 * @syscap SystemCapability.MiscServices.InputMethodFramework
21 * @since 9
22 */
23export default interface InputMethodSubtype {
24  /**
25   * The label of input method subtype.
26   *
27   * @syscap SystemCapability.MiscServices.InputMethodFramework
28   * @since 9
29   */
30  readonly label?: string;
31
32  /**
33   * The label id of input method subtype.
34   *
35   * @type { ?number }
36   * @syscap SystemCapability.MiscServices.InputMethodFramework
37   * @since 10
38   */
39  readonly labelId?: number;
40
41  /**
42   * The name of input method.
43   *
44   * @syscap SystemCapability.MiscServices.InputMethodFramework
45   * @since 9
46   */
47  readonly name: string;
48
49  /**
50   * The id of input method subtype.
51   *
52   * @syscap SystemCapability.MiscServices.InputMethodFramework
53   * @since 9
54   */
55  readonly id: string;
56
57  /**
58   * The mode of input method subtype.
59   *
60   * @syscap SystemCapability.MiscServices.InputMethodFramework
61   * @since 9
62   */
63  readonly mode?: 'upper' | 'lower';
64
65  /**
66   * The locale of input method subtype.
67   *
68   * @syscap SystemCapability.MiscServices.InputMethodFramework
69   * @since 9
70   */
71  readonly locale: string;
72
73  /**
74   * The language of input method subtype.
75   *
76   * @syscap SystemCapability.MiscServices.InputMethodFramework
77   * @since 9
78   */
79  readonly language: string;
80
81  /**
82   * The icon of input method subtype.
83   *
84   * @syscap SystemCapability.MiscServices.InputMethodFramework
85   * @since 9
86   */
87  readonly icon?: string;
88
89  /**
90   * The icon id of input method subtype.
91   *
92   * @syscap SystemCapability.MiscServices.InputMethodFramework
93   * @since 9
94   */
95  readonly iconId?: number;
96
97  /**
98   * The extra info of input method subtype.
99   *
100   * @type { object }
101   * @syscap SystemCapability.MiscServices.InputMethodFramework
102   * @since 9
103   */
104  /**
105   * The extra info of input method subtype.
106   *
107   * @type { ?object }
108   * @syscap SystemCapability.MiscServices.InputMethodFramework
109   * @since 10
110   */
111  extra?: object;
112}