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 16/** 17 * @file 18 * @kit AbilityKit 19 */ 20 21/** 22 * The base context of 'app.Context' for FA Mode or 23 * 'application.Context' for Stage Mode. 24 * 25 * @syscap SystemCapability.Ability.AbilityRuntime.Core 26 * @since 8 27 */ 28/** 29 * The base context of 'app.Context' for FA Mode or 30 * 'application.Context' for Stage Mode. 31 * 32 * @syscap SystemCapability.Ability.AbilityRuntime.Core 33 * @crossplatform 34 * @since 10 35 */ 36/** 37 * The base context of 'app.Context' for FA Mode or 38 * 'application.Context' for Stage Mode. 39 * 40 * @syscap SystemCapability.Ability.AbilityRuntime.Core 41 * @crossplatform 42 * @atomicservice 43 * @since 11 44 */ 45export default abstract class BaseContext { 46 /** 47 * Indicates the context is FA Mode or Stage Mode. 48 * 49 * @type { boolean } 50 * @syscap SystemCapability.Ability.AbilityRuntime.Core 51 * @since 8 52 */ 53 /** 54 * Indicates the context is FA Mode or Stage Mode. 55 * 56 * @type { boolean } 57 * @syscap SystemCapability.Ability.AbilityRuntime.Core 58 * @crossplatform 59 * @since 10 60 */ 61 /** 62 * Indicates the context is FA Mode or Stage Mode. 63 * 64 * @type { boolean } 65 * @syscap SystemCapability.Ability.AbilityRuntime.Core 66 * @crossplatform 67 * @atomicservice 68 * @since 11 69 */ 70 stageMode: boolean; 71} 72