mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-27 01:11:35 +00:00
API Lint
Signed-off-by: sunjiakun <sunjiakun5@huawei.com>
This commit is contained in:
parent
0ce2a078da
commit
f056bb55b1
1
api/@ohos.app.businessAbilityRouter.d.ts
vendored
1
api/@ohos.app.businessAbilityRouter.d.ts
vendored
@ -139,6 +139,7 @@ declare namespace businessAbilityRouter {
|
|||||||
/**
|
/**
|
||||||
* Obtains business ability info.
|
* Obtains business ability info.
|
||||||
*
|
*
|
||||||
|
* @typedef { _BusinessAbilityInfo.BusinessAbilityInfo }
|
||||||
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
||||||
* @systemapi
|
* @systemapi
|
||||||
* @since 10
|
* @since 10
|
||||||
|
1
api/@ohos.bundle.bundleMonitor.d.ts
vendored
1
api/@ohos.bundle.bundleMonitor.d.ts
vendored
@ -70,6 +70,7 @@ declare namespace bundleMonitor {
|
|||||||
/**
|
/**
|
||||||
* Indicates the event type of bundle change
|
* Indicates the event type of bundle change
|
||||||
*
|
*
|
||||||
|
* @typedef { 'add' | 'update' | 'remove' }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||||
* @systemapi
|
* @systemapi
|
||||||
* @since 9
|
* @since 9
|
||||||
|
1
api/@ohos.bundle.d.ts
vendored
1
api/@ohos.bundle.d.ts
vendored
@ -332,6 +332,7 @@ declare namespace bundle {
|
|||||||
/**
|
/**
|
||||||
* Indicates the user id
|
* Indicates the user id
|
||||||
*
|
*
|
||||||
|
* @type { ?number }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
* @deprecated since 9
|
* @deprecated since 9
|
||||||
|
@ -201,6 +201,7 @@ declare namespace distributedBundleManager {
|
|||||||
/**
|
/**
|
||||||
* Contains basic remote ability information.
|
* Contains basic remote ability information.
|
||||||
*
|
*
|
||||||
|
* typedef { _RemoteAbilityInfo }
|
||||||
* @syscap SystemCapability.BundleManager.DistributedBundleFramework
|
* @syscap SystemCapability.BundleManager.DistributedBundleFramework
|
||||||
* @systemapi
|
* @systemapi
|
||||||
* @since 9
|
* @since 9
|
||||||
|
12
api/@ohos.bundle.freeInstall.d.ts
vendored
12
api/@ohos.bundle.freeInstall.d.ts
vendored
@ -257,6 +257,7 @@ declare namespace freeInstall {
|
|||||||
/**
|
/**
|
||||||
* The dispatch info class.
|
* The dispatch info class.
|
||||||
*
|
*
|
||||||
|
* @typedef { _DispatchInfo }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
|
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
|
||||||
* @systemapi
|
* @systemapi
|
||||||
* @since 9
|
* @since 9
|
||||||
@ -266,6 +267,7 @@ declare namespace freeInstall {
|
|||||||
/**
|
/**
|
||||||
* The bundle pack info class.
|
* The bundle pack info class.
|
||||||
*
|
*
|
||||||
|
* @typedef { _PackInfo.BundlePackInfo }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
|
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
|
||||||
* @systemapi
|
* @systemapi
|
||||||
* @since 9
|
* @since 9
|
||||||
@ -275,6 +277,7 @@ declare namespace freeInstall {
|
|||||||
/**
|
/**
|
||||||
* The package info class.
|
* The package info class.
|
||||||
*
|
*
|
||||||
|
* @typedef { _PackInfo.PackageConfig }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
|
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
|
||||||
* @systemapi
|
* @systemapi
|
||||||
* @since 9
|
* @since 9
|
||||||
@ -284,6 +287,7 @@ declare namespace freeInstall {
|
|||||||
/**
|
/**
|
||||||
* The package summary class.
|
* The package summary class.
|
||||||
*
|
*
|
||||||
|
* @typedef { _PackInfo.PackageSummary }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
|
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
|
||||||
* @systemapi
|
* @systemapi
|
||||||
* @since 9
|
* @since 9
|
||||||
@ -293,6 +297,7 @@ declare namespace freeInstall {
|
|||||||
/**
|
/**
|
||||||
* The bundle summary class.
|
* The bundle summary class.
|
||||||
*
|
*
|
||||||
|
* @typedef { _PackInfo.BundleConfigInfo }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
|
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
|
||||||
* @systemapi
|
* @systemapi
|
||||||
* @since 9
|
* @since 9
|
||||||
@ -302,6 +307,7 @@ declare namespace freeInstall {
|
|||||||
/**
|
/**
|
||||||
* The extension ability forms class.
|
* The extension ability forms class.
|
||||||
*
|
*
|
||||||
|
* @typedef { _PackInfo.ExtensionAbility }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
|
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
|
||||||
* @systemapi
|
* @systemapi
|
||||||
* @since 9
|
* @since 9
|
||||||
@ -311,6 +317,7 @@ declare namespace freeInstall {
|
|||||||
/**
|
/**
|
||||||
* The module summary of a bundle.
|
* The module summary of a bundle.
|
||||||
*
|
*
|
||||||
|
* @typedef { _PackInfo.ModuleConfigInfo }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
|
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
|
||||||
* @systemapi
|
* @systemapi
|
||||||
* @since 9
|
* @since 9
|
||||||
@ -320,6 +327,7 @@ declare namespace freeInstall {
|
|||||||
/**
|
/**
|
||||||
* The bundle info summary class.
|
* The bundle info summary class.
|
||||||
*
|
*
|
||||||
|
* @typedef { _PackInfo.ModuleDistroInfo }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
|
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
|
||||||
* @systemapi
|
* @systemapi
|
||||||
* @since 9
|
* @since 9
|
||||||
@ -329,6 +337,7 @@ declare namespace freeInstall {
|
|||||||
/**
|
/**
|
||||||
* The ability info of a module.
|
* The ability info of a module.
|
||||||
*
|
*
|
||||||
|
* @typedef { _PackInfo.ModuleAbilityInfo }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
|
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
|
||||||
* @systemapi
|
* @systemapi
|
||||||
* @since 9
|
* @since 9
|
||||||
@ -338,6 +347,7 @@ declare namespace freeInstall {
|
|||||||
/**
|
/**
|
||||||
* The form info of an ability.
|
* The form info of an ability.
|
||||||
*
|
*
|
||||||
|
* @typedef { _PackInfo.AbilityFormInfo }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
|
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
|
||||||
* @systemapi
|
* @systemapi
|
||||||
* @since 9
|
* @since 9
|
||||||
@ -347,6 +357,7 @@ declare namespace freeInstall {
|
|||||||
/**
|
/**
|
||||||
* The bundle version class.
|
* The bundle version class.
|
||||||
*
|
*
|
||||||
|
* @typedef { _PackInfo.Version }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
|
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
|
||||||
* @systemapi
|
* @systemapi
|
||||||
* @since 9
|
* @since 9
|
||||||
@ -356,6 +367,7 @@ declare namespace freeInstall {
|
|||||||
/**
|
/**
|
||||||
* The bundle Api version class.
|
* The bundle Api version class.
|
||||||
*
|
*
|
||||||
|
* @typedef { _PackInfo.ApiVersion }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
|
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
|
||||||
* @systemapi
|
* @systemapi
|
||||||
* @since 9
|
* @since 9
|
||||||
|
1
api/@ohos.bundle.innerBundleManager.d.ts
vendored
1
api/@ohos.bundle.innerBundleManager.d.ts
vendored
@ -184,6 +184,7 @@ declare namespace innerBundleManager {
|
|||||||
/**
|
/**
|
||||||
* Contains basic Ability information, which uniquely identifies a launcher StatusCallback.
|
* Contains basic Ability information, which uniquely identifies a launcher StatusCallback.
|
||||||
*
|
*
|
||||||
|
* @typedef { _BundleStatusCallback }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @systemapi Hide this for inner system use
|
* @systemapi Hide this for inner system use
|
||||||
* @since 8
|
* @since 8
|
||||||
|
14
api/@ohos.bundle.installer.d.ts
vendored
14
api/@ohos.bundle.installer.d.ts
vendored
@ -975,7 +975,7 @@ declare namespace installer {
|
|||||||
*
|
*
|
||||||
* @permission ohos.permission.INSTALL_BUNDLE or ohos.permission.UNINSTALL_BUNDLE
|
* @permission ohos.permission.INSTALL_BUNDLE or ohos.permission.UNINSTALL_BUNDLE
|
||||||
* @param { string } bundleName - Indicates the bundleName.
|
* @param { string } bundleName - Indicates the bundleName.
|
||||||
* @param { Array<string> } moduleName - Indicates the moduleNames for extend resources.
|
* @param { Array<string> } moduleNames - Indicates the moduleNames for extend resources.
|
||||||
* @returns { Promise<void> } Returns removeExtResource result.
|
* @returns { Promise<void> } Returns removeExtResource result.
|
||||||
* @throws { BusinessError } 201 - Permission denied.
|
* @throws { BusinessError } 201 - Permission denied.
|
||||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||||
@ -1060,6 +1060,7 @@ declare namespace installer {
|
|||||||
/**
|
/**
|
||||||
* Indicates the moduleName
|
* Indicates the moduleName
|
||||||
*
|
*
|
||||||
|
* @type { string }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||||
* @systemapi
|
* @systemapi
|
||||||
* @since 9
|
* @since 9
|
||||||
@ -1069,6 +1070,7 @@ declare namespace installer {
|
|||||||
/**
|
/**
|
||||||
* Indicates the hash value
|
* Indicates the hash value
|
||||||
*
|
*
|
||||||
|
* @type { string }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||||
* @systemapi
|
* @systemapi
|
||||||
* @since 9
|
* @since 9
|
||||||
@ -1151,6 +1153,7 @@ declare namespace installer {
|
|||||||
/**
|
/**
|
||||||
* Indicates the user id
|
* Indicates the user id
|
||||||
*
|
*
|
||||||
|
* @type { ?number }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||||
* @systemapi
|
* @systemapi
|
||||||
* @since 9
|
* @since 9
|
||||||
@ -1160,6 +1163,7 @@ declare namespace installer {
|
|||||||
/**
|
/**
|
||||||
* Indicates the installation type. The value 0x00 means normal installation, 0x01 means overwrite installation, and 0x10 means installation-free.
|
* Indicates the installation type. The value 0x00 means normal installation, 0x01 means overwrite installation, and 0x10 means installation-free.
|
||||||
*
|
*
|
||||||
|
* @type { ?number }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||||
* @systemapi
|
* @systemapi
|
||||||
* @since 9
|
* @since 9
|
||||||
@ -1169,6 +1173,7 @@ declare namespace installer {
|
|||||||
/**
|
/**
|
||||||
* Indicates whether the param has data
|
* Indicates whether the param has data
|
||||||
*
|
*
|
||||||
|
* @type { ?boolean }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||||
* @systemapi
|
* @systemapi
|
||||||
* @since 9
|
* @since 9
|
||||||
@ -1178,6 +1183,7 @@ declare namespace installer {
|
|||||||
/**
|
/**
|
||||||
* Indicates the hash params
|
* Indicates the hash params
|
||||||
*
|
*
|
||||||
|
* @type { ?Array<HashParam> }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||||
* @systemapi
|
* @systemapi
|
||||||
* @since 9
|
* @since 9
|
||||||
@ -1187,6 +1193,7 @@ declare namespace installer {
|
|||||||
/**
|
/**
|
||||||
* Indicates the deadline of the crowdtesting bundle
|
* Indicates the deadline of the crowdtesting bundle
|
||||||
*
|
*
|
||||||
|
* @type { ?number }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||||
* @systemapi
|
* @systemapi
|
||||||
* @since 9
|
* @since 9
|
||||||
@ -1196,6 +1203,7 @@ declare namespace installer {
|
|||||||
/**
|
/**
|
||||||
* Indicates the shared bundle dir paths.
|
* Indicates the shared bundle dir paths.
|
||||||
*
|
*
|
||||||
|
* @type { ?Array<String> }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||||
* @systemapi
|
* @systemapi
|
||||||
* @since 10
|
* @since 10
|
||||||
@ -1205,6 +1213,7 @@ declare namespace installer {
|
|||||||
/**
|
/**
|
||||||
* Indicates the distribution type specified during bundle installation.
|
* Indicates the distribution type specified during bundle installation.
|
||||||
*
|
*
|
||||||
|
* @type { ?string }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||||
* @systemapi
|
* @systemapi
|
||||||
* @since 10
|
* @since 10
|
||||||
@ -1214,6 +1223,7 @@ declare namespace installer {
|
|||||||
/**
|
/**
|
||||||
* Indicates the additional information during bundle installation.
|
* Indicates the additional information during bundle installation.
|
||||||
*
|
*
|
||||||
|
* @type { ?string }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||||
* @systemapi
|
* @systemapi
|
||||||
* @since 10
|
* @since 10
|
||||||
@ -1254,6 +1264,7 @@ declare namespace installer {
|
|||||||
/**
|
/**
|
||||||
* Indicates the shared bundle name
|
* Indicates the shared bundle name
|
||||||
*
|
*
|
||||||
|
* @type { string }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||||
* @systemapi
|
* @systemapi
|
||||||
* @since 10
|
* @since 10
|
||||||
@ -1263,6 +1274,7 @@ declare namespace installer {
|
|||||||
/**
|
/**
|
||||||
* Indicates the shared version code. If default, indicates that all version sharing bundles are uninstalled
|
* Indicates the shared version code. If default, indicates that all version sharing bundles are uninstalled
|
||||||
*
|
*
|
||||||
|
* @type { ?number }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||||
* @systemapi
|
* @systemapi
|
||||||
* @since 10
|
* @since 10
|
||||||
|
3
api/@ohos.bundle.launcherBundleManager.d.ts
vendored
3
api/@ohos.bundle.launcherBundleManager.d.ts
vendored
@ -196,6 +196,7 @@ declare namespace launcherBundleManager {
|
|||||||
/**
|
/**
|
||||||
* Contains basic launcher Ability information, which uniquely identifies an LauncherAbilityInfo.
|
* Contains basic launcher Ability information, which uniquely identifies an LauncherAbilityInfo.
|
||||||
*
|
*
|
||||||
|
* @typedef { _LauncherAbilityInfo }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework.Launcher
|
* @syscap SystemCapability.BundleManager.BundleFramework.Launcher
|
||||||
* @systemapi
|
* @systemapi
|
||||||
* @since 9
|
* @since 9
|
||||||
@ -205,6 +206,7 @@ declare namespace launcherBundleManager {
|
|||||||
/**
|
/**
|
||||||
* Provides information about a shortcut, including the shortcut ID and label.
|
* Provides information about a shortcut, including the shortcut ID and label.
|
||||||
*
|
*
|
||||||
|
* @typedef { _ShortcutInfo }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework.Launcher
|
* @syscap SystemCapability.BundleManager.BundleFramework.Launcher
|
||||||
* @systemapi
|
* @systemapi
|
||||||
* @since 9
|
* @since 9
|
||||||
@ -213,6 +215,7 @@ declare namespace launcherBundleManager {
|
|||||||
/**
|
/**
|
||||||
* Obtains information about the ability that a shortcut will start.
|
* Obtains information about the ability that a shortcut will start.
|
||||||
*
|
*
|
||||||
|
* @typedef { _ShortcutWant }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework.Launcher
|
* @syscap SystemCapability.BundleManager.BundleFramework.Launcher
|
||||||
* @systemapi
|
* @systemapi
|
||||||
* @since 9
|
* @since 9
|
||||||
|
1
api/@ohos.bundle.overlay.d.ts
vendored
1
api/@ohos.bundle.overlay.d.ts
vendored
@ -278,6 +278,7 @@ declare namespace overlay {
|
|||||||
/**
|
/**
|
||||||
* Obtains configuration information about a overlay hap module.
|
* Obtains configuration information about a overlay hap module.
|
||||||
*
|
*
|
||||||
|
* @typedef { _OverlayModuleInfo.OverlayModuleInfo }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework.Overlay
|
* @syscap SystemCapability.BundleManager.BundleFramework.Overlay
|
||||||
* @since 10
|
* @since 10
|
||||||
*/
|
*/
|
||||||
|
3
api/@ohos.zlib.d.ts
vendored
3
api/@ohos.zlib.d.ts
vendored
@ -474,6 +474,7 @@ declare namespace zlib {
|
|||||||
/**
|
/**
|
||||||
* Indicates the compress level.
|
* Indicates the compress level.
|
||||||
*
|
*
|
||||||
|
* @type { ?CompressLevel }
|
||||||
* @syscap SystemCapability.BundleManager.Zlib
|
* @syscap SystemCapability.BundleManager.Zlib
|
||||||
* @crossplatform
|
* @crossplatform
|
||||||
* @atomicservice
|
* @atomicservice
|
||||||
@ -489,6 +490,7 @@ declare namespace zlib {
|
|||||||
/**
|
/**
|
||||||
* Indicates the memory level.
|
* Indicates the memory level.
|
||||||
*
|
*
|
||||||
|
* @type { ?MemLevel }
|
||||||
* @syscap SystemCapability.BundleManager.Zlib
|
* @syscap SystemCapability.BundleManager.Zlib
|
||||||
* @crossplatform
|
* @crossplatform
|
||||||
* @atomicservice
|
* @atomicservice
|
||||||
@ -504,6 +506,7 @@ declare namespace zlib {
|
|||||||
/**
|
/**
|
||||||
* Indicates the compress strategy.
|
* Indicates the compress strategy.
|
||||||
*
|
*
|
||||||
|
* @type { ?CompressStrategy }
|
||||||
* @syscap SystemCapability.BundleManager.Zlib
|
* @syscap SystemCapability.BundleManager.Zlib
|
||||||
* @crossplatform
|
* @crossplatform
|
||||||
* @atomicservice
|
* @atomicservice
|
||||||
|
5
api/@system.package.d.ts
vendored
5
api/@system.package.d.ts
vendored
@ -28,6 +28,7 @@ export interface CheckPackageHasInstalledResponse {
|
|||||||
/**
|
/**
|
||||||
* Whether the application exists, or whether the native application has been installed.
|
* Whether the application exists, or whether the native application has been installed.
|
||||||
*
|
*
|
||||||
|
* @type { boolean }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 3
|
* @since 3
|
||||||
* @deprecated since 9
|
* @deprecated since 9
|
||||||
@ -45,6 +46,7 @@ export interface CheckPackageHasInstalledOptions {
|
|||||||
/**
|
/**
|
||||||
* Application bundle name.
|
* Application bundle name.
|
||||||
*
|
*
|
||||||
|
* @type { string }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 3
|
* @since 3
|
||||||
* @deprecated since 9
|
* @deprecated since 9
|
||||||
@ -54,6 +56,7 @@ export interface CheckPackageHasInstalledOptions {
|
|||||||
/**
|
/**
|
||||||
* Called when native applications are installed.
|
* Called when native applications are installed.
|
||||||
*
|
*
|
||||||
|
* @type { ?function }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 3
|
* @since 3
|
||||||
* @deprecated since 9
|
* @deprecated since 9
|
||||||
@ -63,6 +66,7 @@ export interface CheckPackageHasInstalledOptions {
|
|||||||
/**
|
/**
|
||||||
* Called when native applications fail to be installed.
|
* Called when native applications fail to be installed.
|
||||||
*
|
*
|
||||||
|
* @type { ?function }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 3
|
* @since 3
|
||||||
* @deprecated since 9
|
* @deprecated since 9
|
||||||
@ -72,6 +76,7 @@ export interface CheckPackageHasInstalledOptions {
|
|||||||
/**
|
/**
|
||||||
* Called when the execution is completed.
|
* Called when the execution is completed.
|
||||||
*
|
*
|
||||||
|
* @type { ?function }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 3
|
* @since 3
|
||||||
* @deprecated since 9
|
* @deprecated since 9
|
||||||
|
4
api/bundle/PermissionDef.d.ts
vendored
4
api/bundle/PermissionDef.d.ts
vendored
@ -30,6 +30,7 @@
|
|||||||
*/
|
*/
|
||||||
export interface PermissionDef {
|
export interface PermissionDef {
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @default Indicates the name of this permission
|
* @default Indicates the name of this permission
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @systemapi
|
* @systemapi
|
||||||
@ -39,6 +40,7 @@ export interface PermissionDef {
|
|||||||
permissionName: string;
|
permissionName: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { number }
|
||||||
* @default Indicates the grant mode of this permission
|
* @default Indicates the grant mode of this permission
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @systemapi
|
* @systemapi
|
||||||
@ -48,6 +50,7 @@ export interface PermissionDef {
|
|||||||
grantMode: number;
|
grantMode: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { number }
|
||||||
* @default Indicates the labelId of this permission
|
* @default Indicates the labelId of this permission
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @systemapi
|
* @systemapi
|
||||||
@ -57,6 +60,7 @@ export interface PermissionDef {
|
|||||||
labelId: number;
|
labelId: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { number }
|
||||||
* @default Indicates the descriptionId of this permission
|
* @default Indicates the descriptionId of this permission
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @systemapi
|
* @systemapi
|
||||||
|
27
api/bundle/abilityInfo.d.ts
vendored
27
api/bundle/abilityInfo.d.ts
vendored
@ -33,6 +33,7 @@ import bundle from './../@ohos.bundle';
|
|||||||
*/
|
*/
|
||||||
export interface AbilityInfo {
|
export interface AbilityInfo {
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @default Indicates the name of the bundle containing the ability
|
* @default Indicates the name of the bundle containing the ability
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -41,6 +42,7 @@ export interface AbilityInfo {
|
|||||||
readonly bundleName: string;
|
readonly bundleName: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @default Ability simplified class name
|
* @default Ability simplified class name
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -49,6 +51,7 @@ export interface AbilityInfo {
|
|||||||
readonly name: string;
|
readonly name: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @default Indicates the label of the ability
|
* @default Indicates the label of the ability
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -57,6 +60,7 @@ export interface AbilityInfo {
|
|||||||
readonly label: string;
|
readonly label: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @default Describes the ability
|
* @default Describes the ability
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -65,6 +69,7 @@ export interface AbilityInfo {
|
|||||||
readonly description: string;
|
readonly description: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @default Indicates the icon of the ability
|
* @default Indicates the icon of the ability
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -73,6 +78,7 @@ export interface AbilityInfo {
|
|||||||
readonly icon: string;
|
readonly icon: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { number }
|
||||||
* @default Indicates the label id of the ability
|
* @default Indicates the label id of the ability
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -81,6 +87,7 @@ export interface AbilityInfo {
|
|||||||
readonly labelId: number;
|
readonly labelId: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { number }
|
||||||
* @default Indicates the description id of the ability
|
* @default Indicates the description id of the ability
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -89,6 +96,7 @@ export interface AbilityInfo {
|
|||||||
readonly descriptionId: number;
|
readonly descriptionId: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { number }
|
||||||
* @default Indicates the icon id of the ability
|
* @default Indicates the icon id of the ability
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -97,6 +105,7 @@ export interface AbilityInfo {
|
|||||||
readonly iconId: number;
|
readonly iconId: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @default Indicates the name of the .hap package to which the capability belongs
|
* @default Indicates the name of the .hap package to which the capability belongs
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -105,6 +114,7 @@ export interface AbilityInfo {
|
|||||||
readonly moduleName: string;
|
readonly moduleName: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @default Process of ability, if user do not set it ,the value equal application process
|
* @default Process of ability, if user do not set it ,the value equal application process
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -113,6 +123,7 @@ export interface AbilityInfo {
|
|||||||
readonly process: string;
|
readonly process: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @default Info about which ability is this nick point to
|
* @default Info about which ability is this nick point to
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @FAModelOnly
|
* @FAModelOnly
|
||||||
@ -122,6 +133,7 @@ export interface AbilityInfo {
|
|||||||
readonly targetAbility: string;
|
readonly targetAbility: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { number }
|
||||||
* @default Indicates the background service addressing a specific usage scenario
|
* @default Indicates the background service addressing a specific usage scenario
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @FAModelOnly
|
* @FAModelOnly
|
||||||
@ -131,6 +143,7 @@ export interface AbilityInfo {
|
|||||||
readonly backgroundModes: number;
|
readonly backgroundModes: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { boolean }
|
||||||
* @default Indicates whether an ability can be called by other abilities
|
* @default Indicates whether an ability can be called by other abilities
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -139,6 +152,7 @@ export interface AbilityInfo {
|
|||||||
readonly isVisible: boolean;
|
readonly isVisible: boolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { boolean }
|
||||||
* @default Indicates whether the ability provides the embedded card capability
|
* @default Indicates whether the ability provides the embedded card capability
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @FAModelOnly
|
* @FAModelOnly
|
||||||
@ -148,6 +162,7 @@ export interface AbilityInfo {
|
|||||||
readonly formEnabled: boolean;
|
readonly formEnabled: boolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { bundle.AbilityType }
|
||||||
* @default Enumerates types of templates that can be used by an ability
|
* @default Enumerates types of templates that can be used by an ability
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @FAModelOnly
|
* @FAModelOnly
|
||||||
@ -157,6 +172,7 @@ export interface AbilityInfo {
|
|||||||
readonly type: bundle.AbilityType;
|
readonly type: bundle.AbilityType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { bundle.AbilitySubType }
|
||||||
* @default Enumerates the subType of templates used by an ability
|
* @default Enumerates the subType of templates used by an ability
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @FAModelOnly
|
* @FAModelOnly
|
||||||
@ -166,6 +182,7 @@ export interface AbilityInfo {
|
|||||||
readonly subType: bundle.AbilitySubType;
|
readonly subType: bundle.AbilitySubType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { bundle.DisplayOrientation }
|
||||||
* @default Enumerates ability display orientations
|
* @default Enumerates ability display orientations
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -174,6 +191,7 @@ export interface AbilityInfo {
|
|||||||
readonly orientation: bundle.DisplayOrientation;
|
readonly orientation: bundle.DisplayOrientation;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { bundle.LaunchMode }
|
||||||
* @default Enumerates ability launch modes
|
* @default Enumerates ability launch modes
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -182,6 +200,7 @@ export interface AbilityInfo {
|
|||||||
readonly launchMode: bundle.LaunchMode;
|
readonly launchMode: bundle.LaunchMode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { Array<string> }
|
||||||
* @default The permissions that others need to launch this ability
|
* @default The permissions that others need to launch this ability
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -190,6 +209,7 @@ export interface AbilityInfo {
|
|||||||
readonly permissions: Array<string>;
|
readonly permissions: Array<string>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { Array<string> }
|
||||||
* @default The device types that this ability can run on
|
* @default The device types that this ability can run on
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -198,6 +218,7 @@ export interface AbilityInfo {
|
|||||||
readonly deviceTypes: Array<string>;
|
readonly deviceTypes: Array<string>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { Array<string> }
|
||||||
* @default The device capability that this ability needs
|
* @default The device capability that this ability needs
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -206,6 +227,7 @@ export interface AbilityInfo {
|
|||||||
readonly deviceCapabilities: Array<string>;
|
readonly deviceCapabilities: Array<string>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @default Indicates the permission required for reading ability data
|
* @default Indicates the permission required for reading ability data
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @FAModelOnly
|
* @FAModelOnly
|
||||||
@ -215,6 +237,7 @@ export interface AbilityInfo {
|
|||||||
readonly readPermission: string;
|
readonly readPermission: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @default Indicates the permission required for writing data to the ability
|
* @default Indicates the permission required for writing data to the ability
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @FAModelOnly
|
* @FAModelOnly
|
||||||
@ -224,6 +247,7 @@ export interface AbilityInfo {
|
|||||||
readonly writePermission: string;
|
readonly writePermission: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { ApplicationInfo }
|
||||||
* @default Obtains configuration information about an application
|
* @default Obtains configuration information about an application
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -232,6 +256,7 @@ export interface AbilityInfo {
|
|||||||
readonly applicationInfo: ApplicationInfo;
|
readonly applicationInfo: ApplicationInfo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @default Uri of ability
|
* @default Uri of ability
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @FAModelOnly
|
* @FAModelOnly
|
||||||
@ -241,6 +266,7 @@ export interface AbilityInfo {
|
|||||||
readonly uri: string;
|
readonly uri: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { Array<CustomizeData> }
|
||||||
* @default Indicates the metadata of ability
|
* @default Indicates the metadata of ability
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 8
|
* @since 8
|
||||||
@ -249,6 +275,7 @@ export interface AbilityInfo {
|
|||||||
readonly metaData: Array<CustomizeData>;
|
readonly metaData: Array<CustomizeData>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { boolean }
|
||||||
* @default Indicates whether the ability is enabled
|
* @default Indicates whether the ability is enabled
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 8
|
* @since 8
|
||||||
|
28
api/bundle/bundleInfo.d.ts
vendored
28
api/bundle/bundleInfo.d.ts
vendored
@ -33,6 +33,7 @@ import { HapModuleInfo } from './hapModuleInfo';
|
|||||||
*/
|
*/
|
||||||
export interface UsedScene {
|
export interface UsedScene {
|
||||||
/**
|
/**
|
||||||
|
* @type { Array<string> }
|
||||||
* @default Indicates the abilities that need the permission
|
* @default Indicates the abilities that need the permission
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -41,6 +42,7 @@ export interface UsedScene {
|
|||||||
abilities: Array<string>;
|
abilities: Array<string>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @default Indicates the time when the permission is used
|
* @default Indicates the time when the permission is used
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -60,6 +62,7 @@ export interface UsedScene {
|
|||||||
*/
|
*/
|
||||||
export interface ReqPermissionDetail {
|
export interface ReqPermissionDetail {
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @default Indicates the name of this required permissions
|
* @default Indicates the name of this required permissions
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -68,6 +71,7 @@ export interface ReqPermissionDetail {
|
|||||||
name: string;
|
name: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @default Indicates the reason of this required permissions
|
* @default Indicates the reason of this required permissions
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -76,6 +80,7 @@ export interface ReqPermissionDetail {
|
|||||||
reason: string;
|
reason: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { UsedScene }
|
||||||
* @default Indicates the used scene of this required permissions
|
* @default Indicates the used scene of this required permissions
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -95,6 +100,7 @@ export interface ReqPermissionDetail {
|
|||||||
*/
|
*/
|
||||||
export interface BundleInfo {
|
export interface BundleInfo {
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @default Indicates the name of this bundle
|
* @default Indicates the name of this bundle
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -103,6 +109,7 @@ export interface BundleInfo {
|
|||||||
readonly name: string;
|
readonly name: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @default Indicates the name of this original bundle
|
* @default Indicates the name of this original bundle
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -111,6 +118,7 @@ export interface BundleInfo {
|
|||||||
readonly type: string;
|
readonly type: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @default Indicates the ID of the application to which this bundle belongs
|
* @default Indicates the ID of the application to which this bundle belongs
|
||||||
* The application ID uniquely identifies an application. It is determined by the bundle name and signature
|
* The application ID uniquely identifies an application. It is determined by the bundle name and signature
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
@ -120,6 +128,7 @@ export interface BundleInfo {
|
|||||||
readonly appId: string;
|
readonly appId: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { number }
|
||||||
* @default Indicates the UID of the application to which this bundle belongs
|
* @default Indicates the UID of the application to which this bundle belongs
|
||||||
* The UID uniquely identifies an application. It is determined by the process and user IDs of the application
|
* The UID uniquely identifies an application. It is determined by the process and user IDs of the application
|
||||||
* After an application is installed, its UID remains unchanged unless it is uninstalled and then reinstalled
|
* After an application is installed, its UID remains unchanged unless it is uninstalled and then reinstalled
|
||||||
@ -130,6 +139,7 @@ export interface BundleInfo {
|
|||||||
readonly uid: number;
|
readonly uid: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { number }
|
||||||
* @default Indicates the hap install time
|
* @default Indicates the hap install time
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -138,6 +148,7 @@ export interface BundleInfo {
|
|||||||
readonly installTime: number;
|
readonly installTime: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { number }
|
||||||
* @default Indicates the hap update time
|
* @default Indicates the hap update time
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -146,6 +157,7 @@ export interface BundleInfo {
|
|||||||
readonly updateTime: number;
|
readonly updateTime: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { ApplicationInfo }
|
||||||
* @default Obtains configuration information about an application
|
* @default Obtains configuration information about an application
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -154,6 +166,7 @@ export interface BundleInfo {
|
|||||||
readonly appInfo: ApplicationInfo;
|
readonly appInfo: ApplicationInfo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { Array<AbilityInfo> }
|
||||||
* @default Obtains configuration information about an ability
|
* @default Obtains configuration information about an ability
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -162,6 +175,7 @@ export interface BundleInfo {
|
|||||||
readonly abilityInfos: Array<AbilityInfo>;
|
readonly abilityInfos: Array<AbilityInfo>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { Array<string> }
|
||||||
* @default Indicates the required permissions name defined in file config.json
|
* @default Indicates the required permissions name defined in file config.json
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -170,6 +184,7 @@ export interface BundleInfo {
|
|||||||
readonly reqPermissions: Array<string>;
|
readonly reqPermissions: Array<string>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { Array<ReqPermissionDetail> }
|
||||||
* @default Indicates the required permissions details defined in file config.json
|
* @default Indicates the required permissions details defined in file config.json
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -178,6 +193,7 @@ export interface BundleInfo {
|
|||||||
readonly reqPermissionDetails: Array<ReqPermissionDetail>;
|
readonly reqPermissionDetails: Array<ReqPermissionDetail>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @default Describes the bundle vendor
|
* @default Describes the bundle vendor
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -186,6 +202,7 @@ export interface BundleInfo {
|
|||||||
readonly vendor: string;
|
readonly vendor: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { number }
|
||||||
* @default Indicates the version number of the bundle
|
* @default Indicates the version number of the bundle
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -194,6 +211,7 @@ export interface BundleInfo {
|
|||||||
readonly versionCode: number;
|
readonly versionCode: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @default Indicates the text description of the bundle version
|
* @default Indicates the text description of the bundle version
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -202,6 +220,7 @@ export interface BundleInfo {
|
|||||||
readonly versionName: string;
|
readonly versionName: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { number }
|
||||||
* @default Indicates the compatible version number of the bundle
|
* @default Indicates the compatible version number of the bundle
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -210,6 +229,7 @@ export interface BundleInfo {
|
|||||||
readonly compatibleVersion: number;
|
readonly compatibleVersion: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { number }
|
||||||
* @default Indicates the target version number of the bundle
|
* @default Indicates the target version number of the bundle
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -218,6 +238,7 @@ export interface BundleInfo {
|
|||||||
readonly targetVersion: number;
|
readonly targetVersion: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { boolean }
|
||||||
* @default Indicates is compress native libs
|
* @default Indicates is compress native libs
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -226,6 +247,7 @@ export interface BundleInfo {
|
|||||||
readonly isCompressNativeLibs: boolean;
|
readonly isCompressNativeLibs: boolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { Array<HapModuleInfo> }
|
||||||
* @default Obtains configuration information about a module
|
* @default Obtains configuration information about a module
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -234,6 +256,7 @@ export interface BundleInfo {
|
|||||||
readonly hapModuleInfos: Array<HapModuleInfo>;
|
readonly hapModuleInfos: Array<HapModuleInfo>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @default Indicates entry module name
|
* @default Indicates entry module name
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -242,6 +265,7 @@ export interface BundleInfo {
|
|||||||
readonly entryModuleName: string;
|
readonly entryModuleName: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @default Indicates the cpuAbi information of this bundle.
|
* @default Indicates the cpuAbi information of this bundle.
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -250,6 +274,7 @@ export interface BundleInfo {
|
|||||||
readonly cpuAbi: string;
|
readonly cpuAbi: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @default Indicates is silent installation
|
* @default Indicates is silent installation
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -258,6 +283,7 @@ export interface BundleInfo {
|
|||||||
readonly isSilentInstallation: string;
|
readonly isSilentInstallation: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { number }
|
||||||
* @default Indicates the earliest historical version compatible with the bundle
|
* @default Indicates the earliest historical version compatible with the bundle
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -266,6 +292,7 @@ export interface BundleInfo {
|
|||||||
readonly minCompatibleVersionCode: number;
|
readonly minCompatibleVersionCode: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { boolean }
|
||||||
* @default Indicates whether free installation of the entry is supported
|
* @default Indicates whether free installation of the entry is supported
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -274,6 +301,7 @@ export interface BundleInfo {
|
|||||||
readonly entryInstallationFree: boolean;
|
readonly entryInstallationFree: boolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { Array<number> }
|
||||||
* @default Indicates the grant status of required permissions
|
* @default Indicates the grant status of required permissions
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 8
|
* @since 8
|
||||||
|
5
api/bundle/bundleInstaller.d.ts
vendored
5
api/bundle/bundleInstaller.d.ts
vendored
@ -33,6 +33,7 @@ import bundle from './../@ohos.bundle';
|
|||||||
*/
|
*/
|
||||||
export interface InstallParam {
|
export interface InstallParam {
|
||||||
/**
|
/**
|
||||||
|
* @type { number }
|
||||||
* @default Indicates the user id
|
* @default Indicates the user id
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @systemapi Hide this for inner system use
|
* @systemapi Hide this for inner system use
|
||||||
@ -43,6 +44,7 @@ export interface InstallParam {
|
|||||||
userId: number;
|
userId: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { number }
|
||||||
* @default Indicates the install flag
|
* @default Indicates the install flag
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @systemapi Hide this for inner system use
|
* @systemapi Hide this for inner system use
|
||||||
@ -53,6 +55,7 @@ export interface InstallParam {
|
|||||||
installFlag: number;
|
installFlag: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { boolean }
|
||||||
* @default Indicates whether the param has data
|
* @default Indicates whether the param has data
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @systemapi Hide this for inner system use
|
* @systemapi Hide this for inner system use
|
||||||
@ -74,6 +77,7 @@ export interface InstallParam {
|
|||||||
*/
|
*/
|
||||||
export interface InstallStatus {
|
export interface InstallStatus {
|
||||||
/**
|
/**
|
||||||
|
* @type { bundle.InstallErrorCode }
|
||||||
* @default Indicates the install or uninstall error code
|
* @default Indicates the install or uninstall error code
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @systemapi Hide this for inner system use
|
* @systemapi Hide this for inner system use
|
||||||
@ -83,6 +87,7 @@ export interface InstallStatus {
|
|||||||
status: bundle.InstallErrorCode;
|
status: bundle.InstallErrorCode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @default Indicates the install or uninstall result string message
|
* @default Indicates the install or uninstall result string message
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @systemapi Hide this for inner system use
|
* @systemapi Hide this for inner system use
|
||||||
|
3
api/bundle/bundleStatusCallback.d.ts
vendored
3
api/bundle/bundleStatusCallback.d.ts
vendored
@ -36,6 +36,7 @@ export interface BundleStatusCallback {
|
|||||||
* Obtains add callback about an launcherStatusCallback.
|
* Obtains add callback about an launcherStatusCallback.
|
||||||
*
|
*
|
||||||
* @permission ohos.permission.LISTEN_BUNDLE_CHANGE
|
* @permission ohos.permission.LISTEN_BUNDLE_CHANGE
|
||||||
|
* @type { function }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @systemapi Hide this for inner system use
|
* @systemapi Hide this for inner system use
|
||||||
* @since 8
|
* @since 8
|
||||||
@ -47,6 +48,7 @@ export interface BundleStatusCallback {
|
|||||||
* Obtains update callback about an launcherStatusCallback.
|
* Obtains update callback about an launcherStatusCallback.
|
||||||
*
|
*
|
||||||
* @permission ohos.permission.LISTEN_BUNDLE_CHANGE
|
* @permission ohos.permission.LISTEN_BUNDLE_CHANGE
|
||||||
|
* @type { function }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @systemapi Hide this for inner system use
|
* @systemapi Hide this for inner system use
|
||||||
* @since 8
|
* @since 8
|
||||||
@ -58,6 +60,7 @@ export interface BundleStatusCallback {
|
|||||||
* Obtains remove callback about an launcherStatusCallback.
|
* Obtains remove callback about an launcherStatusCallback.
|
||||||
*
|
*
|
||||||
* @permission ohos.permission.LISTEN_BUNDLE_CHANGE
|
* @permission ohos.permission.LISTEN_BUNDLE_CHANGE
|
||||||
|
* @type { function }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @systemapi Hide this for inner system use
|
* @systemapi Hide this for inner system use
|
||||||
* @since 8
|
* @since 8
|
||||||
|
15
api/bundle/hapModuleInfo.d.ts
vendored
15
api/bundle/hapModuleInfo.d.ts
vendored
@ -31,6 +31,7 @@ import { AbilityInfo } from './abilityInfo';
|
|||||||
*/
|
*/
|
||||||
export interface HapModuleInfo {
|
export interface HapModuleInfo {
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @default Indicates the name of this hapmodule
|
* @default Indicates the name of this hapmodule
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -38,6 +39,7 @@ export interface HapModuleInfo {
|
|||||||
*/
|
*/
|
||||||
readonly name: string;
|
readonly name: string;
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @default Describes the hapmodule
|
* @default Describes the hapmodule
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -45,6 +47,7 @@ export interface HapModuleInfo {
|
|||||||
*/
|
*/
|
||||||
readonly description: string;
|
readonly description: string;
|
||||||
/**
|
/**
|
||||||
|
* @type { number }
|
||||||
* @default Indicates the description of this hapmodule
|
* @default Indicates the description of this hapmodule
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -52,6 +55,7 @@ export interface HapModuleInfo {
|
|||||||
*/
|
*/
|
||||||
readonly descriptionId: number;
|
readonly descriptionId: number;
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @default Indicates the icon of this hapmodule
|
* @default Indicates the icon of this hapmodule
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -59,6 +63,7 @@ export interface HapModuleInfo {
|
|||||||
*/
|
*/
|
||||||
readonly icon: string;
|
readonly icon: string;
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @default Indicates the label of this hapmodule
|
* @default Indicates the label of this hapmodule
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -66,6 +71,7 @@ export interface HapModuleInfo {
|
|||||||
*/
|
*/
|
||||||
readonly label: string;
|
readonly label: string;
|
||||||
/**
|
/**
|
||||||
|
* @type { number }
|
||||||
* @default Indicates the label id of this hapmodule
|
* @default Indicates the label id of this hapmodule
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -73,6 +79,7 @@ export interface HapModuleInfo {
|
|||||||
*/
|
*/
|
||||||
readonly labelId: number;
|
readonly labelId: number;
|
||||||
/**
|
/**
|
||||||
|
* @type { number }
|
||||||
* @default Indicates the icon id of this hapmodule
|
* @default Indicates the icon id of this hapmodule
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -80,6 +87,7 @@ export interface HapModuleInfo {
|
|||||||
*/
|
*/
|
||||||
readonly iconId: number;
|
readonly iconId: number;
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @default Indicates the background img of this hapmodule
|
* @default Indicates the background img of this hapmodule
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -87,6 +95,7 @@ export interface HapModuleInfo {
|
|||||||
*/
|
*/
|
||||||
readonly backgroundImg: string;
|
readonly backgroundImg: string;
|
||||||
/**
|
/**
|
||||||
|
* @type { number }
|
||||||
* @default Indicates the supported modes of this hapmodule
|
* @default Indicates the supported modes of this hapmodule
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -94,6 +103,7 @@ export interface HapModuleInfo {
|
|||||||
*/
|
*/
|
||||||
readonly supportedModes: number;
|
readonly supportedModes: number;
|
||||||
/**
|
/**
|
||||||
|
* @type { Array<string> }
|
||||||
* @default Indicates the req capabilities of this hapmodule
|
* @default Indicates the req capabilities of this hapmodule
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -101,6 +111,7 @@ export interface HapModuleInfo {
|
|||||||
*/
|
*/
|
||||||
readonly reqCapabilities: Array<string>;
|
readonly reqCapabilities: Array<string>;
|
||||||
/**
|
/**
|
||||||
|
* @type { Array<string> }
|
||||||
* @default The device types that this hapmodule can run on
|
* @default The device types that this hapmodule can run on
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -108,6 +119,7 @@ export interface HapModuleInfo {
|
|||||||
*/
|
*/
|
||||||
readonly deviceTypes: Array<string>;
|
readonly deviceTypes: Array<string>;
|
||||||
/**
|
/**
|
||||||
|
* @type { Array<AbilityInfo> }
|
||||||
* @default Obtains configuration information about ability
|
* @default Obtains configuration information about ability
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -115,6 +127,7 @@ export interface HapModuleInfo {
|
|||||||
*/
|
*/
|
||||||
readonly abilityInfo: Array<AbilityInfo>;
|
readonly abilityInfo: Array<AbilityInfo>;
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @default Indicates the name of the .hap package to which the capability belongs
|
* @default Indicates the name of the .hap package to which the capability belongs
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -122,6 +135,7 @@ export interface HapModuleInfo {
|
|||||||
*/
|
*/
|
||||||
readonly moduleName: string;
|
readonly moduleName: string;
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @default Indicates the main ability name of this hapmodule
|
* @default Indicates the main ability name of this hapmodule
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -129,6 +143,7 @@ export interface HapModuleInfo {
|
|||||||
*/
|
*/
|
||||||
readonly mainAbilityName: string;
|
readonly mainAbilityName: string;
|
||||||
/**
|
/**
|
||||||
|
* @type { boolean }
|
||||||
* @default Indicates whether free installation of the hapmodule is supported
|
* @default Indicates whether free installation of the hapmodule is supported
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
|
6
api/bundle/launcherAbilityInfo.d.ts
vendored
6
api/bundle/launcherAbilityInfo.d.ts
vendored
@ -39,6 +39,7 @@ export interface LauncherAbilityInfo {
|
|||||||
/**
|
/**
|
||||||
* Obtains application info information about an launcher ability.
|
* Obtains application info information about an launcher ability.
|
||||||
*
|
*
|
||||||
|
* @type { ApplicationInfo }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @systemapi Hide this for inner system use
|
* @systemapi Hide this for inner system use
|
||||||
* @since 8
|
* @since 8
|
||||||
@ -49,6 +50,7 @@ export interface LauncherAbilityInfo {
|
|||||||
/**
|
/**
|
||||||
* Obtains element name about an launcher ability.
|
* Obtains element name about an launcher ability.
|
||||||
*
|
*
|
||||||
|
* @type { ElementName }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @systemapi Hide this for inner system use
|
* @systemapi Hide this for inner system use
|
||||||
* @since 8
|
* @since 8
|
||||||
@ -59,6 +61,7 @@ export interface LauncherAbilityInfo {
|
|||||||
/**
|
/**
|
||||||
* Obtains labelId about an launcher ability.
|
* Obtains labelId about an launcher ability.
|
||||||
*
|
*
|
||||||
|
* @type { number }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @systemapi Hide this for inner system use
|
* @systemapi Hide this for inner system use
|
||||||
* @since 8
|
* @since 8
|
||||||
@ -69,6 +72,7 @@ export interface LauncherAbilityInfo {
|
|||||||
/**
|
/**
|
||||||
* Obtains iconId about an launcher ability.
|
* Obtains iconId about an launcher ability.
|
||||||
*
|
*
|
||||||
|
* @type { number }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @systemapi Hide this for inner system use
|
* @systemapi Hide this for inner system use
|
||||||
* @since 8
|
* @since 8
|
||||||
@ -79,6 +83,7 @@ export interface LauncherAbilityInfo {
|
|||||||
/**
|
/**
|
||||||
* Obtains userId about an launcher ability.
|
* Obtains userId about an launcher ability.
|
||||||
*
|
*
|
||||||
|
* @type { number }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @systemapi Hide this for inner system use
|
* @systemapi Hide this for inner system use
|
||||||
* @since 8
|
* @since 8
|
||||||
@ -89,6 +94,7 @@ export interface LauncherAbilityInfo {
|
|||||||
/**
|
/**
|
||||||
* Obtains installTime about an launcher ability.
|
* Obtains installTime about an launcher ability.
|
||||||
*
|
*
|
||||||
|
* @type { number }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @systemapi Hide this for inner system use
|
* @systemapi Hide this for inner system use
|
||||||
* @since 8
|
* @since 8
|
||||||
|
2
api/bundle/moduleInfo.d.ts
vendored
2
api/bundle/moduleInfo.d.ts
vendored
@ -31,6 +31,7 @@ export interface ModuleInfo {
|
|||||||
/**
|
/**
|
||||||
* The module name.
|
* The module name.
|
||||||
*
|
*
|
||||||
|
* @type { string }
|
||||||
* @default Indicates the name of the .hap package to which the capability belongs
|
* @default Indicates the name of the .hap package to which the capability belongs
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -41,6 +42,7 @@ export interface ModuleInfo {
|
|||||||
/**
|
/**
|
||||||
* The module source path.
|
* The module source path.
|
||||||
*
|
*
|
||||||
|
* @type { string }
|
||||||
* @default Indicates the module source dir of this module
|
* @default Indicates the module source dir of this module
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
|
3
api/bundle/remoteAbilityInfo.d.ts
vendored
3
api/bundle/remoteAbilityInfo.d.ts
vendored
@ -32,6 +32,7 @@ import { ElementName } from './elementName';
|
|||||||
*/
|
*/
|
||||||
export interface RemoteAbilityInfo {
|
export interface RemoteAbilityInfo {
|
||||||
/**
|
/**
|
||||||
|
* @type { ElementName }
|
||||||
* @default Indicates the ability information
|
* @default Indicates the ability information
|
||||||
* @syscap SystemCapability.BundleManager.DistributedBundleFramework
|
* @syscap SystemCapability.BundleManager.DistributedBundleFramework
|
||||||
* @systemapi
|
* @systemapi
|
||||||
@ -41,6 +42,7 @@ export interface RemoteAbilityInfo {
|
|||||||
readonly elementName: ElementName;
|
readonly elementName: ElementName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @default Indicates the label of the ability
|
* @default Indicates the label of the ability
|
||||||
* @syscap SystemCapability.BundleManager.DistributedBundleFramework
|
* @syscap SystemCapability.BundleManager.DistributedBundleFramework
|
||||||
* @systemapi
|
* @systemapi
|
||||||
@ -50,6 +52,7 @@ export interface RemoteAbilityInfo {
|
|||||||
readonly label: string;
|
readonly label: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @default Indicates the icon of the ability
|
* @default Indicates the icon of the ability
|
||||||
* @syscap SystemCapability.BundleManager.DistributedBundleFramework
|
* @syscap SystemCapability.BundleManager.DistributedBundleFramework
|
||||||
* @systemapi
|
* @systemapi
|
||||||
|
14
api/bundle/shortcutInfo.d.ts
vendored
14
api/bundle/shortcutInfo.d.ts
vendored
@ -31,6 +31,7 @@
|
|||||||
*/
|
*/
|
||||||
export interface ShortcutWant {
|
export interface ShortcutWant {
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @systemapi Hide this for inner system use
|
* @systemapi Hide this for inner system use
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -38,6 +39,7 @@ export interface ShortcutWant {
|
|||||||
*/
|
*/
|
||||||
readonly targetBundle: string;
|
readonly targetBundle: string;
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @systemapi Hide this for inner system use
|
* @systemapi Hide this for inner system use
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -56,60 +58,70 @@ export interface ShortcutWant {
|
|||||||
*/
|
*/
|
||||||
export interface ShortcutInfo {
|
export interface ShortcutInfo {
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
* @deprecated since 9
|
* @deprecated since 9
|
||||||
*/
|
*/
|
||||||
readonly id: string;
|
readonly id: string;
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
* @deprecated since 9
|
* @deprecated since 9
|
||||||
*/
|
*/
|
||||||
readonly bundleName: string;
|
readonly bundleName: string;
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
* @deprecated since 9
|
* @deprecated since 9
|
||||||
*/
|
*/
|
||||||
readonly hostAbility: string;
|
readonly hostAbility: string;
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
* @deprecated since 9
|
* @deprecated since 9
|
||||||
*/
|
*/
|
||||||
readonly icon: string;
|
readonly icon: string;
|
||||||
/**
|
/**
|
||||||
|
* @type { number }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 8
|
* @since 8
|
||||||
* @deprecated since 9
|
* @deprecated since 9
|
||||||
*/
|
*/
|
||||||
readonly iconId: number;
|
readonly iconId: number;
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
* @deprecated since 9
|
* @deprecated since 9
|
||||||
*/
|
*/
|
||||||
readonly label: string;
|
readonly label: string;
|
||||||
/**
|
/**
|
||||||
|
* @type { number }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 8
|
* @since 8
|
||||||
* @deprecated since 9
|
* @deprecated since 9
|
||||||
*/
|
*/
|
||||||
readonly labelId: number;
|
readonly labelId: number;
|
||||||
/**
|
/**
|
||||||
|
* @type { string }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
* @deprecated since 9
|
* @deprecated since 9
|
||||||
*/
|
*/
|
||||||
readonly disableMessage: string;
|
readonly disableMessage: string;
|
||||||
/**
|
/**
|
||||||
|
* @type { Array<ShortcutWant> }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
* @deprecated since 9
|
* @deprecated since 9
|
||||||
*/
|
*/
|
||||||
readonly wants: Array<ShortcutWant>;
|
readonly wants: Array<ShortcutWant>;
|
||||||
/**
|
/**
|
||||||
|
* @type { ?boolean }
|
||||||
* @default false
|
* @default false
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -117,6 +129,7 @@ export interface ShortcutInfo {
|
|||||||
*/
|
*/
|
||||||
readonly isStatic?: boolean;
|
readonly isStatic?: boolean;
|
||||||
/**
|
/**
|
||||||
|
* @type { ?boolean }
|
||||||
* @default false
|
* @default false
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
@ -124,6 +137,7 @@ export interface ShortcutInfo {
|
|||||||
*/
|
*/
|
||||||
readonly isHomeShortcut?: boolean;
|
readonly isHomeShortcut?: boolean;
|
||||||
/**
|
/**
|
||||||
|
* @type { ?boolean }
|
||||||
* @default false
|
* @default false
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework
|
* @syscap SystemCapability.BundleManager.BundleFramework
|
||||||
* @since 7
|
* @since 7
|
||||||
|
2
api/bundleManager/DispatchInfo.d.ts
vendored
2
api/bundleManager/DispatchInfo.d.ts
vendored
@ -30,6 +30,7 @@ export interface DispatchInfo {
|
|||||||
/**
|
/**
|
||||||
* Indicates the dispatchInfo version
|
* Indicates the dispatchInfo version
|
||||||
*
|
*
|
||||||
|
* @type { string }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
|
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
|
||||||
* @systemapi
|
* @systemapi
|
||||||
* @since 9
|
* @since 9
|
||||||
@ -39,6 +40,7 @@ export interface DispatchInfo {
|
|||||||
/**
|
/**
|
||||||
* Indicates the free install interface version
|
* Indicates the free install interface version
|
||||||
*
|
*
|
||||||
|
* @type { string }
|
||||||
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
|
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
|
||||||
* @systemapi
|
* @systemapi
|
||||||
* @since 9
|
* @since 9
|
||||||
|
Loading…
Reference in New Issue
Block a user