• 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 */
15use ohos.bundle.bundleManager as bundleManager;
16from applicationInfo use ApplicationInfo as ApplicationInfo;
17from metadata use Metadata as Metadata;
18from skill use Skill as Skill;
19
20interface AbilityInfo {
21    @get GetBundleName(): String;
22    @get GetModuleName(): String;
23    @get GetName(): String;
24    @get GetLabel(): String;
25    @get GetLabelId(): i32;
26    @get GetDescription(): String;
27    @get GetDescriptionId(): i32;
28    @get GetIcon(): String;
29    @get GetIconId(): i32;
30    @get GetProcess(): String;
31    @get GetExported(): bool;
32    @get GetType(): bundleManager.AbilityType;
33    @get GetOrientation(): bundleManager.DisplayOrientation;
34    @get GetLaunchType(): bundleManager.LaunchType;
35    @get GetPermissions(): Array<String>;
36    @get GetReadPermission(): String;
37    @get GetWritePermission(): String;
38    @get GetUri(): String;
39    @get GetDeviceTypes(): Array<String>;
40    @get GetMetadata(): Array<Metadata>;
41    @get GetEnabled(): bool;
42    @get GetSupportWindowModes(): Array<bundleManager.SupportWindowMode>;
43    @get GetExcludeFromDock(): bool;
44    @get GetSkills(): Array<Skill>;
45    @get GetAppIndex(): i32;
46    @get GetOrientationId(): i32;
47}
48function GetAbilityInfo(): AbilityInfo;