• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2025 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 */
15interface HapModuleInfo {
16    @get GetName(): String;
17    @get GetIcon(): String;
18    @get GetIconId(): i32;
19    @get GetLabel(): String;
20    @get GetLabelId(): i32;
21    @get GetDescription(): String;
22    @get GetDescriptionId(): i32;
23    @get GetMainElementName(): String;
24    @get GetDeviceTypes(): Array<String>;
25    @get GetInstallationFree(): bool;
26    @get GetHashValue(): String;
27    @get GetFileContextMenuConfig(): String;
28    @get GetNativeLibraryPath(): String;
29    @get GetCodePath(): String;
30}
31function GetHapModuleInfo(): HapModuleInfo;
32
33interface Dependency {
34    @get GetModuleName(): String;
35    @get GetBundleName(): String;
36    @get GetVersionCode(): i32;
37}
38function GetDependency(): Dependency;
39
40interface PreloadItem {
41    @get GetModuleName(): String;
42}
43function GetPreloadItem(): PreloadItem;
44
45interface RouterItem {
46    @get GetName(): String;
47    @get GetPageSourceFile(): String;
48    @get GetBuildFunction(): String;
49    @get GetCustomData(): String;
50}
51function GetRouterItem(): RouterItem;
52
53interface DataItem {
54    @get GetKey(): String;
55    @get GetValue(): String;
56}
57function GetDataItem(): DataItem;