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 21/** 22 * Want is the basic communication component of the system. 23 * 24 * @typedef Want 25 * @syscap SystemCapability.Ability.AbilityBase 26 * @since 6 27 * @deprecated since 9 28 * @useinstead ohos.app.ability.Want/Want 29 */ 30export declare interface Want { 31 /** 32 * device id 33 * 34 * @type { ?string } 35 * @syscap SystemCapability.Ability.AbilityBase 36 * @since 6 37 * @deprecated since 9 38 * @useinstead ohos.app.ability.Want/Want#deviceId 39 */ 40 deviceId?: string; 41 42 /** 43 * bundle name 44 * 45 * @type { ?string } 46 * @syscap SystemCapability.Ability.AbilityBase 47 * @since 6 48 * @deprecated since 9 49 * @useinstead ohos.app.ability.Want/Want#bundleName 50 */ 51 bundleName?: string; 52 53 /** 54 * ability name 55 * 56 * @type { ?string } 57 * @syscap SystemCapability.Ability.AbilityBase 58 * @since 6 59 * @deprecated since 9 60 * @useinstead ohos.app.ability.Want/Want#abilityName 61 */ 62 abilityName?: string; 63 64 /** 65 * The description of a URI in a Want. 66 * 67 * @type { ?string } 68 * @syscap SystemCapability.Ability.AbilityBase 69 * @since 6 70 * @deprecated since 9 71 * @useinstead ohos.app.ability.Want/Want#uri 72 */ 73 uri?: string; 74 75 /** 76 * The description of the type in this Want. 77 * 78 * @type { ?string } 79 * @syscap SystemCapability.Ability.AbilityBase 80 * @since 6 81 * @deprecated since 9 82 * @useinstead ohos.app.ability.Want/Want#type 83 */ 84 type?: string; 85 86 /** 87 * The options of the flags in this Want. 88 * 89 * @type { ?number } 90 * @syscap SystemCapability.Ability.AbilityBase 91 * @since 6 92 * @deprecated since 9 93 * @useinstead ohos.app.ability.Want/Want#flags 94 */ 95 flags?: number; 96 97 /** 98 * The description of an action in an want. 99 * 100 * @type { ?string } 101 * @syscap SystemCapability.Ability.AbilityBase 102 * @since 6 103 * @deprecated since 9 104 * @useinstead ohos.app.ability.Want/Want#action 105 */ 106 action?: string; 107 108 /** 109 * The description of the WantParams object in an Want 110 * 111 * @type { ?object } 112 * @syscap SystemCapability.Ability.AbilityBase 113 * @since 6 114 * @deprecated since 9 115 * @useinstead ohos.app.ability.Want/Want#parameters 116 */ 117 parameters?: { [key: string]: any }; 118 119 /** 120 * The description of a entities in a Want. 121 * 122 * @type { ?Array<string> } 123 * @syscap SystemCapability.Ability.AbilityBase 124 * @since 6 125 * @deprecated since 9 126 * @useinstead ohos.app.ability.Want/Want#entities 127 */ 128 entities?: Array<string>; 129} 130