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 arkts {'1.1':'12', '1.2':'20'} 32 * @arkts 1.1&1.2 33 */ 34export interface RunningMultiAppInfo { 35 36 37 /** 38 * The name of the bundle. 39 * 40 * @type { string } 41 * @syscap SystemCapability.Ability.AbilityRuntime.Core 42 * @systemapi 43 * @since arkts {'1.1':'12', '1.2':'20'} 44 * @arkts 1.1&1.2 45 */ 46 bundleName: string; 47 48 /** 49 * The app multi mode. 50 * 51 * @type { MultiAppMode } 52 * @syscap SystemCapability.Ability.AbilityRuntime.Core 53 * @systemapi 54 * @since 12 55 */ 56 mode: MultiAppMode; 57 58 /** 59 * All running instance info for bundle if mode is {@link MULTI_INSTANCE}. 60 * 61 * @type { ?Array<RunningMultiInstanceInfo> } 62 * @syscap SystemCapability.Ability.AbilityRuntime.Core 63 * @systemapi 64 * @since arkts {'1.1':'14', '1.2':'20'} 65 * @arkts 1.1&1.2 66 */ 67 runningMultiInstances?: Array<RunningMultiInstanceInfo>; 68 69 /** 70 * All running app info for bundle if mode is {@link APP_CLONE}. 71 * 72 * @type { ?Array<RunningAppClone> } 73 * @syscap SystemCapability.Ability.AbilityRuntime.Core 74 * @systemapi 75 * @since 12 76 */ 77 runningAppClones?: Array<RunningAppClone>; 78}