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 class of an process running information. 23 * 24 * @typedef ProcessRunningInfo 25 * @syscap SystemCapability.Ability.AbilityRuntime.Mission 26 * @since 8 27 * @deprecated since 9 28 * @useinstead ProcessInformation/ProcessInformation 29 */ 30export interface ProcessRunningInfo { 31 /** 32 * @type { number } 33 * @default process id 34 * @syscap SystemCapability.Ability.AbilityRuntime.Mission 35 * @since 8 36 * @deprecated since 9 37 * @useinstead ProcessInformation/ProcessInformation#pid 38 */ 39 pid: number; 40 41 /** 42 * @type { number } 43 * @default user id 44 * @syscap SystemCapability.Ability.AbilityRuntime.Mission 45 * @since 8 46 * @deprecated since 9 47 * @useinstead ProcessInformation/ProcessInformation#uid 48 */ 49 uid: number; 50 51 /** 52 * @type { string } 53 * @default the name of the process 54 * @syscap SystemCapability.Ability.AbilityRuntime.Mission 55 * @since 8 56 * @deprecated since 9 57 * @useinstead ProcessInformation/ProcessInformation#processName 58 */ 59 processName: string; 60 61 /** 62 * @type { Array<string> } 63 * @default an array of the bundleNames running in the process 64 * @syscap SystemCapability.Ability.AbilityRuntime.Mission 65 * @since 8 66 * @deprecated since 9 67 * @useinstead ProcessInformation/ProcessInformation#bundleNames 68 */ 69 bundleNames: Array<string>; 70} 71