• 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 AAFwk
21  * @devices phone, tablet
22  * @permission N/A
23  */
24export declare interface Want {
25  /**
26   * device id
27   * @default -
28   * @devices phone, tablet
29   * @since 6
30   * @sysCap AAFwk
31   */
32  deviceId?: string;
33
34  /**
35   * bundle name
36   * @default -
37   * @devices phone, tablet
38   * @since 6
39   * @sysCap AAFwk
40   */
41  bundleName?: string;
42
43  /**
44   * ability name
45   * @default -
46   * @devices phone, tablet
47   * @since 6
48   * @sysCap AAFwk
49   */
50  abilityName?: string;
51
52  /**
53   * The description of a URI in a Want.
54   * @devices phone, tablet
55   * @since 6
56   * @sysCap AAFwk
57   * @default -
58   */
59  uri?: string;
60
61  /**
62   * The description of the type in this Want.
63   * @devices phone, tablet
64   * @since 6
65   * @sysCap AAFwk
66   * @default -
67   */
68  type?: string;
69
70  /**
71   * The options of the flags in this Want.
72   * @devices phone, tablet
73   * @since 6
74   * @sysCap AAFwk
75   * @default -
76   */
77  flags?: number;
78
79  /**
80   * The description of an action in an want.
81   * @devices phone, tablet
82   * @since 6
83   * @sysCap AAFwk
84   * @default -
85   */
86  action?: string;
87
88  /**
89   * The description of the WantParams object in an Want
90   * @devices phone, tablet
91   * @since 6
92   * @sysCap AAFwk
93   * @default -
94   */
95  parameters?: {[key: string]: any};
96
97  /**
98   * The description of a entities in a Want.
99   * @devices phone, tablet
100   * @since 6
101   * @sysCap AAFwk
102   * @default -
103   */
104  entities?: Array<string>;
105}