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 arkts {'1.1':'11', '1.2':'20'} 44 * @arkts 1.1&1.2 45 */ 46export default abstract class BaseContext { 47 /** 48 * Indicates the context is FA Mode or Stage Mode. 49 * 50 * @type { boolean } 51 * @syscap SystemCapability.Ability.AbilityRuntime.Core 52 * @since 8 53 */ 54 /** 55 * Indicates the context is FA Mode or Stage Mode. 56 * 57 * @type { boolean } 58 * @syscap SystemCapability.Ability.AbilityRuntime.Core 59 * @crossplatform 60 * @since 10 61 */ 62 /** 63 * Indicates the context is FA Mode or Stage Mode. 64 * 65 * @type { boolean } 66 * @syscap SystemCapability.Ability.AbilityRuntime.Core 67 * @crossplatform 68 * @atomicservice 69 * @since arkts {'1.1':'11', '1.2':'20'} 70 * @arkts 1.1&1.2 71 */ 72 stageMode: boolean; 73} 74