diff --git a/api/@ohos.bundle.bundleManager.d.ts b/api/@ohos.bundle.bundleManager.d.ts index 0ab397217..c9b773f41 100644 --- a/api/@ohos.bundle.bundleManager.d.ts +++ b/api/@ohos.bundle.bundleManager.d.ts @@ -1336,6 +1336,37 @@ declare namespace bundleManager { NONE = 7 } + /** + * This enumeration value is used to identify various types of extension ability + * + * @enum { number } + * @syscap SystemCapability.BundleManager.BundleFramework.Core + * @since 12 + */ + export enum MultiAppModeType { + /** + * Indicates multi app mode with type of unspecified + * + * @syscap SystemCapability.BundleManager.BundleFramework.Core + * @since 12 + */ + UNSPECIFIED = 0, + /** + * Indicates multi app mode with type of multiInstance + * + * @syscap SystemCapability.BundleManager.BundleFramework.Core + * @since 12 + */ + MULTI_INSTANCE = 1, + /** + * Indicates multi app mode with type of appClone + * + * @syscap SystemCapability.BundleManager.BundleFramework.Core + * @since 12 + */ + APP_CLONE = 2, + } + /** * Obtains own bundleInfo. * diff --git a/api/bundleManager/ApplicationInfo.d.ts b/api/bundleManager/ApplicationInfo.d.ts index 53c15cc39..14d3d614f 100644 --- a/api/bundleManager/ApplicationInfo.d.ts +++ b/api/bundleManager/ApplicationInfo.d.ts @@ -544,6 +544,16 @@ export interface ApplicationInfo { * @since 12 */ readonly nativeLibraryPath: string; + + /** + * Indicates the MultiAppMode object of the bundle + * + * @type { MultiAppMode } + * @readonly + * @syscap SystemCapability.BundleManager.BundleFramework.Core + * @since 12 + */ + readonly multiAppMode: MultiAppMode; } /** @@ -654,4 +664,33 @@ export interface PreinstalledApplicationInfo { * @since 12 */ readonly labelId: number; -} \ No newline at end of file +} + +/** + * Indicates MultiAppMode + * + * @typedef MultiAppMode + * @syscap SystemCapability.BundleManager.BundleFramework.Core + * @since 12 + */ +export interface MultiAppMode { + /** + * Indicates the multiAppModeType of the bundle + * + * @type { bundleManager.MultiAppModeType } + * @readonly + * @syscap SystemCapability.BundleManager.BundleFramework.Core + * @since 12 + */ + readonly multiAppModeType: bundleManager.MultiAppModeType; + + /** + * Indicates the max count of the bundle + * + * @type { number } + * @readonly + * @syscap SystemCapability.BundleManager.BundleFramework.Core + * @since 12 + */ + readonly maxCount: number; +}