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