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