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 arkts {'1.1':'11', '1.2':'20'} 47 * @arkts 1.1&1.2 48 */ 49export interface AbilityStageMonitor { 50 /** 51 * The module name of the abilityStage to monitor. 52 * 53 * @type { string } 54 * @syscap SystemCapability.Ability.AbilityRuntime.Core 55 * @since 9 56 */ 57 /** 58 * The module name of the abilityStage to monitor. 59 * 60 * @type { string } 61 * @syscap SystemCapability.Ability.AbilityRuntime.Core 62 * @crossplatform 63 * @since 10 64 */ 65 /** 66 * The module name of the abilityStage to monitor. 67 * 68 * @type { string } 69 * @syscap SystemCapability.Ability.AbilityRuntime.Core 70 * @crossplatform 71 * @atomicservice 72 * @since arkts {'1.1':'11', '1.2':'20'} 73 * @arkts 1.1&1.2 74 */ 75 moduleName: string; 76 77 /** 78 * The source path of the abilityStage to monitor. 79 * 80 * @type { string } 81 * @syscap SystemCapability.Ability.AbilityRuntime.Core 82 * @since 9 83 */ 84 /** 85 * The source path of the abilityStage to monitor. 86 * 87 * @type { string } 88 * @syscap SystemCapability.Ability.AbilityRuntime.Core 89 * @crossplatform 90 * @since 10 91 */ 92 /** 93 * The source path of the abilityStage to monitor. 94 * 95 * @type { string } 96 * @syscap SystemCapability.Ability.AbilityRuntime.Core 97 * @crossplatform 98 * @atomicservice 99 * @since arkts {'1.1':'11', '1.2':'20'} 100 * @arkts 1.1&1.2 101 */ 102 srcEntrance: string; 103} 104 105/*** if arkts 1.1 */ 106export default AbilityStageMonitor; 107/*** endif */