mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-12-04 05:32:31 +00:00
!11166 [新需求]: 应用分身增加模式接口
Merge pull request !11166 from wangtiantian/appmode
This commit is contained in:
commit
b3ecfffad4
31
api/@ohos.bundle.bundleManager.d.ts
vendored
31
api/@ohos.bundle.bundleManager.d.ts
vendored
@ -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.
|
||||
*
|
||||
|
41
api/bundleManager/ApplicationInfo.d.ts
vendored
41
api/bundleManager/ApplicationInfo.d.ts
vendored
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user