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