• 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 11
51 */
52export default class AbilityStageContext extends Context {
53  /**
54   * Indicates configuration information about an module.
55   *
56   * @type { HapModuleInfo }
57   * @syscap SystemCapability.Ability.AbilityRuntime.Core
58   * @StageModelOnly
59   * @crossplatform
60   * @since 9
61   */
62  /**
63   * Indicates configuration information about an module.
64   *
65   * @type { HapModuleInfo }
66   * @syscap SystemCapability.Ability.AbilityRuntime.Core
67   * @StageModelOnly
68   * @crossplatform
69   * @since 10
70   */
71  /**
72   * Indicates configuration information about an module.
73   *
74   * @type { HapModuleInfo }
75   * @syscap SystemCapability.Ability.AbilityRuntime.Core
76   * @StageModelOnly
77   * @crossplatform
78   * @atomicservice
79   * @since 11
80   */
81  currentHapModuleInfo: HapModuleInfo;
82
83  /**
84   * Indicates configuration information.
85   *
86   * @type { Configuration }
87   * @syscap SystemCapability.Ability.AbilityRuntime.Core
88   * @StageModelOnly
89   * @crossplatform
90   * @since 9
91   */
92  /**
93   * Indicates configuration information.
94   *
95   * @type { Configuration }
96   * @syscap SystemCapability.Ability.AbilityRuntime.Core
97   * @StageModelOnly
98   * @crossplatform
99   * @since 10
100   */
101  /**
102   * Indicates configuration information.
103   *
104   * @type { Configuration }
105   * @syscap SystemCapability.Ability.AbilityRuntime.Core
106   * @StageModelOnly
107   * @crossplatform
108   * @atomicservice
109   * @since 11
110   */
111  config: Configuration;
112}
113