1/* 2 * Copyright (c) 2021-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 16import { HapModuleInfo } from '../bundleManager/HapModuleInfo'; 17import { Configuration } from '../@ohos.app.ability.Configuration'; 18import Context from './Context'; 19 20/** 21 * The context of an abilityStage. It allows access to abilityStage-specific resources. 22 * 23 * @extends Context 24 * @syscap SystemCapability.Ability.AbilityRuntime.Core 25 * @StageModelOnly 26 * @since 9 27 */ 28/** 29 * The context of an abilityStage. It allows access to abilityStage-specific resources. 30 * 31 * @extends Context 32 * @syscap SystemCapability.Ability.AbilityRuntime.Core 33 * @StageModelOnly 34 * @crossplatform 35 * @since 10 36 */ 37/** 38 * The context of an abilityStage. It allows access to abilityStage-specific resources. 39 * 40 * @extends Context 41 * @syscap SystemCapability.Ability.AbilityRuntime.Core 42 * @StageModelOnly 43 * @crossplatform 44 * @atomicservice 45 * @since 11 46 */ 47export default class AbilityStageContext extends Context { 48 /** 49 * Indicates configuration information about an module. 50 * 51 * @type { HapModuleInfo } 52 * @syscap SystemCapability.Ability.AbilityRuntime.Core 53 * @StageModelOnly 54 * @crossplatform 55 * @since 9 56 */ 57 /** 58 * Indicates configuration information about an module. 59 * 60 * @type { HapModuleInfo } 61 * @syscap SystemCapability.Ability.AbilityRuntime.Core 62 * @StageModelOnly 63 * @crossplatform 64 * @since 10 65 */ 66 /** 67 * Indicates configuration information about an module. 68 * 69 * @type { HapModuleInfo } 70 * @syscap SystemCapability.Ability.AbilityRuntime.Core 71 * @StageModelOnly 72 * @crossplatform 73 * @atomicservice 74 * @since 11 75 */ 76 currentHapModuleInfo: HapModuleInfo; 77 78 /** 79 * Indicates configuration information. 80 * 81 * @type { Configuration } 82 * @syscap SystemCapability.Ability.AbilityRuntime.Core 83 * @StageModelOnly 84 * @crossplatform 85 * @since 9 86 */ 87 /** 88 * Indicates configuration information. 89 * 90 * @type { Configuration } 91 * @syscap SystemCapability.Ability.AbilityRuntime.Core 92 * @StageModelOnly 93 * @crossplatform 94 * @since 10 95 */ 96 /** 97 * Indicates configuration information. 98 * 99 * @type { Configuration } 100 * @syscap SystemCapability.Ability.AbilityRuntime.Core 101 * @StageModelOnly 102 * @crossplatform 103 * @atomicservice 104 * @since 11 105 */ 106 config: Configuration; 107} 108