• 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 */
15@!namespace("ohos", "bundle", "bundleManager")
16enum AbilityType: i8 {
17    PAGE = 1,
18    SERVICE = 2,
19    DATA = 3
20}
21
22enum DisplayOrientation: String {
23    UNSPECIFIED = "UNSPECIFIED",
24    LANDSCAPE = "LANDSCAPE",
25    PORTRAIT = "PORTRAIT"
26}
27
28enum LaunchType: i8 {
29    SINGLETON = 0,
30    MULTITON = 1,
31    SPECIFIED = 2
32}
33
34enum SupportWindowMode: i8 {
35    FULL_SCREEN = 0,
36    SPLIT = 1,
37    FLOATING = 2
38}
39
40enum PermissionGrantState: i8 {
41    PERMISSION_DENIED = -1,
42    PERMISSION_GRANTED = 0
43}
44
45enum BundleType: i8 {
46    APP = 0,
47    ATOMIC_SERVICE = 1
48}
49
50enum MultiAppModeType: i8 {
51    UNSPECIFIED = 0,
52    MULTI_INSTANCE = 1,
53    APP_CLONE = 2
54}