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 */ 15import { Want } from './want'; 16 17/** 18 * @since 7 19 * @syscap SystemCapability.Ability.AbilityBase 20 * @permission N/A 21 */ 22export interface AbilityResult { 23 /** 24 * Indicates the result code returned after the ability is destroyed. You can define the result 25 * code to identify an error. 26 * @default - 27 * @since 7 28 * @syscap SystemCapability.Ability.AbilityBase 29 */ 30 resultCode: number; 31 32 /** 33 * Indicates the data returned after the ability is destroyed. You can define the data returned. 34 * This parameter can be null. 35 * @default - 36 * @since 7 37 * @syscap SystemCapability.Ability.AbilityBase 38 */ 39 want?: Want; 40}