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 * Define startup Ability parameters, which can be used as input parameters.
25 *
26 * @typedef StartAbilityParameter
27 * @syscap SystemCapability.Ability.AbilityRuntime.FAModel
28 * @since 6
29 */
30export interface StartAbilityParameter {
31  /**
32   * Indicates the Want containing information about the target ability to start.
33   *
34   * @type { Want }
35   * @syscap SystemCapability.Ability.AbilityRuntime.FAModel
36   * @FAModelOnly
37   * @since 6
38   */
39  want: Want;
40
41  /**
42   * Indicates the special start setting used in starting ability.
43   *
44   * @type { ?object }
45   * @syscap SystemCapability.Ability.AbilityRuntime.FAModel
46   * @FAModelOnly
47   * @since 6
48   */
49  abilityStartSetting?: { [key: string]: any };
50
51  /**
52   * Indicates the special start setting used in starting ability.
53   * The ability of this property is same as abilityStartSetting. If both are set, this property will be used.
54   *
55   * @type { ?Record<string, Object>}
56   * @syscap SystemCapability.Ability.AbilityRuntime.FAModel
57   * @FAModelOnly
58   * @since 11
59   */
60  abilityStartSettings?: Record<string, Object>;
61}
62