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'; 23 24/** 25 * The class of running multi app information. 26 * 27 * @typedef RunningMultiAppInfo 28 * @syscap SystemCapability.Ability.AbilityRuntime.Core 29 * @systemapi 30 * @since 12 31 */ 32export interface RunningMultiAppInfo { 33 34 35 /** 36 * The name of the bundle. 37 * 38 * @type { string } 39 * @syscap SystemCapability.Ability.AbilityRuntime.Core 40 * @systemapi 41 * @since 12 42 */ 43 bundleName: string; 44 45 /** 46 * The app multi mode. 47 * 48 * @type { MultiAppMode } 49 * @syscap SystemCapability.Ability.AbilityRuntime.Core 50 * @systemapi 51 * @since 12 52 */ 53 mode: MultiAppMode; 54 55 /** 56 * All running app info for bundle if mode is {@link APP_CLONE}. 57 * 58 * @type { ?Array<RunningAppClone> } 59 * @syscap SystemCapability.Ability.AbilityRuntime.Core 60 * @systemapi 61 * @since 12 62 */ 63 runningAppClones?: Array<RunningAppClone>; 64}