• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2022 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 continuationManager from "../@ohos.continuation.continuationManager";
17
18/**
19 * Indicates the description of additional parameters for continuation.
20 *
21 * @since 8
22 * @syscap SystemCapability.Ability.DistributedAbilityManager
23 */
24export interface ContinuationExtraParams {
25    /**
26     * Indicates the type of devices to be matched.
27     *
28     * @since 8
29     * @syscap SystemCapability.Ability.DistributedAbilityManager
30     */
31    deviceType?: Array<string>;
32
33    /**
34     * Indicates the bundle name of the target application where the ability will be hopped.
35     *
36     * @since 8
37     * @syscap SystemCapability.Ability.DistributedAbilityManager
38     */
39    targetBundle?: string;
40
41    /**
42     * Indicates the description used for device filtering.
43     *
44     * @since 8
45     * @syscap SystemCapability.Ability.DistributedAbilityManager
46     */
47    description?: string;
48
49    /**
50     * Parameters used for filtering devices, type must be { [key: string]: any }.
51     *
52     * @since 8
53     * @syscap SystemCapability.Ability.DistributedAbilityManager
54     */
55    filter?: any;
56
57    /**
58     * Mode of continuation.
59     *
60     * @since 8
61     * @syscap SystemCapability.Ability.DistributedAbilityManager
62     */
63    continuationMode?: continuationManager.ContinuationMode;
64
65    /**
66     * Authentication extra infos.
67     *
68     * @since 8
69     * @syscap SystemCapability.Ability.DistributedAbilityManager
70     */
71    authInfo?: { [key: string]: any }
72}