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