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 Want from '../@ohos.app.ability.Want';
22
23/**
24 * @typedef AbilityResult
25 * @syscap SystemCapability.Ability.AbilityBase
26 * @since 7
27 */
28/**
29 * @typedef AbilityResult
30 * @syscap SystemCapability.Ability.AbilityBase
31 * @atomicservice
32 * @since 11
33 */
34export interface AbilityResult {
35  /**
36   * Indicates the result code returned after the ability is destroyed. You can define the result
37   * code to identify an error.
38   *
39   * @type { number }
40   * @syscap SystemCapability.Ability.AbilityBase
41   * @since 7
42   */
43  /**
44   * Indicates the result code returned after the ability is destroyed. You can define the result
45   * code to identify an error.
46   *
47   * @type { number }
48   * @syscap SystemCapability.Ability.AbilityBase
49   * @atomicservice
50   * @since 11
51   */
52  resultCode: number;
53
54  /**
55   * Indicates the data returned after the ability is destroyed. You can define the data returned.
56   * This parameter can be null.
57   *
58   * @type { ?Want }
59   * @syscap SystemCapability.Ability.AbilityBase
60   * @since 7
61   */
62  /**
63   * Indicates the data returned after the ability is destroyed. You can define the data returned.
64   * This parameter can be null.
65   *
66   * @type { ?Want }
67   * @syscap SystemCapability.Ability.AbilityBase
68   * @atomicservice
69   * @since 11
70   */
71  want?: Want;
72}
73