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