• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 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
21import { MultiAppMode } from './MultiAppMode';
22import { RunningAppClone } from './RunningAppClone';
23import { RunningMultiInstanceInfo } from './RunningMultiInstanceInfo';
24
25/**
26 * The class of running multi app information.
27 *
28 * @typedef RunningMultiAppInfo
29 * @syscap SystemCapability.Ability.AbilityRuntime.Core
30 * @systemapi
31 * @since 12
32 */
33export interface RunningMultiAppInfo {
34
35
36  /**
37   * The name of the bundle.
38   *
39   * @type { string }
40   * @syscap SystemCapability.Ability.AbilityRuntime.Core
41   * @systemapi
42   * @since 12
43   */
44  bundleName: string;
45
46  /**
47   * The app multi mode.
48   *
49   * @type { MultiAppMode }
50   * @syscap SystemCapability.Ability.AbilityRuntime.Core
51   * @systemapi
52   * @since 12
53   */
54  mode: MultiAppMode;
55
56  /**
57   * All running instance info for bundle if mode is {@link MULTI_INSTANCE}.
58   *
59   * @type { ?Array<RunningMultiInstanceInfo> }
60   * @syscap SystemCapability.Ability.AbilityRuntime.Core
61   * @systemapi
62   * @since 14
63   */
64  runningMultiInstances?: Array<RunningMultiInstanceInfo>;
65
66  /**
67   * All running app info for bundle if mode is {@link APP_CLONE}.
68   *
69   * @type { ?Array<RunningAppClone> }
70   * @syscap SystemCapability.Ability.AbilityRuntime.Core
71   * @systemapi
72   * @since 12
73   */
74  runningAppClones?: Array<RunningAppClone>;
75}