1/* 2 * Copyright (c) 2021-2023 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 process data. 23 * 24 * @syscap SystemCapability.Ability.AbilityRuntime.Core 25 * @since 14 26 */ 27export default class ProcessData { 28 /** 29 * The bundle name. 30 * 31 * @type { string } 32 * @syscap SystemCapability.Ability.AbilityRuntime.Core 33 * @since 14 34 */ 35 bundleName: string; 36 37 /** 38 * The pid. 39 * 40 * @type { number } 41 * @syscap SystemCapability.Ability.AbilityRuntime.Core 42 * @since 14 43 */ 44 pid: number; 45 46 /** 47 * The uid. 48 * 49 * @type { number } 50 * @syscap SystemCapability.Ability.AbilityRuntime.Core 51 * @since 14 52 */ 53 uid: number; 54 55 /** 56 * The process state. 57 * 58 * @type { number } 59 * @syscap SystemCapability.Ability.AbilityRuntime.Core 60 * @since 14 61 */ 62 state: number; 63 64 /** 65 * Whether the process is continuous task. 66 * 67 * @type { boolean } 68 * @syscap SystemCapability.Ability.AbilityRuntime.Core 69 * @since 14 70 */ 71 isContinuousTask: boolean; 72 73 /** 74 * Whether the process is keep alive. 75 * 76 * @type { boolean } 77 * @syscap SystemCapability.Ability.AbilityRuntime.Core 78 * @since 14 79 */ 80 isKeepAlive: boolean; 81} 82