1/* 2 * Copyright (c) 2021 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 16import { ElementName } from '../bundle/elementName'; 17 18/** 19 * @name Mission information corresponding to ability 20 * @since 7 21 * @SysCap SystemCapability.Appexecfwk 22 * @import import AbilityMissionInfo from 'app/abilityMissionInfo' 23 * @permission N/A 24 * @devices phone, tablet, tv, wearable, car 25 */ 26export interface AbilityMissionInfo { 27 /** 28 * @default Unique identification of task stack information corresponding to ability 29 * @since 7 30 * @SysCap SystemCapability.Appexecfwk 31 */ 32 missionId: number; 33 34 /** 35 * @default The component launched as the first ability in the task stack 36 * This can be considered the "application" of this task stack 37 * @since 7 38 * @SysCap SystemCapability.Appexecfwk 39 */ 40 bottomAbility: ElementName; 41 42 /** 43 * @default The ability component at the top of the history stack of the task 44 * This is what the user is currently doing 45 * @since 7 46 * @SysCap SystemCapability.Appexecfwk 47 */ 48 topAbility: ElementName; 49 50 /** 51 * @default The corresponding ability description information in the task stack 52 * @since 7 53 * @SysCap SystemCapability.Appexecfwk 54 */ 55 windowMode: number; 56} 57 58