mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2025-03-04 07:17:58 +00:00

Signed-off-by: wangkailong <wangkailong6@huawei.com> Change-Id: I3ab630fca0b9bc77b0dadce1a27cda24fd68a753
72 lines
1.8 KiB
TypeScript
72 lines
1.8 KiB
TypeScript
/*
|
|
* Copyright (c) 2021-2023 Huawei Device Co., Ltd.
|
|
* Licensed under the Apache License, Version 2.0 (the "License"),
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
/**
|
|
* @file
|
|
* @kit AbilityKit
|
|
*/
|
|
|
|
/**
|
|
* The base context of 'app.Context' for FA Mode or
|
|
* 'application.Context' for Stage Mode.
|
|
*
|
|
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
|
* @since 8
|
|
*/
|
|
/**
|
|
* The base context of 'app.Context' for FA Mode or
|
|
* 'application.Context' for Stage Mode.
|
|
*
|
|
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
|
* @crossplatform
|
|
* @since 10
|
|
*/
|
|
/**
|
|
* The base context of 'app.Context' for FA Mode or
|
|
* 'application.Context' for Stage Mode.
|
|
*
|
|
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
|
* @crossplatform
|
|
* @atomicservice
|
|
* @since 11
|
|
*/
|
|
export default abstract class BaseContext {
|
|
/**
|
|
* Indicates the context is FA Mode or Stage Mode.
|
|
*
|
|
* @type { boolean }
|
|
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
|
* @since 8
|
|
*/
|
|
/**
|
|
* Indicates the context is FA Mode or Stage Mode.
|
|
*
|
|
* @type { boolean }
|
|
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
|
* @crossplatform
|
|
* @since 10
|
|
*/
|
|
/**
|
|
* Indicates the context is FA Mode or Stage Mode.
|
|
*
|
|
* @type { boolean }
|
|
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
|
* @crossplatform
|
|
* @atomicservice
|
|
* @since 11
|
|
*/
|
|
stageMode: boolean;
|
|
}
|