• 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 * the data of the commonEvent
18 * @name CommonEventData
19 * @syscap SystemCapability.Notification.CommonEvent
20 * @since 7
21 * @permission N/A
22 */
23export interface CommonEventData {
24  /**
25   * event type
26   * @default -
27   * @since 7
28   */
29  event: string
30
31  /**
32   * bundle name
33   * @default -
34   * @since 7
35   */
36  bundleName?: string;
37
38  /**
39   * The custom result code of the common event.
40   *
41   * @default 0
42   * @since 7
43   */
44  code?: number;
45
46  /**
47   * The custom result data of the common event.
48   *
49   * @default ""
50   * @since 7
51   */
52  data?: string;
53
54  /**
55   * The description of the parameters in a common event.
56   *
57   * @default -
58   * @since 7
59   */
60  parameters?: {[key: string]: any};
61}
62