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 21import { ElementName } from '../bundleManager/ElementName'; 22import image from '../@ohos.multimedia.image'; 23 24/** 25 * Mission snapshot corresponding to mission. 26 * 27 * @typedef MissionSnapshot 28 * @syscap SystemCapability.Ability.AbilityRuntime.Mission 29 * @systemapi 30 * @since 8 31 */ 32export interface MissionSnapshot { 33 /** 34 * Indicates the ability elementName of the mission. 35 * 36 * @type { ElementName } 37 * @syscap SystemCapability.Ability.AbilityRuntime.Mission 38 * @systemapi 39 * @since 8 40 */ 41 /** 42 * Indicates the ability elementName of the mission. The elementName is an ohos.bundleManager.ElementName object. 43 * 44 * @type { ElementName } 45 * @syscap SystemCapability.Ability.AbilityRuntime.Mission 46 * @systemapi 47 * @since 12 48 */ 49 ability: ElementName; 50 51 /** 52 * Indicates mission snapshot. 53 * 54 * @type { image.PixelMap } 55 * @syscap SystemCapability.Ability.AbilityRuntime.Mission 56 * @systemapi 57 * @since 8 58 */ 59 snapshot: image.PixelMap; 60} 61