• 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 application state data.
23 *
24 * @syscap SystemCapability.Ability.AbilityRuntime.Core
25 * @since 14
26 */
27export default class AppStateData {
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 uid.
39   *
40   * @type { number }
41   * @syscap SystemCapability.Ability.AbilityRuntime.Core
42   * @since 14
43   */
44  uid: number;
45
46  /**
47   * The application state.
48   *
49   * @type { number }
50   * @syscap SystemCapability.Ability.AbilityRuntime.Core
51   * @since 14
52   */
53  state: number;
54
55  /**
56   * Indicates whether the application has splitted screens.
57   *
58   * @type { boolean }
59   * @syscap SystemCapability.Ability.AbilityRuntime.Core
60   * @since 14
61   */
62  isSplitScreenMode: boolean;
63
64  /**
65   * Indicates whether the application has floating windows.
66   *
67   * @type { boolean }
68   * @syscap SystemCapability.Ability.AbilityRuntime.Core
69   * @since 14
70   */
71  isFloatingWindowMode: boolean;
72}
73