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