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 * @file 18 * @kit AbilityKit 19 */ 20 21/** 22 * Indicates the Metadata 23 * 24 * @typedef Metadata 25 * @syscap SystemCapability.BundleManager.BundleFramework.Core 26 * @since 9 27 */ 28/** 29 * Indicates the Metadata 30 * 31 * @typedef Metadata 32 * @syscap SystemCapability.BundleManager.BundleFramework.Core 33 * @crossplatform 34 * @since 10 35 */ 36/** 37 * Indicates the Metadata 38 * 39 * @typedef Metadata 40 * @syscap SystemCapability.BundleManager.BundleFramework.Core 41 * @crossplatform 42 * @atomicservice 43 * @since arkts {'1.1':'11', '1.2':'20'} 44 * @arkts 1.1&1.2 45 */ 46export interface Metadata { 47 /** 48 * Indicates the metadata name 49 * 50 * @type { string } 51 * @syscap SystemCapability.BundleManager.BundleFramework.Core 52 * @since 9 53 */ 54 /** 55 * Indicates the metadata name 56 * 57 * @type { string } 58 * @syscap SystemCapability.BundleManager.BundleFramework.Core 59 * @crossplatform 60 * @since 10 61 */ 62 /** 63 * Indicates the metadata name 64 * 65 * @type { string } 66 * @syscap SystemCapability.BundleManager.BundleFramework.Core 67 * @crossplatform 68 * @atomicservice 69 * @since arkts {'1.1':'11', '1.2':'20'} 70 * @arkts 1.1&1.2 71 */ 72 name: string; 73 74 /** 75 * Indicates the metadata value 76 * 77 * @type { string } 78 * @syscap SystemCapability.BundleManager.BundleFramework.Core 79 * @since 9 80 */ 81 /** 82 * Indicates the metadata value 83 * 84 * @type { string } 85 * @syscap SystemCapability.BundleManager.BundleFramework.Core 86 * @crossplatform 87 * @since 10 88 */ 89 /** 90 * Indicates the metadata value 91 * 92 * @type { string } 93 * @syscap SystemCapability.BundleManager.BundleFramework.Core 94 * @crossplatform 95 * @atomicservice 96 * @since arkts {'1.1':'11', '1.2':'20'} 97 * @arkts 1.1&1.2 98 */ 99 value: string; 100 101 /** 102 * Indicates the metadata resource 103 * 104 * @type { string } 105 * @syscap SystemCapability.BundleManager.BundleFramework.Core 106 * @since 9 107 */ 108 /** 109 * Indicates the metadata resource 110 * 111 * @type { string } 112 * @syscap SystemCapability.BundleManager.BundleFramework.Core 113 * @crossplatform 114 * @since 10 115 */ 116 /** 117 * Indicates the metadata resource 118 * 119 * @type { string } 120 * @syscap SystemCapability.BundleManager.BundleFramework.Core 121 * @crossplatform 122 * @atomicservice 123 * @since arkts {'1.1':'11', '1.2':'20'} 124 * @arkts 1.1&1.2 125 */ 126 resource: string; 127 128 /** 129 * Indicates the value id of the metadata 130 * 131 * @type { ?number } 132 * @readonly 133 * @syscap SystemCapability.BundleManager.BundleFramework.Core 134 * @atomicservice 135 * @since arkts {'1.1':'18', '1.2':'20'} 136 * @arkts 1.1&1.2 137 */ 138 readonly valueId?: number; 139} 140