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 * @since 9 19 * @syscap SystemCapability.MiscServices.InputMethodFramework 20 */ 21 export default interface InputMethodSubtype { 22 /** 23 * The label of input method subtype. 24 * @since 9 25 * @syscap SystemCapability.MiscServices.InputMethodFramework 26 */ 27 readonly label?: string; 28 29 /** 30 * The name of input method. 31 * @since 9 32 * @syscap SystemCapability.MiscServices.InputMethodFramework 33 */ 34 readonly name: string; 35 36 /** 37 * The id of input method subtype. 38 * @since 9 39 * @syscap SystemCapability.MiscServices.InputMethodFramework 40 */ 41 readonly id: string; 42 43 /** 44 * The mode of input method subtype. 45 * @since 9 46 * @syscap SystemCapability.MiscServices.InputMethodFramework 47 */ 48 readonly mode?: 'upper'|'lower'; 49 50 /** 51 * The locale of input method subtype. 52 * @since 9 53 * @syscap SystemCapability.MiscServices.InputMethodFramework 54 */ 55 readonly locale: string; 56 57 /** 58 * The language of input method subtype. 59 * @since 9 60 * @syscap SystemCapability.MiscServices.InputMethodFramework 61 */ 62 readonly language: string; 63 64 /** 65 * The icon of input method subtype. 66 * @since 9 67 * @syscap SystemCapability.MiscServices.InputMethodFramework 68 */ 69 readonly icon?: string; 70 71 /** 72 * The icon id of input method subtype. 73 * @since 9 74 * @syscap SystemCapability.MiscServices.InputMethodFramework 75 */ 76 readonly iconId?: number; 77 78 /** 79 * The extra info of input method subtype. 80 * @since 9 81 * @syscap SystemCapability.MiscServices.InputMethodFramework 82 */ 83 extra: object; 84}