• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 * @systemapi
26 * @since 8
27 */
28export default class ProcessData {
29  /**
30   * The bundle name.
31   *
32   * @type { string }
33   * @syscap SystemCapability.Ability.AbilityRuntime.Core
34   * @systemapi
35   * @since 8
36   */
37  bundleName: string;
38
39  /**
40   * The pid.
41   *
42   * @type { number }
43   * @syscap SystemCapability.Ability.AbilityRuntime.Core
44   * @systemapi
45   * @since 8
46   */
47  pid: number;
48
49  /**
50   * The uid.
51   *
52   * @type { number }
53   * @syscap SystemCapability.Ability.AbilityRuntime.Core
54   * @systemapi
55   * @since 8
56   */
57  uid: number;
58
59  /**
60   * The process state.
61   *
62   * @type { number }
63   * @syscap SystemCapability.Ability.AbilityRuntime.Core
64   * @systemapi
65   * @since 9
66   */
67  state: number;
68
69  /**
70   * Whether the process is continuous task.
71   *
72   * @type { boolean }
73   * @syscap SystemCapability.Ability.AbilityRuntime.Core
74   * @systemapi
75   * @since 9
76   */
77  isContinuousTask: boolean;
78
79  /**
80   * Whether the process is keep alive.
81   *
82   * @type { boolean }
83   * @syscap SystemCapability.Ability.AbilityRuntime.Core
84   * @systemapi
85   * @since 9
86   */
87  isKeepAlive: boolean;
88}
89