1/* 2 * Copyright (c) 2022-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 ability from '@ohos.ability.ability'; 22import { ErrorCode } from '@ohos.ability.errorCode'; 23import featureAbility from '@ohos.ability.featureAbility'; 24import particleAbility from '@ohos.ability.particleAbility'; 25import abilityAccessCtrl, { 26 Context, PermissionRequestResult, Permissions 27} from '@ohos.abilityAccessCtrl'; 28import Ability from '@ohos.app.ability.Ability'; 29import AbilityConstant from '@ohos.app.ability.AbilityConstant'; 30import AbilityLifecycleCallback from '@ohos.app.ability.AbilityLifecycleCallback'; 31import abilityManager from '@ohos.app.ability.abilityManager'; 32import AbilityStage from '@ohos.app.ability.AbilityStage'; 33import ActionExtensionAbility from '@ohos.app.ability.ActionExtensionAbility'; 34import ApplicationStateChangeCallback from '@ohos.app.ability.ApplicationStateChangeCallback'; 35import appManager from '@ohos.app.ability.appManager'; 36import appRecovery from '@ohos.app.ability.appRecovery'; 37import AutoFillExtensionAbility from '@ohos.app.ability.AutoFillExtensionAbility'; 38import autoFillManager from '@ohos.app.ability.autoFillManager'; 39import autoStartupManager from '@ohos.app.ability.autoStartupManager'; 40import ChildProcess from '@ohos.app.ability.ChildProcess'; 41import childProcessManager from '@ohos.app.ability.childProcessManager'; 42import { ChildProcessArgs } from '@ohos.app.ability.ChildProcessArgs'; 43import { ChildProcessOptions } from '@ohos.app.ability.ChildProcessOptions'; 44import common from '@ohos.app.ability.common'; 45import { Configuration } from '@ohos.app.ability.Configuration'; 46import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; 47import contextConstant from '@ohos.app.ability.contextConstant'; 48import dataUriUtils from '@ohos.app.ability.dataUriUtils'; 49import dialogRequest from '@ohos.app.ability.dialogRequest'; 50import dialogSession from '@ohos.app.ability.dialogSession'; 51import EnvironmentCallback from '@ohos.app.ability.EnvironmentCallback'; 52import errorManager from '@ohos.app.ability.errorManager'; 53import ExtensionAbility from '@ohos.app.ability.ExtensionAbility'; 54import insightIntent from '@ohos.app.ability.insightIntent'; 55import InsightIntentContext from '@ohos.app.ability.InsightIntentContext'; 56import insightIntentDriver from '@ohos.app.ability.insightIntentDriver'; 57import verticalPanelManager from '@ohos.app.ability.verticalPanelManager'; 58import InsightIntentExecutor from '@ohos.app.ability.InsightIntentExecutor'; 59import { InsightIntentLink, InsightIntentPage, InsightIntentFunctionMethod, InsightIntentFunction, 60 InsightIntentEntry, LinkParamCategory, InsightIntentForm, InsightIntentEntity } from '@ohos.app.ability.InsightIntentDecorator'; 61import InsightIntentEntryExecutor from '@ohos.app.ability.InsightIntentEntryExecutor'; 62import missionManager from '@ohos.app.ability.missionManager'; 63import OpenLinkOptions from '@ohos.app.ability.OpenLinkOptions'; 64import quickFixManager from '@ohos.app.ability.quickFixManager'; 65import ServiceExtensionAbility from '@ohos.app.ability.ServiceExtensionAbility'; 66import ShareExtensionAbility from '@ohos.app.ability.ShareExtensionAbility'; 67import StartOptions from '@ohos.app.ability.StartOptions'; 68import UIAbility, { 69 Callee, CalleeCallback, Caller, OnReleaseCallback, OnRemoteStateChangeCallback 70} from '@ohos.app.ability.UIAbility'; 71import UIExtensionAbility from '@ohos.app.ability.UIExtensionAbility'; 72import UIExtensionContentSession from '@ohos.app.ability.UIExtensionContentSession'; 73import Want from '@ohos.app.ability.Want'; 74import wantConstant from '@ohos.app.ability.wantConstant'; 75import wantAgent, { WantAgent } from '@ohos.app.ability.wantAgent'; 76import businessAbilityRouter from '@ohos.app.businessAbilityRouter'; 77import uriPermissionManager from '@ohos.application.uriPermissionManager'; 78import appControl from '@ohos.bundle.appControl'; 79import bundleManager from '@ohos.bundle.bundleManager'; 80import bundleMonitor from '@ohos.bundle.bundleMonitor'; 81import bundleResourceManager from '@ohos.bundle.bundleResourceManager'; 82import bundle from '@ohos.bundle'; 83import defaultAppManager from '@ohos.bundle.defaultAppManager'; 84import distributedBundleManager from '@ohos.bundle.distributedBundleManager'; 85import freeInstall from '@ohos.bundle.freeInstall'; 86import innerBundleManager, { BundleStatusCallback } from '@ohos.bundle.innerBundleManager'; 87import installer from '@ohos.bundle.installer'; 88import launcherBundleManager from '@ohos.bundle.launcherBundleManager'; 89import overlay from '@ohos.bundle.overlay'; 90import continuationManager from '@ohos.continuation.continuationManager'; 91import continueManager from '@ohos.app.ability.continueManager'; 92import distributedBundle from '@ohos.distributedBundle'; 93import distributedMissionManager from '@ohos.distributedMissionManager'; 94import Package, { 95 CheckPackageHasInstalledOptions, CheckPackageHasInstalledResponse 96} from '@system.package'; 97import privacyManager from '@ohos.privacyManager'; 98import EmbeddedUIExtensionAbility from '@ohos.app.ability.EmbeddedUIExtensionAbility'; 99import StartupConfig from '@ohos.app.appstartup.StartupConfig'; 100import StartupConfigEntry from '@ohos.app.appstartup.StartupConfigEntry'; 101import StartupListener from '@ohos.app.appstartup.StartupListener'; 102import StartupTask from '@ohos.app.appstartup.StartupTask'; 103import startupManager from '@ohos.app.appstartup.startupManager'; 104import sendableContextManager from '@ohos.app.ability.sendableContextManager'; 105import screenLockFileManager from '@ohos.ability.screenLockFileManager'; 106import AtomicServiceOptions from '@ohos.app.ability.AtomicServiceOptions'; 107import EmbeddableUIAbility from '@ohos.app.ability.EmbeddableUIAbility'; 108import PhotoEditorExtensionAbility from '@ohos.app.ability.PhotoEditorExtensionAbility'; 109import UIServiceExtensionAbility from '@ohos.app.ability.UIServiceExtensionAbility'; 110import shortcutManager from '@ohos.bundle.shortcutManager'; 111import application from '@ohos.app.ability.application'; 112import appDomainVerify from '@ohos.bundle.appDomainVerify'; 113import CompletionHandler from '@ohos.app.ability.CompletionHandler'; 114import AppServiceExtensionAbility from '@ohos.app.ability.AppServiceExtensionAbility'; 115import kioskManager from '@ohos.app.ability.kioskManager'; 116import CompletionHandlerForAtomicService from '@ohos.app.ability.CompletionHandlerForAtomicService'; 117 118export { 119 Ability, AbilityConstant, AbilityLifecycleCallback, AbilityStage, ActionExtensionAbility, 120 ApplicationStateChangeCallback, AutoFillExtensionAbility, BundleStatusCallback, Callee, 121 CalleeCallback, Caller, CheckPackageHasInstalledOptions, CheckPackageHasInstalledResponse, 122 ChildProcess, Configuration, ConfigurationConstant, Context, EnvironmentCallback, ErrorCode, 123 ExtensionAbility, InsightIntentContext, InsightIntentExecutor, OnReleaseCallback, OnRemoteStateChangeCallback, 124 OpenLinkOptions, Package, PermissionRequestResult, Permissions, ServiceExtensionAbility, ShareExtensionAbility, 125 StartOptions, UIAbility, UIExtensionAbility, UIExtensionContentSession, Want, WantAgent, ability, abilityAccessCtrl, 126 abilityManager, appControl, appManager, appRecovery, autoFillManager, autoStartupManager, bundle, bundleManager, 127 bundleMonitor, bundleResourceManager, businessAbilityRouter, childProcessManager, common, contextConstant, 128 continuationManager, continueManager, dataUriUtils, defaultAppManager, dialogRequest, dialogSession, distributedBundle, 129 distributedBundleManager, distributedMissionManager, errorManager, featureAbility, freeInstall, 130 innerBundleManager, insightIntent, insightIntentDriver, verticalPanelManager, installer, launcherBundleManager, missionManager, 131 overlay, particleAbility, quickFixManager, uriPermissionManager, wantAgent, wantConstant, privacyManager, 132 EmbeddedUIExtensionAbility, StartupConfig, StartupConfigEntry, StartupListener, StartupTask, startupManager, 133 screenLockFileManager, AtomicServiceOptions, EmbeddableUIAbility, ChildProcessArgs, ChildProcessOptions, 134 sendableContextManager, PhotoEditorExtensionAbility, UIServiceExtensionAbility, shortcutManager, application, appDomainVerify, 135 InsightIntentLink, InsightIntentPage, InsightIntentFunctionMethod, InsightIntentFunction, InsightIntentEntryExecutor, 136 InsightIntentEntry, LinkParamCategory, CompletionHandler, AppServiceExtensionAbility, InsightIntentForm, InsightIntentEntity, kioskManager, 137 CompletionHandlerForAtomicService 138}; 139 140/*** if arkts 1.2 */ 141import bundleManager from '@ohos.bundle.bundleManager'; 142import bundleMonitor from '@ohos.bundle.bundleMonitor'; 143import bundleResourceManager from '@ohos.bundle.bundleResourceManager'; 144import freeInstall from '@ohos.bundle.freeInstall'; 145import installer from '@ohos.bundle.installer'; 146import launcherBundleManager from '@ohos.bundle.launcherBundleManager'; 147import overlay from '@ohos.bundle.overlay'; 148import shortcutManager from '@ohos.bundle.shortcutManager'; 149 150export { 151 bundleManager, bundleMonitor, bundleResourceManager, freeInstall, installer, launcherBundleManager, overlay, 152 shortcutManager 153}; 154/*** endif */ 155