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 arkts {'1.1':'11', '1.2':'20'} 33 * @arkts 1.1&1.2 34 */ 35export interface AbilityResult { 36 /** 37 * Indicates the result code returned after the ability is destroyed. You can define the result 38 * code to identify an error. 39 * 40 * @type { number } 41 * @syscap SystemCapability.Ability.AbilityBase 42 * @since 7 43 */ 44 /** 45 * Indicates the result code returned after the ability is destroyed. You can define the result 46 * code to identify an error. 47 * 48 * @type { number } 49 * @syscap SystemCapability.Ability.AbilityBase 50 * @atomicservice 51 * @since arkts {'1.1':'11', '1.2':'20'} 52 * @arkts 1.1&1.2 53 */ 54 resultCode: number; 55 56 /** 57 * Indicates the data returned after the ability is destroyed. You can define the data returned. 58 * This parameter can be null. 59 * 60 * @type { ?Want } 61 * @syscap SystemCapability.Ability.AbilityBase 62 * @since 7 63 */ 64 /** 65 * Indicates the data returned after the ability is destroyed. You can define the data returned. 66 * This parameter can be null. 67 * 68 * @type { ?Want } 69 * @syscap SystemCapability.Ability.AbilityBase 70 * @atomicservice 71 * @since arkts {'1.1':'11', '1.2':'20'} 72 * @arkts 1.1&1.2 73 */ 74 want?: Want; 75} 76