• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 Want from "../@ohos.app.ability.Want";
17
18/**
19 * Mission information corresponding to ability.
20 *
21 * @since 8
22 * @syscap SystemCapability.Ability.AbilityRuntime.Mission
23 * @systemapi hide for inner use.
24 */
25export interface MissionInfo {
26    /**
27     * Indicates mission id.
28     *
29     * @since 8
30     * @syscap SystemCapability.Ability.AbilityRuntime.Mission
31     */
32    missionId: number;
33
34    /**
35     * Indicates running state.
36     *
37     * @since 8
38     * @syscap SystemCapability.Ability.AbilityRuntime.Mission
39     */
40    runningState: number;
41
42    /**
43     * Indicates locked state.
44     *
45     * @since 8
46     * @syscap SystemCapability.Ability.AbilityRuntime.Mission
47     */
48    lockedState: boolean;
49
50    /**
51     * Indicates the recent created or updated time of the mission.
52     *
53     * @since 8
54     * @syscap SystemCapability.Ability.AbilityRuntime.Mission
55     */
56    timestamp: string;
57
58    /**
59     * Indicates want of the mission.
60     *
61     * @since 8
62     * @syscap SystemCapability.Ability.AbilityRuntime.Mission
63     */
64    want: Want;
65
66    /**
67     * Indicates label of the mission.
68     *
69     * @since 8
70     * @syscap SystemCapability.Ability.AbilityRuntime.Mission
71     */
72    label: string;
73
74    /**
75     * Indicates icon path of the mission.
76     *
77     * @since 8
78     * @syscap SystemCapability.Ability.AbilityRuntime.Mission
79     */
80    iconPath: string;
81
82    /**
83     * Indicates whether the mission is continuable.
84     *
85     * @since 8
86     * @syscap SystemCapability.Ability.AbilityRuntime.Mission
87     */
88     continuable: boolean;
89}