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