• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2022-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 continuationManager from '../@ohos.continuation.continuationManager';
17
18/**
19 * Indicates the description of additional parameters for continuation.
20 *
21 * @typedef ContinuationExtraParams
22 * @syscap SystemCapability.Ability.DistributedAbilityManager
23 * @since 8
24 */
25/**
26 * Indicates the description of additional parameters for continuation.
27 *
28 * @typedef ContinuationExtraParams
29 * @syscap SystemCapability.Ability.DistributedAbilityManager
30 * @atomicservice
31 * @since 11
32 */
33export interface ContinuationExtraParams {
34  /**
35   * Indicates the type of devices to be matched.
36   *
37   * @type { ?Array<string> }
38   * @syscap SystemCapability.Ability.DistributedAbilityManager
39   * @since 8
40   */
41  /**
42   * Indicates the type of devices to be matched.
43   *
44   * @type { ?Array<string> }
45   * @syscap SystemCapability.Ability.DistributedAbilityManager
46   * @atomicservice
47   * @since 11
48   */
49  deviceType?: Array<string>;
50
51  /**
52   * Indicates the bundle name of the target application where the ability will be hopped.
53   *
54   * @type { ?string }
55   * @syscap SystemCapability.Ability.DistributedAbilityManager
56   * @since 8
57   */
58  /**
59   * Indicates the bundle name of the target application where the ability will be hopped.
60   *
61   * @type { ?string }
62   * @syscap SystemCapability.Ability.DistributedAbilityManager
63   * @atomicservice
64   * @since 11
65   */
66  targetBundle?: string;
67
68  /**
69   * Indicates the description used for device filtering.
70   *
71   * @type { ?string }
72   * @syscap SystemCapability.Ability.DistributedAbilityManager
73   * @since 8
74   */
75  /**
76   * Indicates the description used for device filtering.
77   *
78   * @type { ?string }
79   * @syscap SystemCapability.Ability.DistributedAbilityManager
80   * @atomicservice
81   * @since 11
82   */
83  description?: string;
84
85  /**
86   * Parameters used for filtering devices, type must be { [key: string]: any }.
87   *
88   * @type { ?any }
89   * @syscap SystemCapability.Ability.DistributedAbilityManager
90   * @since 8
91   */
92  /**
93   * Parameters used for filtering devices, type must be { [key: string]: any }.
94   *
95   * @type { ?any }
96   * @syscap SystemCapability.Ability.DistributedAbilityManager
97   * @atomicservice
98   * @since 11
99   */
100  filter?: any;
101
102  /**
103   * Mode of continuation.
104   *
105   * @type { ?continuationManager.ContinuationMode }
106   * @syscap SystemCapability.Ability.DistributedAbilityManager
107   * @since 8
108   */
109  /**
110   * Mode of continuation.
111   *
112   * @type { ?continuationManager.ContinuationMode }
113   * @syscap SystemCapability.Ability.DistributedAbilityManager
114   * @atomicservice
115   * @since 11
116   */
117  continuationMode?: continuationManager.ContinuationMode;
118
119  /**
120   * Authentication extra infos.
121   *
122   * @type { ?object }
123   * @syscap SystemCapability.Ability.DistributedAbilityManager
124   * @since 8
125   */
126  /**
127   * Authentication extra infos.
128   *
129   * @type { ?object }
130   * @syscap SystemCapability.Ability.DistributedAbilityManager
131   * @atomicservice
132   * @since 11
133   */
134  /**
135   * Authentication extra infos.
136   *
137   * @type { ?Record<string, Object> }
138   * @syscap SystemCapability.Ability.DistributedAbilityManager
139   * @atomicservice
140   * @since 11
141   */
142  authInfo?: Record<string, Object>;
143}
144