• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2022-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 * @kit AbilityKit
19 */
20
21/**
22 * Provide methods for matching monitored AbilityStage objects that meet specified conditions.
23 * The most recently matched AbilityStage objects will be saved in the AbilityStageMonitor object.
24 *
25 * @typedef AbilityStageMonitor
26 * @syscap SystemCapability.Ability.AbilityRuntime.Core
27 * @since 9
28 */
29/**
30 * Provide methods for matching monitored AbilityStage objects that meet specified conditions.
31 * The most recently matched AbilityStage objects will be saved in the AbilityStageMonitor object.
32 *
33 * @typedef AbilityStageMonitor
34 * @syscap SystemCapability.Ability.AbilityRuntime.Core
35 * @crossplatform
36 * @since 10
37 */
38/**
39 * Provide methods for matching monitored AbilityStage objects that meet specified conditions.
40 * The most recently matched AbilityStage objects will be saved in the AbilityStageMonitor object.
41 *
42 * @typedef AbilityStageMonitor
43 * @syscap SystemCapability.Ability.AbilityRuntime.Core
44 * @crossplatform
45 * @atomicservice
46 * @since 11
47 */
48export interface AbilityStageMonitor {
49  /**
50   * The module name of the abilityStage to monitor.
51   *
52   * @type { string }
53   * @syscap SystemCapability.Ability.AbilityRuntime.Core
54   * @since 9
55   */
56  /**
57   * The module name of the abilityStage to monitor.
58   *
59   * @type { string }
60   * @syscap SystemCapability.Ability.AbilityRuntime.Core
61   * @crossplatform
62   * @since 10
63   */
64  /**
65   * The module name of the abilityStage to monitor.
66   *
67   * @type { string }
68   * @syscap SystemCapability.Ability.AbilityRuntime.Core
69   * @crossplatform
70   * @atomicservice
71   * @since 11
72   */
73  moduleName: string;
74
75  /**
76   * The source path of the abilityStage to monitor.
77   *
78   * @type { string }
79   * @syscap SystemCapability.Ability.AbilityRuntime.Core
80   * @since 9
81   */
82  /**
83   * The source path of the abilityStage to monitor.
84   *
85   * @type { string }
86   * @syscap SystemCapability.Ability.AbilityRuntime.Core
87   * @crossplatform
88   * @since 10
89   */
90  /**
91   * The source path of the abilityStage to monitor.
92   *
93   * @type { string }
94   * @syscap SystemCapability.Ability.AbilityRuntime.Core
95   * @crossplatform
96   * @atomicservice
97   * @since 11
98   */
99  srcEntrance: string;
100}
101
102export default AbilityStageMonitor;
103