• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2021-2022 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 * Want is the basic communication component of the system.
18 *
19 * @name Want
20 * @since 8
21 * @syscap SystemCapability.Ability.AbilityBase
22 * @permission N/A
23 * @deprecated since 9
24 * @useinstead ohos.app.ability.Want
25 */
26export default class Want {
27    /**
28     * device id
29     * @default -
30     * @since 8
31     * @syscap SystemCapability.Ability.AbilityBase
32     */
33    deviceId?: string;
34
35    /**
36     * bundle name
37     * @default -
38     * @since 8
39     * @syscap SystemCapability.Ability.AbilityBase
40     */
41    bundleName?: string;
42
43    /**
44     * ability name
45     * @default -
46     * @since 8
47     * @syscap SystemCapability.Ability.AbilityBase
48     */
49    abilityName?: string;
50
51    /**
52     * The description of a URI in a Want.
53     * @since 8
54     * @syscap SystemCapability.Ability.AbilityBase
55     * @default -
56     */
57    uri?: string;
58
59    /**
60     * The description of the type in this Want.
61     * @since 8
62     * @syscap SystemCapability.Ability.AbilityBase
63     * @default -
64     */
65    type?: string;
66
67    /**
68     * The options of the flags in this Want.
69     * @since 8
70     * @syscap SystemCapability.Ability.AbilityBase
71     * @default -
72     */
73    flags?: number;
74
75    /**
76     * The description of an action in an want.
77     * @since 8
78     * @syscap SystemCapability.Ability.AbilityBase
79     * @default -
80     */
81    action?: string;
82
83    /**
84     * The description of the WantParams object in an Want
85     * @since 8
86     * @syscap SystemCapability.Ability.AbilityBase
87     * @default -
88     */
89    parameters?: {[key: string]: any};
90
91    /**
92     * The description of a entities in a Want.
93     * @since 8
94     * @syscap SystemCapability.Ability.AbilityBase
95     * @default -
96     */
97    entities?: Array<string>;
98}
99