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