From 4b24065f7cc44c55a243fe88f2f28500bb43f417 Mon Sep 17 00:00:00 2001 From: zhangzezhong Date: Tue, 19 Aug 2025 17:56:09 +0800 Subject: [PATCH] add abilityKit Signed-off-by: zhangzezhong --- kits/@kit.AbilityKit.d.ts | 80 +++++++++++++++++++++++++++------------ 1 file changed, 56 insertions(+), 24 deletions(-) diff --git a/kits/@kit.AbilityKit.d.ts b/kits/@kit.AbilityKit.d.ts index 5d7ccd4060..6833492d05 100644 --- a/kits/@kit.AbilityKit.d.ts +++ b/kits/@kit.AbilityKit.d.ts @@ -19,19 +19,6 @@ */ /*** if arkts 1.1&1.2 */ -import common from '@ohos.app.ability.common'; -import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; -import { Configuration } from '@ohos.app.ability.Configuration'; -import Want from '@ohos.app.ability.Want'; -import StartOptions from '@ohos.app.ability.StartOptions'; -import contextConstant from '@ohos.app.ability.contextConstant'; -import AbilityConstant from '@ohos.app.ability.AbilityConstant'; -import UIExtensionContentSession from '@ohos.app.ability.UIExtensionContentSession'; -import wantConstant from '@ohos.app.ability.wantConstant'; -import AbilityStage from '@ohos.app.ability.AbilityStage'; -import UIExtensionAbility from '@ohos.app.ability.UIExtensionAbility'; -import uriPermissionManager from '@ohos.application.uriPermissionManager'; -import ServiceExtensionAbility from '@ohos.app.ability.ServiceExtensionAbility'; import abilityAccessCtrl, { Context, PermissionRequestResult, Permissions } from '@ohos.abilityAccessCtrl'; @@ -46,8 +33,10 @@ import { ErrorCode } from '@ohos.ability.errorCode'; import featureAbility from '@ohos.ability.featureAbility'; import particleAbility from '@ohos.ability.particleAbility'; import Ability from '@ohos.app.ability.Ability'; +import AbilityConstant from '@ohos.app.ability.AbilityConstant'; import AbilityLifecycleCallback from '@ohos.app.ability.AbilityLifecycleCallback'; import abilityManager from '@ohos.app.ability.abilityManager'; +import AbilityStage from '@ohos.app.ability.AbilityStage'; import ActionExtensionAbility from '@ohos.app.ability.ActionExtensionAbility'; import ApplicationStateChangeCallback from '@ohos.app.ability.ApplicationStateChangeCallback'; import appManager from '@ohos.app.ability.appManager'; @@ -59,6 +48,10 @@ import ChildProcess from '@ohos.app.ability.ChildProcess'; import childProcessManager from '@ohos.app.ability.childProcessManager'; import { ChildProcessArgs } from '@ohos.app.ability.ChildProcessArgs'; import { ChildProcessOptions } from '@ohos.app.ability.ChildProcessOptions'; +import common from '@ohos.app.ability.common'; +import { Configuration } from '@ohos.app.ability.Configuration'; +import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; +import contextConstant from '@ohos.app.ability.contextConstant'; import dataUriUtils from '@ohos.app.ability.dataUriUtils'; import dialogRequest from '@ohos.app.ability.dialogRequest'; import dialogSession from '@ohos.app.ability.dialogSession'; @@ -75,12 +68,19 @@ import InsightIntentEntryExecutor from '@ohos.app.ability.InsightIntentEntryExec import missionManager from '@ohos.app.ability.missionManager'; import OpenLinkOptions from '@ohos.app.ability.OpenLinkOptions'; import quickFixManager from '@ohos.app.ability.quickFixManager'; +import ServiceExtensionAbility from '@ohos.app.ability.ServiceExtensionAbility'; import ShareExtensionAbility from '@ohos.app.ability.ShareExtensionAbility'; +import StartOptions from '@ohos.app.ability.StartOptions'; import UIAbility, { Callee, CalleeCallback, Caller, OnReleaseCallback, OnRemoteStateChangeCallback } from '@ohos.app.ability.UIAbility'; +import UIExtensionAbility from '@ohos.app.ability.UIExtensionAbility'; +import UIExtensionContentSession from '@ohos.app.ability.UIExtensionContentSession'; +import Want from '@ohos.app.ability.Want'; +import wantConstant from '@ohos.app.ability.wantConstant'; import wantAgent, { WantAgent } from '@ohos.app.ability.wantAgent'; import businessAbilityRouter from '@ohos.app.businessAbilityRouter'; +import uriPermissionManager from '@ohos.application.uriPermissionManager'; import appControl from '@ohos.bundle.appControl'; import bundleManager from '@ohos.bundle.bundleManager'; import bundleMonitor from '@ohos.bundle.bundleMonitor'; @@ -141,29 +141,61 @@ export { }; /*** if arkts 1.2 */ -import UIAbility from '@ohos.app.ability.UIAbility'; -import { - Callee, Caller, OnReleaseCallback +import Ability from '@ohos.app.ability.Ability'; +import AbilityConstant from '@ohos.app.ability.AbilityConstant'; +import AbilityLifecycleCallback from '@ohos.app.ability.AbilityLifecycleCallback'; +import AbilityStage from '@ohos.app.ability.AbilityStage'; +import ApplicationStateChangeCallback from '@ohos.app.ability.ApplicationStateChangeCallback'; +import AtomicServiceOptions from '@ohos.app.ability.AtomicServiceOptions'; +import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; +import { Configuration } from '@ohos.app.ability.Configuration'; +import EnvironmentCallback from '@ohos.app.ability.EnvironmentCallback'; +import { ErrorCode } from '@ohos.ability.errorCode'; +import InsightIntentContext from '@ohos.app.ability.InsightIntentContext'; +import InsightIntentExecutor from '@ohos.app.ability.InsightIntentExecutor'; +import OpenLinkOptions from '@ohos.app.ability.OpenLinkOptions'; +import ServiceExtensionAbility from '@ohos.app.ability.ServiceExtensionAbility'; +import StartOptions from '@ohos.app.ability.StartOptions'; +import UIExtensionContentSession from '@ohos.app.ability.UIExtensionContentSession'; +import UIAbility, { + Callee, CalleeCallback, Caller, OnReleaseCallback, OnRemoteStateChangeCallback } from '@ohos.app.ability.UIAbility'; -import wantAgent from '@ohos.app.ability.wantAgent'; -import { WantAgent } from '@ohos.app.ability.wantAgent'; +import UIExtensionAbility from '@ohos.app.ability.UIExtensionAbility'; +import Want from '@ohos.app.ability.Want'; +import wantAgent, { WantAgent } from '@ohos.app.ability.wantAgent'; +import abilityDelegatorRegistry from 'ohos.app.ability.abilityDelegatorRegistry'; +import abilityManager from '@ohos.app.ability.abilityManager'; import appControl from '@ohos.bundle.appControl'; +import appManager from '@ohos.app.ability.appManager'; +import appRecovery from '@ohos.app.ability.appRecovery'; import bundleManager from '@ohos.bundle.bundleManager'; import bundleMonitor from '@ohos.bundle.bundleMonitor'; import bundleResourceManager from '@ohos.bundle.bundleResourceManager'; +import common from '@ohos.app.ability.common'; +import contextConstant from '@ohos.app.ability.contextConstant'; +import dataUriUtils from '@ohos.app.ability.dataUriUtils'; import defaultAppManager from '@ohos.bundle.defaultAppManager'; import distributedBundleManager from '@ohos.bundle.distributedBundleManager'; import freeInstall from '@ohos.bundle.freeInstall'; +import insightIntent from '@ohos.app.ability.insightIntent'; +import insightIntentDriver from '@ohos.app.ability.insightIntentDriver'; import installer from '@ohos.bundle.installer'; import launcherBundleManager from '@ohos.bundle.launcherBundleManager'; +import missionManager from '@ohos.app.ability.missionManager'; import overlay from '@ohos.bundle.overlay'; import shortcutManager from '@ohos.bundle.shortcutManager'; +import testRunner from '@ohos.application.testRunner'; +import uriPermissionManager from '@ohos.application.uriPermissionManager'; +import wantConstant from '@ohos.app.ability.wantConstant'; +import application from '@ohos.app.ability.application'; export { - common, ConfigurationConstant, Configuration, Want, StartOptions, contextConstant, AbilityConstant, - UIExtensionContentSession, wantConstant, UIAbility, Callee, Caller, OnReleaseCallback, AbilityStage, - UIExtensionAbility, uriPermissionManager, ServiceExtensionAbility, wantAgent, WantAgent, - appControl, bundleManager, bundleMonitor, bundleResourceManager, defaultAppManager, distributedBundleManager, - freeInstall, installer, launcherBundleManager, overlay, shortcutManager + Ability, AbilityConstant, AbilityLifecycleCallback, AbilityStage, ApplicationStateChangeCallback, AtomicServiceOptions, + Callee, CalleeCallback, Caller, ConfigurationConstant, Configuration, EnvironmentCallback, ErrorCode, InsightIntentContext, + InsightIntentExecutor, OnReleaseCallback, OnRemoteStateChangeCallback, OpenLinkOptions, ServiceExtensionAbility, + StartOptions, UIAbility, UIExtensionContentSession, UIExtensionAbility, Want, WantAgent, abilityDelegatorRegistry, abilityManager, + appControl, appManager, appRecovery, bundleManager, bundleMonitor, bundleResourceManager, common, contextConstant, dataUriUtils, + defaultAppManager, distributedBundleManager, freeInstall, insightIntent, insightIntentDriver, installer, launcherBundleManager, + missionManager, overlay, shortcutManager, testRunner, uriPermissionManager, wantAgent, wantConstant, application }; -/*** endif */ +/*** endif */ \ No newline at end of file -- Gitee