1/* 2 * Copyright (c) 2021-2024 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 * The ability or extension state data. 23 * 24 * @syscap SystemCapability.Ability.AbilityRuntime.Core 25 * @since 14 26 */ 27export default class AbilityStateData { 28 /** 29 * The module name. 30 * 31 * @type { string } 32 * @syscap SystemCapability.Ability.AbilityRuntime.Core 33 * @since 14 34 */ 35 moduleName: string; 36 37 /** 38 * The bundle name. 39 * 40 * @type { string } 41 * @syscap SystemCapability.Ability.AbilityRuntime.Core 42 * @since 14 43 */ 44 bundleName: string; 45 46 /** 47 * The ability name. 48 * 49 * @type { string } 50 * @syscap SystemCapability.Ability.AbilityRuntime.Core 51 * @since 14 52 */ 53 abilityName: string; 54 55 /** 56 * The pid. 57 * 58 * @type { number } 59 * @syscap SystemCapability.Ability.AbilityRuntime.Core 60 * @since 14 61 */ 62 pid: number; 63 64 /** 65 * The uid. 66 * 67 * @type { number } 68 * @syscap SystemCapability.Ability.AbilityRuntime.Core 69 * @since 14 70 */ 71 uid: number; 72 73 /** 74 * The application state. 75 * 76 * @type { number } 77 * @syscap SystemCapability.Ability.AbilityRuntime.Core 78 * @since 14 79 */ 80 state: number; 81 82 /** 83 * The ability type, page or service and so on. 84 * 85 * @type { number } 86 * @syscap SystemCapability.Ability.AbilityRuntime.Core 87 * @since 14 88 */ 89 abilityType: number; 90 91 /** 92 * Indicates whether the application is atomic service. 93 * 94 * @type { boolean } 95 * @syscap SystemCapability.Ability.AbilityRuntime.Core 96 * @since 14 97 */ 98 isAtomicService: boolean; 99 100 /** 101 * The app clone index of ability instance. 102 * @type { ?number } 103 * @syscap SystemCapability.Ability.AbilityRuntime.Core 104 * @since 14 105 */ 106 appCloneIndex?: number; 107} 108