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 */ 25export interface ContinuationExtraParams { 26 /** 27 * Indicates the type of devices to be matched. 28 * 29 * @type { ?Array<string> } 30 * @syscap SystemCapability.Ability.DistributedAbilityManager 31 * @since 8 32 */ 33 deviceType?: Array<string>; 34 35 /** 36 * Indicates the bundle name of the target application where the ability will be hopped. 37 * 38 * @type { ?string } 39 * @syscap SystemCapability.Ability.DistributedAbilityManager 40 * @since 8 41 */ 42 targetBundle?: string; 43 44 /** 45 * Indicates the description used for device filtering. 46 * 47 * @type { ?string } 48 * @syscap SystemCapability.Ability.DistributedAbilityManager 49 * @since 8 50 */ 51 description?: string; 52 53 /** 54 * Parameters used for filtering devices, type must be { [key: string]: any }. 55 * 56 * @type { ?any } 57 * @syscap SystemCapability.Ability.DistributedAbilityManager 58 * @since 8 59 */ 60 filter?: any; 61 62 /** 63 * Mode of continuation. 64 * 65 * @type { ?continuationManager.ContinuationMode } 66 * @syscap SystemCapability.Ability.DistributedAbilityManager 67 * @since 8 68 */ 69 continuationMode?: continuationManager.ContinuationMode; 70 71 /** 72 * Authentication extra infos. 73 * 74 * @type { ?object } 75 * @syscap SystemCapability.Ability.DistributedAbilityManager 76 * @since 8 77 */ 78 authInfo?: { [key: string]: any }; 79} 80