From 6c335349971d955c01a341f93a8073c7710b6197 Mon Sep 17 00:00:00 2001 From: lanhaoyu Date: Fri, 22 Aug 2025 15:32:03 +0800 Subject: [PATCH] bms sdk sync 0728 to master Signed-off-by: lanhaoyu --- api/@ohos.bundle.appControl.d.ts | 170 ++++-- api/@ohos.bundle.bundleManager.d.ts | 526 +++++++++++------- api/@ohos.bundle.bundleMonitor.d.ts | 8 +- api/@ohos.bundle.bundleResourceManager.d.ts | 46 +- api/@ohos.bundle.defaultAppManager.d.ts | 116 ++-- ...@ohos.bundle.distributedBundleManager.d.ts | 30 +- api/@ohos.bundle.freeInstall.d.ts | 4 +- api/@ohos.bundle.installer.d.ts | 46 +- api/@ohos.bundle.launcherBundleManager.d.ts | 30 +- api/@ohos.bundle.shortcutManager.d.ts | 14 +- api/bundleManager/AbilityInfo.d.ts | 59 +- api/bundleManager/AppProvisionInfo.d.ts | 60 +- api/bundleManager/ApplicationInfo.d.ts | 40 +- api/bundleManager/BundleInfo.d.ts | 86 ++- api/bundleManager/BundlePackInfo.d.ts | 20 +- api/bundleManager/BundleResourceInfo.d.ts | 4 +- api/bundleManager/ExtensionAbilityInfo.d.ts | 30 +- api/bundleManager/HapModuleInfo.d.ts | 16 +- api/bundleManager/LauncherAbilityInfo.d.ts | 16 +- .../LauncherAbilityResourceInfo.d.ts | 4 +- api/bundleManager/Metadata.d.ts | 4 +- api/bundleManager/OverlayModuleInfo.d.ts | 8 +- api/bundleManager/PermissionDef.d.ts | 27 +- api/bundleManager/PluginBundleInfo.d.ts | 55 +- .../RecoverableApplicationInfo.d.ts | 32 +- api/bundleManager/RemoteAbilityInfo.d.ts | 12 +- api/bundleManager/SharedBundleInfo.d.ts | 38 +- api/bundleManager/ShortcutInfo.d.ts | 16 +- api/bundleManager/Skill.d.ts | 8 +- kits/@kit.AbilityKit.d.ts | 7 +- 30 files changed, 918 insertions(+), 614 deletions(-) diff --git a/api/@ohos.bundle.appControl.d.ts b/api/@ohos.bundle.appControl.d.ts index d57d3694f7..66ab0dc4ac 100644 --- a/api/@ohos.bundle.appControl.d.ts +++ b/api/@ohos.bundle.appControl.d.ts @@ -19,7 +19,12 @@ */ import { AsyncCallback } from './@ohos.base'; +/*** if arkts 1.1 */ import type { ElementName } from './bundleManager/ElementName'; +/*** endif */ +/*** if arkts 1.2 */ +import { ElementName } from './bundleManager/ElementName'; +/*** endif */ import Want from './@ohos.app.ability.Want'; /** @@ -28,16 +33,18 @@ import Want from './@ohos.app.ability.Want'; * @namespace appControl * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ declare namespace appControl { /** * Indicates the ability component type. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ export enum ComponentType { /** @@ -45,7 +52,8 @@ declare namespace appControl { * * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ UI_ABILITY = 1, @@ -54,7 +62,8 @@ declare namespace appControl { * * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ UI_EXTENSION = 2 } @@ -62,10 +71,11 @@ declare namespace appControl { /** * Indicates the ability component type when uninstalled. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 15 + * @since arkts {'1.1':'15', '1.2':'20'} + * @arkts 1.1&1.2 */ export enum UninstallComponentType { /** @@ -73,7 +83,8 @@ declare namespace appControl { * * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 15 + * @since arkts {'1.1':'15', '1.2':'20'} + * @arkts 1.1&1.2 */ EXTENSION = 1, } @@ -81,10 +92,11 @@ declare namespace appControl { /** * Indicates when to intercept the specified application. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ export enum DisposedType { /** @@ -92,7 +104,8 @@ declare namespace appControl { * * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ BLOCK_APPLICATION = 1, /** @@ -100,7 +113,8 @@ declare namespace appControl { * * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ BLOCK_ABILITY = 2, /** @@ -108,7 +122,8 @@ declare namespace appControl { * * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ NON_BLOCK = 3 } @@ -116,10 +131,11 @@ declare namespace appControl { /** * Indicates the strategy to intercept the specified application. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ export enum ControlType { /** @@ -127,7 +143,8 @@ declare namespace appControl { * * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ ALLOWED_LIST = 1, /** @@ -135,7 +152,8 @@ declare namespace appControl { * * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ DISALLOWED_LIST = 2 } @@ -146,7 +164,8 @@ declare namespace appControl { * @typedef DisposedRule * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ export interface DisposedRule { /** @@ -155,7 +174,8 @@ declare namespace appControl { * @type { Want } * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ want: Want; @@ -165,7 +185,8 @@ declare namespace appControl { * @type { ComponentType } * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ componentType: ComponentType; @@ -175,7 +196,8 @@ declare namespace appControl { * @type { DisposedType } * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ disposedType: DisposedType; @@ -185,7 +207,8 @@ declare namespace appControl { * @type { ControlType } * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ controlType: ControlType; @@ -195,19 +218,21 @@ declare namespace appControl { * @type { Array } * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ - elementList: Array ; + elementList: Array; /** * Indicates priority of the rule. * - * @type { number } + * @type { int } * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ - priority: number; + priority: int; } /** @@ -216,7 +241,8 @@ declare namespace appControl { * @typedef UninstallDisposedRule * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 15 + * @since arkts {'1.1':'15', '1.2':'20'} + * @arkts 1.1&1.2 */ export interface UninstallDisposedRule { /** @@ -225,7 +251,8 @@ declare namespace appControl { * @type { Want } * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 15 + * @since arkts {'1.1':'15', '1.2':'20'} + * @arkts 1.1&1.2 */ want: Want; @@ -235,19 +262,21 @@ declare namespace appControl { * @type { UninstallComponentType } * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 15 + * @since arkts {'1.1':'15', '1.2':'20'} + * @arkts 1.1&1.2 */ uninstallComponentType: UninstallComponentType; /** * Indicates priority of the rule. * - * @type { number } + * @type { int } * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 15 + * @since arkts {'1.1':'15', '1.2':'20'} + * @arkts 1.1&1.2 */ - priority: number; + priority: int; } /** @@ -257,6 +286,7 @@ declare namespace appControl { * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi * @since 20 + * @arkts 1.1&1.2 */ export interface DisposedRuleConfiguration { /** @@ -266,18 +296,20 @@ declare namespace appControl { * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi * @since 20 + * @arkts 1.1&1.2 */ appId: string; /** * Indicates the index of clone app. * - * @type { number } + * @type { int } * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi * @since 20 + * @arkts 1.1&1.2 */ - appIndex: number; + appIndex: int; /** * Indicates the rule for interception. @@ -286,6 +318,7 @@ declare namespace appControl { * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi * @since 20 + * @arkts 1.1&1.2 */ disposedRule: DisposedRule; } @@ -304,7 +337,8 @@ declare namespace appControl { * @throws { BusinessError } 17700005 - The specified app ID is empty string. * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function setDisposedStatus(appId: string, disposedWant: Want, callback: AsyncCallback): void; @@ -322,7 +356,8 @@ declare namespace appControl { * @throws { BusinessError } 17700005 - The specified app ID is empty string. * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function setDisposedStatus(appId: string, disposedWant: Want): Promise; @@ -339,7 +374,8 @@ declare namespace appControl { * @throws { BusinessError } 17700005 - The specified app ID is empty string. * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ function setDisposedStatusSync(appId: string, disposedWant: Want): void; @@ -356,7 +392,8 @@ declare namespace appControl { * @throws { BusinessError } 17700005 - The specified app ID is empty string. * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function getDisposedStatus(appId: string, callback: AsyncCallback): void; @@ -373,7 +410,8 @@ declare namespace appControl { * @throws { BusinessError } 17700005 - The specified app ID is empty string. * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function getDisposedStatus(appId: string): Promise; @@ -390,7 +428,8 @@ declare namespace appControl { * @throws { BusinessError } 17700005 - The specified app ID is empty string. * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ function getDisposedStatusSync(appId: string): Want; @@ -407,7 +446,8 @@ declare namespace appControl { * @throws { BusinessError } 17700005 - The specified app ID is empty string. * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function deleteDisposedStatus(appId: string, callback: AsyncCallback): void; @@ -424,7 +464,8 @@ declare namespace appControl { * @throws { BusinessError } 17700005 - The specified app ID is empty string. * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function deleteDisposedStatus(appId: string): Promise; @@ -447,7 +488,7 @@ declare namespace appControl { * * @permission ohos.permission.MANAGE_DISPOSED_APP_STATUS * @param { string } appId - Indicates the app ID of the application. - * @param { number } [appIndex] Indicates the index of clone app. + * @param { int } [appIndex] Indicates the index of clone app. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied. A non-system application is not allowed to call a system API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. @@ -456,9 +497,10 @@ declare namespace appControl { * @throws { BusinessError } 17700061 - AppIndex is not in the valid range. * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - function deleteDisposedStatusSync(appId: string, appIndex?: number): void; + function deleteDisposedStatusSync(appId: string, appIndex?: int): void; /** * Obtains the disposed rule of a specified bundle. @@ -480,7 +522,7 @@ declare namespace appControl { * * @permission ohos.permission.MANAGE_DISPOSED_APP_STATUS * @param { string } appId - Indicates the app ID of the application. - * @param { number } [appIndex] Indicates the index of clone app. + * @param { int } [appIndex] Indicates the index of clone app. * @returns { DisposedRule } Returns the disposed rule of a specified bundle. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied. A non-system application is not allowed to call a system API. @@ -490,9 +532,10 @@ declare namespace appControl { * @throws { BusinessError } 17700061 - AppIndex is not in the valid range. * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - function getDisposedRule(appId: string, appIndex?: number): DisposedRule; + function getDisposedRule(appId: string, appIndex?: int): DisposedRule; /** * Sets the disposed rule of a specified bundle. @@ -515,7 +558,7 @@ declare namespace appControl { * @permission ohos.permission.MANAGE_DISPOSED_APP_STATUS * @param { string } appId - Indicates the app ID of the application. * @param { DisposedRule } rule - Indicates the disposed rule of a specified bundle. - * @param { number } [appIndex] Indicates the index of clone app. + * @param { int } [appIndex] Indicates the index of clone app. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied. A non-system application is not allowed to call a system API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. @@ -524,9 +567,10 @@ declare namespace appControl { * @throws { BusinessError } 17700061 - AppIndex is not in the valid range. * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - function setDisposedRule(appId: string, rule: DisposedRule, appIndex?: number): void; + function setDisposedRule(appId: string, rule: DisposedRule, appIndex?: int): void; /** * Sets the uninstall disposed rule of a specified bundle. @@ -534,7 +578,7 @@ declare namespace appControl { * @permission ohos.permission.MANAGE_DISPOSED_APP_STATUS * @param { string } appIdentifier - Indicates the appIdentifier of the application. * @param { UninstallDisposedRule } rule - Indicates the uninstall disposed rule of a specified bundle. - * @param { number } [appIndex] Indicates the index of clone app. + * @param { int } [appIndex] Indicates the index of clone app. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied. A non-system application is not allowed to call a system API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. @@ -544,16 +588,17 @@ declare namespace appControl { * @throws { BusinessError } 17700075 - The specified bundleName of want is not the same with caller. * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 15 + * @since arkts {'1.1':'15', '1.2':'20'} + * @arkts 1.1&1.2 */ - function setUninstallDisposedRule(appIdentifier: string, rule: UninstallDisposedRule, appIndex?: number): void; + function setUninstallDisposedRule(appIdentifier: string, rule: UninstallDisposedRule, appIndex?: int): void; /** * Obtains the uninstall disposed rule of a specified bundle. * * @permission ohos.permission.GET_DISPOSED_APP_STATUS or ohos.permission.MANAGE_DISPOSED_APP_STATUS * @param { string } appIdentifier - Indicates the appIdentifier of the application. - * @param { number } [appIndex] Indicates the index of clone app. + * @param { int } [appIndex] Indicates the index of clone app. * @returns { UninstallDisposedRule } Returns the uninstall disposed rule of a specified bundle. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied. A non-system application is not allowed to call a system API. @@ -563,16 +608,17 @@ declare namespace appControl { * @throws { BusinessError } 17700074 - The specified appIdentifier is invalid. * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 15 + * @since arkts {'1.1':'15', '1.2':'20'} + * @arkts 1.1&1.2 */ - function getUninstallDisposedRule(appIdentifier: string, appIndex?: number): UninstallDisposedRule; + function getUninstallDisposedRule(appIdentifier: string, appIndex?: int): UninstallDisposedRule; /** * Delete the uninstall disposed rule of a specified bundle. * * @permission ohos.permission.MANAGE_DISPOSED_APP_STATUS * @param { string } appIdentifier - Indicates the appIdentifier of the application. - * @param { number } [appIndex] Indicates the index of clone app. + * @param { int } [appIndex] Indicates the index of clone app. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied. A non-system application is not allowed to call a system API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. @@ -581,9 +627,10 @@ declare namespace appControl { * @throws { BusinessError } 17700074 - The specified appIdentifier is invalid. * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi - * @since 15 + * @since arkts {'1.1':'15', '1.2':'20'} + * @arkts 1.1&1.2 */ - function deleteUninstallDisposedRule(appIdentifier: string, appIndex?: number): void; + function deleteUninstallDisposedRule(appIdentifier: string, appIndex?: int): void; /** * Batch set disposed rules for specified bundles. @@ -598,6 +645,7 @@ declare namespace appControl { * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi * @since 20 + * @arkts 1.1&1.2 */ function setDisposedRules(disposedRuleConfigurations: Array): void; } diff --git a/api/@ohos.bundle.bundleManager.d.ts b/api/@ohos.bundle.bundleManager.d.ts index 723ac8e787..e71d9d7bf2 100644 --- a/api/@ohos.bundle.bundleManager.d.ts +++ b/api/@ohos.bundle.bundleManager.d.ts @@ -22,12 +22,12 @@ import { AsyncCallback } from './@ohos.base'; import { Metadata as _Metadata } from './bundleManager/Metadata'; import { ElementName as _ElementName } from './bundleManager/ElementName'; import Want from './@ohos.app.ability.Want'; -/*** if arkts 1.1 */ -import type { ApplicationInfo as _ApplicationInfo, ModuleMetadata as _ModuleMetadata, - PreinstalledApplicationInfo as _PreinstalledApplicationInfo } from './bundleManager/ApplicationInfo'; import { PermissionDef as _PermissionDef } from './bundleManager/PermissionDef'; import { PluginBundleInfo as _PluginBundleInfo, PluginModuleInfo as _PluginModuleInfo} from './bundleManager/PluginBundleInfo'; import { SharedBundleInfo as _SharedBundleInfo } from './bundleManager/SharedBundleInfo'; +/*** if arkts 1.1 */ +import type { ApplicationInfo as _ApplicationInfo, ModuleMetadata as _ModuleMetadata, + PreinstalledApplicationInfo as _PreinstalledApplicationInfo } from './bundleManager/ApplicationInfo'; import type { RecoverableApplicationInfo as _RecoverableApplicationInfo } from './bundleManager/RecoverableApplicationInfo'; import * as _AbilityInfo from './bundleManager/AbilityInfo'; import * as _AppProvisionInfo from './bundleManager/AppProvisionInfo'; @@ -39,9 +39,12 @@ import * as _Skill from './bundleManager/Skill'; /*** if arkts 1.2 */ import { ApplicationInfo as _ApplicationInfo, ModuleMetadata as _ModuleMetadata, PreinstalledApplicationInfo as _PreinstalledApplicationInfo } from './bundleManager/ApplicationInfo'; +import { RecoverableApplicationInfo as _RecoverableApplicationInfo } from './bundleManager/RecoverableApplicationInfo'; import { AbilityInfo as _AbilityInfo, WindowSize as _WindowSize } from './bundleManager/AbilityInfo'; +import { AppProvisionInfo as _AppProvisionInfo, Validity as _Validity } from './bundleManager/AppProvisionInfo'; import { BundleInfo as _BundleInfo, UsedScene as _UsedScene, ReqPermissionDetail as _ReqPermissionDetail, - SignatureInfo as _SignatureInfo, AppCloneIdentity as _AppCloneIdentity } from './bundleManager/BundleInfo'; + SignatureInfo as _SignatureInfo, AppCloneIdentity as _AppCloneIdentity, + DynamicIconInfo as _DynamicIconInfo, BundleOptions as _BundleOptions} from './bundleManager/BundleInfo'; import { HapModuleInfo as _HapModuleInfo, PreloadItem as _PreloadItem, Dependency as _Dependency, RouterItem as _RouterItem, DataItem as _DataItem } from './bundleManager/HapModuleInfo'; import { ExtensionAbilityInfo as _ExtensionAbilityInfo } from './bundleManager/ExtensionAbilityInfo'; @@ -93,7 +96,7 @@ declare namespace bundleManager { * Used to query the enumeration value of bundleInfo. Multiple values can be passed in the form. * Multiple value input, such as GET_BUNDLE_INFO_DEFAULT | GET_BUNDLE_INFO_WITH_APPLICATION. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.BundleFramework.Core * @crossplatform * @atomicservice @@ -432,7 +435,7 @@ declare namespace bundleManager { * Used to query the enumeration value of applicationInfo. Multiple values can be passed in the form. * Multiple value input, such as GET_APPLICATION_INFO_DEFAULT | GET_APPLICATION_INFO_WITH_PERMISSION. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since arkts {'1.1':'9', '1.2':'20'} @@ -489,7 +492,7 @@ declare namespace bundleManager { /** * Used to query the enumeration value of abilityInfo. Multiple values can be passed in the form. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.BundleFramework.Core * @atomicservice * @since 20 @@ -638,7 +641,7 @@ declare namespace bundleManager { /** * Used to query the enumeration value of ExtensionAbilityInfo. Multiple values can be passed in the form. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since arkts {'1.1':'9', '1.2':'20'} @@ -703,7 +706,7 @@ declare namespace bundleManager { /** * This enumeration value is used to identify various types of extension ability * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.BundleFramework.Core * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} @@ -1007,7 +1010,7 @@ declare namespace bundleManager { /** * PermissionGrantState * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.BundleFramework.Core * @crossplatform * @atomicservice @@ -1082,7 +1085,7 @@ declare namespace bundleManager { /** * Support window mode * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.BundleFramework.Core * @crossplatform * @atomicservice @@ -1179,7 +1182,7 @@ declare namespace bundleManager { /** * Launch type * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.BundleFramework.Core * @crossplatform * @atomicservice @@ -1315,7 +1318,7 @@ declare namespace bundleManager { /** * Display orientation * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.BundleFramework.Core * @crossplatform * @atomicservice @@ -1674,7 +1677,7 @@ declare namespace bundleManager { /** * Indicates module type * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.BundleFramework.Core * @crossplatform * @atomicservice @@ -1763,7 +1766,7 @@ declare namespace bundleManager { /** * Indicates bundle type * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.BundleFramework.Core * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} @@ -1810,7 +1813,7 @@ declare namespace bundleManager { /** * Shared bundle compatible policy * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.BundleFramework.Core * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} @@ -1837,7 +1840,7 @@ declare namespace bundleManager { /** * This enumeration value is used to identify various types of JSON profile. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since arkts {'1.1':'11', '1.2':'20'} @@ -1858,7 +1861,7 @@ declare namespace bundleManager { /** * This enumeration value is used to identify the distribution type of application. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since arkts {'1.1':'12', '1.2':'20'} @@ -1941,7 +1944,7 @@ declare namespace bundleManager { /** * This enumeration value is used to identify various types of extension ability * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.BundleFramework.Core * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 @@ -1976,7 +1979,7 @@ declare namespace bundleManager { /** * This enumeration value is used to identify various flags of application * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since arkts {'1.1':'12', '1.2':'20'} @@ -2043,7 +2046,7 @@ declare namespace bundleManager { /** * Obtains own bundleInfo. * - * @param { number } bundleFlags {@link BundleFlag} - Indicates the flag used to specify information contained in the BundleInfo objects that will be returned. + * @param { int } bundleFlags {@link BundleFlag} - Indicates the flag used to specify information contained in the BundleInfo objects that will be returned. * @returns { Promise } The result of getting the bundle info. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. * @syscap SystemCapability.BundleManager.BundleFramework.Core @@ -2052,7 +2055,7 @@ declare namespace bundleManager { * @since 20 * @arkts 1.1&1.2 */ - function getBundleInfoForSelf(bundleFlags: number): Promise; + function getBundleInfoForSelf(bundleFlags: int): Promise; /** * Obtains own bundleInfo. @@ -2076,7 +2079,7 @@ declare namespace bundleManager { /** * Obtains own bundleInfo. * - * @param { number } bundleFlags {@link BundleFlag} - Indicates the flag used to specify information contained in the BundleInfo objects that will be returned. + * @param { int } bundleFlags {@link BundleFlag} - Indicates the flag used to specify information contained in the BundleInfo objects that will be returned. * @param { AsyncCallback } callback - The callback of getting bundle info result. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. * @syscap SystemCapability.BundleManager.BundleFramework.Core @@ -2085,7 +2088,7 @@ declare namespace bundleManager { * @since 20 * @arkts 1.1&1.2 */ - function getBundleInfoForSelf(bundleFlags: number, callback: AsyncCallback): void; + function getBundleInfoForSelf(bundleFlags: int, callback: AsyncCallback): void; /** * Obtains own bundleInfo. @@ -2109,7 +2112,7 @@ declare namespace bundleManager { /** * Obtains own bundleInfo. * - * @param { number } bundleFlags {@link BundleFlag} - Indicates the flag used to specify information contained in the BundleInfo objects that will be returned. + * @param { int } bundleFlags {@link BundleFlag} - Indicates the flag used to specify information contained in the BundleInfo objects that will be returned. * @returns { BundleInfo } The result of getting the bundle info. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. * @syscap SystemCapability.BundleManager.BundleFramework.Core @@ -2118,14 +2121,14 @@ declare namespace bundleManager { * @since 20 * @arkts 1.1&1.2 */ - function getBundleInfoForSelfSync(bundleFlags: number): BundleInfo; + function getBundleInfoForSelfSync(bundleFlags: int): BundleInfo; /** * Obtains bundleInfo based on bundleName, bundleFlags. The application requires to be a system application when requesting the permission of ohos.permission.GET_BUNDLE_INFO. * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO * @param { string } bundleName - Indicates the application bundle name to be queried. - * @param { number } bundleFlags {@link BundleFlag} - Indicates the flag used to specify information contained in the BundleInfo objects that will be returned. + * @param { int } bundleFlags {@link BundleFlag} - Indicates the flag used to specify information contained in the BundleInfo objects that will be returned. * @param { AsyncCallback } callback - The callback of getting bundle info result. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. @@ -2135,15 +2138,15 @@ declare namespace bundleManager { * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - function getBundleInfo(bundleName: string, bundleFlags: number, callback: AsyncCallback): void; + function getBundleInfo(bundleName: string, bundleFlags: int, callback: AsyncCallback): void; /** * Obtains bundleInfo based on bundleName, bundleFlags and userId. The application requires to be a system application when requesting the permission of ohos.permission.GET_BUNDLE_INFO. * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO * @param { string } bundleName - Indicates the application bundle name to be queried. - * @param { number } bundleFlags {@link BundleFlag} - Indicates the flag used to specify information contained in the BundleInfo objects that will be returned. - * @param { number } userId - Indicates the user ID or do not pass user ID. + * @param { int } bundleFlags {@link BundleFlag} - Indicates the flag used to specify information contained in the BundleInfo objects that will be returned. + * @param { int } userId - Indicates the user ID or do not pass user ID. * @param { AsyncCallback } callback - The callback of getting bundle info result. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. @@ -2155,15 +2158,15 @@ declare namespace bundleManager { * @arkts 1.1&1.2 */ function getBundleInfo(bundleName: string, - bundleFlags: number, userId: number, callback: AsyncCallback): void; + bundleFlags: int, userId: int, callback: AsyncCallback): void; /** * Obtains bundleInfo based on bundleName, bundleFlags and userId. The application requires to be a system application when requesting the permission of ohos.permission.GET_BUNDLE_INFO. * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO * @param { string } bundleName - Indicates the application bundle name to be queried. - * @param { number } bundleFlags {@link BundleFlag} - Indicates the flag used to specify information contained in the BundleInfo objects that will be returned. - * @param { number } userId - Indicates the user ID or do not pass user ID. + * @param { int } bundleFlags {@link BundleFlag} - Indicates the flag used to specify information contained in the BundleInfo objects that will be returned. + * @param { int } userId - Indicates the user ID or do not pass user ID. * @returns { Promise } The result of getting the bundle info. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. @@ -2174,14 +2177,14 @@ declare namespace bundleManager { * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - function getBundleInfo(bundleName: string, bundleFlags: number, userId?: number): Promise; + function getBundleInfo(bundleName: string, bundleFlags: int, userId?: int): Promise; /** * Obtains application info based on a given bundle name. * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO * @param { string } bundleName - Indicates the application bundle name to be queried. - * @param { number } appFlags {@link ApplicationFlag} - Indicates the flag used to specify information contained in the ApplicationInfo objects that will be returned. + * @param { int } appFlags {@link ApplicationFlag} - Indicates the flag used to specify information contained in the ApplicationInfo objects that will be returned. * @param { AsyncCallback } callback - The callback of getting application info result. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -2193,15 +2196,15 @@ declare namespace bundleManager { * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - function getApplicationInfo(bundleName: string, appFlags: number, callback: AsyncCallback): void; + function getApplicationInfo(bundleName: string, appFlags: int, callback: AsyncCallback): void; /** * Obtains application info based on a given bundle name. * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO * @param { string } bundleName - Indicates the application bundle name to be queried. - * @param { number } appFlags {@link ApplicationFlag} - Indicates the flag used to specify information contained in the ApplicationInfo objects that will be returned. - * @param { number } userId - Indicates the user ID or do not pass user ID. + * @param { int } appFlags {@link ApplicationFlag} - Indicates the flag used to specify information contained in the ApplicationInfo objects that will be returned. + * @param { int } userId - Indicates the user ID or do not pass user ID. * @param { AsyncCallback } callback - The callback of getting application info result. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -2215,15 +2218,15 @@ declare namespace bundleManager { * @arkts 1.1&1.2 */ function getApplicationInfo(bundleName: string, - appFlags: number, userId: number, callback: AsyncCallback): void; + appFlags: int, userId: int, callback: AsyncCallback): void; /** * Obtains application info based on a given bundle name. * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO * @param { string } bundleName - Indicates the application bundle name to be queried. - * @param { number } appFlags {@link ApplicationFlag} - Indicates the flag used to specify information contained in the ApplicationInfo objects that will be returned. - * @param { number } userId - Indicates the user ID or do not pass user ID. + * @param { int } appFlags {@link ApplicationFlag} - Indicates the flag used to specify information contained in the ApplicationInfo objects that will be returned. + * @param { int } userId - Indicates the user ID or do not pass user ID. * @returns { Promise } The result of getting the application info. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -2236,13 +2239,13 @@ declare namespace bundleManager { * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - function getApplicationInfo(bundleName: string, appFlags: number, userId?: number): Promise; + function getApplicationInfo(bundleName: string, appFlags: int, userId?: int): Promise; /** * Obtains BundleInfo of all bundles available in the system. * * @permission ohos.permission.GET_INSTALLED_BUNDLE_LIST - * @param { number } bundleFlags {@link BundleFlag} - Indicates the flag used to specify information contained in the BundleInfo that will be returned. + * @param { int } bundleFlags {@link BundleFlag} - Indicates the flag used to specify information contained in the BundleInfo that will be returned. * @param { AsyncCallback> } callback - The callback of getting a list of BundleInfo objects. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -2252,14 +2255,14 @@ declare namespace bundleManager { * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - function getAllBundleInfo(bundleFlags: number, callback: AsyncCallback>): void; + function getAllBundleInfo(bundleFlags: int, callback: AsyncCallback>): void; /** * Obtains BundleInfo of all bundles available in the system. * * @permission ohos.permission.GET_INSTALLED_BUNDLE_LIST - * @param { number } bundleFlags {@link BundleFlag} - Indicates the flag used to specify information contained in the BundleInfo that will be returned. - * @param { number } userId - Indicates the user id. + * @param { int } bundleFlags {@link BundleFlag} - Indicates the flag used to specify information contained in the BundleInfo that will be returned. + * @param { int } userId - Indicates the user id. * @param { AsyncCallback> } callback - The callback of getting a list of BundleInfo objects. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -2270,14 +2273,14 @@ declare namespace bundleManager { * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - function getAllBundleInfo(bundleFlags: number, userId: number, callback: AsyncCallback>): void; + function getAllBundleInfo(bundleFlags: int, userId: int, callback: AsyncCallback>): void; /** * Obtains BundleInfo of all bundles available in the system. * * @permission ohos.permission.GET_INSTALLED_BUNDLE_LIST - * @param { number } bundleFlags {@link BundleFlag} - Indicates the flag used to specify information contained in the BundleInfo that will be returned. - * @param { number } userId - Indicates the user id. + * @param { int } bundleFlags {@link BundleFlag} - Indicates the flag used to specify information contained in the BundleInfo that will be returned. + * @param { int } userId - Indicates the user id. * @returns { Promise> } Returns a list of BundleInfo objects. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -2288,13 +2291,13 @@ declare namespace bundleManager { * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - function getAllBundleInfo(bundleFlags: number, userId?: number): Promise>; + function getAllBundleInfo(bundleFlags: int, userId?: int): Promise>; /** * Obtains information about all installed applications of a specified user. * * @permission ohos.permission.GET_INSTALLED_BUNDLE_LIST - * @param { number } appFlags {@link ApplicationFlag} - Indicates the flag used to specify information contained in the ApplicationInfo objects that will be returned. + * @param { int } appFlags {@link ApplicationFlag} - Indicates the flag used to specify information contained in the ApplicationInfo objects that will be returned. * @param { AsyncCallback> } callback - The callback of getting a list of ApplicationInfo objects. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -2304,14 +2307,14 @@ declare namespace bundleManager { * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - function getAllApplicationInfo(appFlags: number, callback: AsyncCallback>): void; + function getAllApplicationInfo(appFlags: int, callback: AsyncCallback>): void; /** * Obtains information about all installed applications of a specified user. * * @permission ohos.permission.GET_INSTALLED_BUNDLE_LIST - * @param { number } appFlags {@link ApplicationFlag} - Indicates the flag used to specify information contained in the ApplicationInfo objects that will be returned. - * @param { number } userId - Indicates the user ID or do not pass user ID. + * @param { int } appFlags {@link ApplicationFlag} - Indicates the flag used to specify information contained in the ApplicationInfo objects that will be returned. + * @param { int } userId - Indicates the user ID or do not pass user ID. * @param { AsyncCallback> } callback - The callback of getting a list of ApplicationInfo objects. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -2322,15 +2325,15 @@ declare namespace bundleManager { * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - function getAllApplicationInfo(appFlags: number, - userId: number, callback: AsyncCallback>): void; + function getAllApplicationInfo(appFlags: int, + userId: int, callback: AsyncCallback>): void; /** * Obtains information about all installed applications of a specified user. * * @permission ohos.permission.GET_INSTALLED_BUNDLE_LIST - * @param { number } appFlags {@link ApplicationFlag} - Indicates the flag used to specify information contained in the ApplicationInfo objects that will be returned. - * @param { number } userId - Indicates the user ID or do not pass user ID. + * @param { int } appFlags {@link ApplicationFlag} - Indicates the flag used to specify information contained in the ApplicationInfo objects that will be returned. + * @param { int } userId - Indicates the user ID or do not pass user ID. * @returns { Promise> } Returns a list of ApplicationInfo objects. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -2341,14 +2344,14 @@ declare namespace bundleManager { * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - function getAllApplicationInfo(appFlags: number, userId?: number): Promise>; + function getAllApplicationInfo(appFlags: int, userId?: int): Promise>; /** * Query the AbilityInfo by the given Want. * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO * @param { Want } want - Indicates the Want containing the application bundle name to be queried. - * @param { number } abilityFlags {@link AbilityFlag} - Indicates the flag used to specify information contained in the AbilityInfo objects that will be returned. + * @param { int } abilityFlags {@link AbilityFlag} - Indicates the flag used to specify information contained in the AbilityInfo objects that will be returned. * @param { AsyncCallback> } callback - The callback of querying ability info result. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -2363,15 +2366,15 @@ declare namespace bundleManager { * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - function queryAbilityInfo(want: Want, abilityFlags: number, callback: AsyncCallback>): void; + function queryAbilityInfo(want: Want, abilityFlags: int, callback: AsyncCallback>): void; /** * Query the AbilityInfo by the given Want. * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO * @param { Want } want - Indicates the Want containing the application bundle name to be queried. - * @param { number } abilityFlags {@link AbilityFlag} - Indicates the flag used to specify information contained in the AbilityInfo objects that will be returned. - * @param { number } userId - userId Indicates the user ID. + * @param { int } abilityFlags {@link AbilityFlag} - Indicates the flag used to specify information contained in the AbilityInfo objects that will be returned. + * @param { int } userId - userId Indicates the user ID. * @param { AsyncCallback> } callback - The callback of querying ability info result. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -2388,15 +2391,15 @@ declare namespace bundleManager { * @arkts 1.1&1.2 */ function queryAbilityInfo(want: Want, - abilityFlags: number, userId: number, callback: AsyncCallback>): void; + abilityFlags: int, userId: int, callback: AsyncCallback>): void; /** * Query the AbilityInfo by the given Want. * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO * @param { Want } want - Indicates the Want containing the application bundle name to be queried. - * @param { number } abilityFlags {@link AbilityFlag} - Indicates the flag used to specify information contained in the AbilityInfo objects that will be returned. - * @param { number } userId - userId Indicates the user ID. + * @param { int } abilityFlags {@link AbilityFlag} - Indicates the flag used to specify information contained in the AbilityInfo objects that will be returned. + * @param { int } userId - userId Indicates the user ID. * @returns { Promise> } Returns a list of AbilityInfo objects. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -2412,15 +2415,15 @@ declare namespace bundleManager { * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - function queryAbilityInfo(want: Want, abilityFlags: number, userId?: number): Promise>; + function queryAbilityInfo(want: Want, abilityFlags: int, userId?: int): Promise>; /** * Query the AbilityInfo by the given Want Array. * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO * @param { Array } wants - Indicates the Want Array containing the application bundle name to be queried. - * @param { number } abilityFlags {@link AbilityFlag} - Indicates the flag used to specify information contained in the AbilityInfo objects that will be returned. - * @param { number } [userId] - userId Indicates the user ID. + * @param { int } abilityFlags {@link AbilityFlag} - Indicates the flag used to specify information contained in the AbilityInfo objects that will be returned. + * @param { int } [userId] - userId Indicates the user ID. * @returns { Promise> } Returns a list of AbilityInfo objects. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -2436,15 +2439,15 @@ declare namespace bundleManager { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - function queryAbilityInfo(wants: Array, abilityFlags: number, userId?: number): Promise>; + function queryAbilityInfo(wants: Array, abilityFlags: int, userId?: int): Promise>; /** * Query the AbilityInfo by the given Want. * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO * @param { Want } want - Indicates the Want containing the application bundle name to be queried. - * @param { number } abilityFlags {@link AbilityFlag} - Indicates the flag used to specify information contained in the AbilityInfo objects that will be returned. - * @param { number } userId - userId Indicates the user ID. + * @param { int } abilityFlags {@link AbilityFlag} - Indicates the flag used to specify information contained in the AbilityInfo objects that will be returned. + * @param { int } userId - userId Indicates the user ID. * @returns { Array } Returns a list of AbilityInfo objects. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -2460,22 +2463,23 @@ declare namespace bundleManager { * @since arkts {'1.1':'10', '1.2':'20'} * @arkts 1.1&1.2 */ - function queryAbilityInfoSync(want: Want, abilityFlags: number, userId?: number): Array; - + function queryAbilityInfoSync(want: Want, abilityFlags: int, userId?: int): Array; + /** * Get AbilityInfo by the given uri. * * @permission ohos.permission.GET_ABILITY_INFO * @param { string } uri - Indicates the uri used for matching ability. The value is the same as that of the uris field under skills in the module.json5 file. - * @param { number } abilityFlags {@link AbilityFlag} - Indicates the flag used to specify information contained in the AbilityInfo objects that will be returned. + * @param { int } abilityFlags {@link AbilityFlag} - Indicates the flag used to specify information contained in the AbilityInfo objects that will be returned. * @returns { Promise> } Returns a list of AbilityInfo objects. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 17700003 - The ability is not found. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @atomicservice * @since 20 + * @arkts 1.1&1.2 */ - function getAbilityInfo(uri: string, abilityFlags: number): Promise>; + function getAbilityInfo(uri: string, abilityFlags: int): Promise>; /** * Query extension info of by utilizing a Want. @@ -2483,7 +2487,7 @@ declare namespace bundleManager { * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO * @param { Want } want - Indicates the Want containing the application bundle name to be queried. * @param { ExtensionAbilityType } extensionAbilityType - Indicates ExtensionAbilityType. - * @param { number } extensionAbilityFlags {@link ExtensionAbilityFlag} - Indicates the flag used to specify information contained in the + * @param { int } extensionAbilityFlags {@link ExtensionAbilityFlag} - Indicates the flag used to specify information contained in the * ExtensionAbilityInfo objects that will be returned. * @param { AsyncCallback> } callback - The callback of querying extension ability info result. * @throws { BusinessError } 201 - Permission denied. @@ -2499,7 +2503,7 @@ declare namespace bundleManager { * @arkts 1.1&1.2 */ function queryExtensionAbilityInfo(want: Want, extensionAbilityType: ExtensionAbilityType, - extensionAbilityFlags: number, callback: AsyncCallback>): void; + extensionAbilityFlags: int, callback: AsyncCallback>): void; /** * Query extension info of by utilizing a Want. @@ -2507,9 +2511,9 @@ declare namespace bundleManager { * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO * @param { Want } want - Indicates the Want containing the application bundle name to be queried. * @param { ExtensionAbilityType } extensionAbilityType - Indicates ExtensionAbilityType. - * @param { number } extensionAbilityFlags {@link ExtensionAbilityFlag} - Indicates the flag used to specify information contained in the + * @param { int } extensionAbilityFlags {@link ExtensionAbilityFlag} - Indicates the flag used to specify information contained in the * ExtensionAbilityInfo objects that will be returned. - * @param { number } userId - Indicates the user ID. + * @param { int } userId - Indicates the user ID. * @param { AsyncCallback> } callback - The callback of querying extension ability info result. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -2525,7 +2529,7 @@ declare namespace bundleManager { * @arkts 1.1&1.2 */ function queryExtensionAbilityInfo(want: Want, extensionAbilityType: ExtensionAbilityType, - extensionAbilityFlags: number, userId: number, callback: AsyncCallback>): void; + extensionAbilityFlags: int, userId: int, callback: AsyncCallback>): void; /** * Query the ExtensionAbilityInfo by the given Want. @@ -2533,9 +2537,9 @@ declare namespace bundleManager { * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO * @param { Want } want - Indicates the Want containing the application bundle name to be queried. * @param { ExtensionAbilityType } extensionAbilityType - Indicates ExtensionAbilityType. - * @param { number } extensionAbilityFlags {@link ExtensionAbilityFlag} - Indicates the flag used to specify information contained in the + * @param { int } extensionAbilityFlags {@link ExtensionAbilityFlag} - Indicates the flag used to specify information contained in the * ExtensionAbilityInfo objects that will be returned. - * @param { number } userId - Indicates the user ID. + * @param { int } userId - Indicates the user ID. * @returns { Promise> } Returns a list of ExtensionAbilityInfo objects. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -2551,7 +2555,7 @@ declare namespace bundleManager { * @arkts 1.1&1.2 */ function queryExtensionAbilityInfo(want: Want, extensionAbilityType: ExtensionAbilityType, - extensionAbilityFlags: number, userId?: number): Promise>; + extensionAbilityFlags: int, userId?: int): Promise>; /** * Query the ExtensionAbilityInfo by the given Want. @@ -2559,9 +2563,9 @@ declare namespace bundleManager { * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO * @param { Want } want - Indicates the Want containing the application bundle name to be queried. * @param { ExtensionAbilityType } extensionAbilityType - Indicates ExtensionAbilityType. - * @param { number } extensionAbilityFlags {@link ExtensionAbilityFlag} - Indicates the flag used to specify information contained in the + * @param { int } extensionAbilityFlags {@link ExtensionAbilityFlag} - Indicates the flag used to specify information contained in the * ExtensionAbilityInfo objects that will be returned. - * @param { number } userId - Indicates the user ID. + * @param { int } userId - Indicates the user ID. * @returns { Array } Returns a list of ExtensionAbilityInfo objects. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -2577,7 +2581,7 @@ declare namespace bundleManager { * @arkts 1.1&1.2 */ function queryExtensionAbilityInfoSync(want: Want, extensionAbilityType: ExtensionAbilityType, - extensionAbilityFlags: number, userId?: number): Array; + extensionAbilityFlags: int, userId?: int): Array; /** * Query the ExtensionAbilityInfo by the given Want. @@ -2585,9 +2589,9 @@ declare namespace bundleManager { * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO * @param { Want } want - Indicates the Want containing the application bundle name to be queried. * @param { string } extensionAbilityType - Indicates extensionAbilityType. - * @param { number } extensionAbilityFlags {@link ExtensionAbilityFlag} - Indicates the flag used to specify information contained in the + * @param { int } extensionAbilityFlags {@link ExtensionAbilityFlag} - Indicates the flag used to specify information contained in the * ExtensionAbilityInfo objects that will be returned. - * @param { number } userId - Indicates the user ID. + * @param { int } userId - Indicates the user ID. * @returns { Array } Returns a list of ExtensionAbilityInfo objects. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -2603,16 +2607,16 @@ declare namespace bundleManager { * @arkts 1.1&1.2 */ function queryExtensionAbilityInfoSync(want: Want, extensionAbilityType: string, - extensionAbilityFlags: number, userId?: number): Array; + extensionAbilityFlags: int, userId?: int): Array; /** * Query the ExtensionAbilityInfo by extension ability type. * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO * @param { string } extensionAbilityType - Indicates ExtensionAbilityType. - * @param { number } extensionAbilityFlags {@link ExtensionAbilityFlag} - Indicates the flag used to specify information contained in the + * @param { int } extensionAbilityFlags {@link ExtensionAbilityFlag} - Indicates the flag used to specify information contained in the * ExtensionAbilityInfo objects that will be returned. - * @param { number } userId - Indicates the user ID. + * @param { int } userId - Indicates the user ID. * @returns { Array } Returns a list of ExtensionAbilityInfo objects. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -2625,14 +2629,14 @@ declare namespace bundleManager { * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - function queryExtensionAbilityInfoSync(extensionAbilityType: string, extensionAbilityFlags: number, - userId?: number): Array; + function queryExtensionAbilityInfoSync(extensionAbilityType: string, extensionAbilityFlags: int, + userId?: int): Array; /** * Obtains bundle name by the given uid. The application requires to be a system application when requesting the permission of ohos.permission.GET_BUNDLE_INFO. * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO - * @param { number } uid - Indicates the UID of an application. + * @param { int } uid - Indicates the UID of an application. * @param { AsyncCallback } callback - The callback of getting bundle name. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. @@ -2641,13 +2645,13 @@ declare namespace bundleManager { * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - function getBundleNameByUid(uid: number, callback: AsyncCallback): void; + function getBundleNameByUid(uid: int, callback: AsyncCallback): void; /** * Obtains bundle name by the given uid. The application requires to be a system application when requesting the permission of ohos.permission.GET_BUNDLE_INFO. * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO - * @param { number } uid - Indicates the UID of an application. + * @param { int } uid - Indicates the UID of an application. * @returns { Promise } Returns the bundle name. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. @@ -2656,13 +2660,13 @@ declare namespace bundleManager { * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - function getBundleNameByUid(uid: number): Promise; + function getBundleNameByUid(uid: int): Promise; /** * Obtains bundle name by the given uid. The application requires to be a system application when requesting the permission of ohos.permission.GET_BUNDLE_INFO. * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO - * @param { number } uid - Indicates the UID of an application. + * @param { int } uid - Indicates the UID of an application. * @returns { string } Returns the bundle name. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. @@ -2671,7 +2675,7 @@ declare namespace bundleManager { * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - function getBundleNameByUidSync(uid: number): string; + function getBundleNameByUidSync(uid: int): string; /** * Obtains information about an application bundle contained in an ohos Ability Package (HAP). @@ -2679,7 +2683,7 @@ declare namespace bundleManager { * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED * @param { string } hapFilePath - Indicates the path storing the HAP. * The path should be the relative path to the data directory of the current application. - * @param { number } bundleFlags {@link BundleFlag} - Indicates the flag used to specify information contained in the BundleInfo object to be returned. + * @param { int } bundleFlags {@link BundleFlag} - Indicates the flag used to specify information contained in the BundleInfo object to be returned. * @param { AsyncCallback } callback - The callback of getting bundle archive info result. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -2687,9 +2691,10 @@ declare namespace bundleManager { * @throws { BusinessError } 17700022 - The hapFilePath is invalid. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - function getBundleArchiveInfo(hapFilePath: string, bundleFlags: number, callback: AsyncCallback): void; + function getBundleArchiveInfo(hapFilePath: string, bundleFlags: int, callback: AsyncCallback): void; /** * Obtains information about an application bundle contained in an ohos Ability Package (HAP). @@ -2697,7 +2702,7 @@ declare namespace bundleManager { * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED * @param { string } hapFilePath - Indicates the path storing the HAP. * The path should be the relative path to the data directory of the current application. - * @param { number } bundleFlags {@link BundleFlag} - Indicates the flag used to specify information contained in the BundleInfo object to be returned. + * @param { int } bundleFlags {@link BundleFlag} - Indicates the flag used to specify information contained in the BundleInfo object to be returned. * @returns { Promise } Returns the BundleInfo object. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -2705,9 +2710,10 @@ declare namespace bundleManager { * @throws { BusinessError } 17700022 - The hapFilePath is invalid. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - function getBundleArchiveInfo(hapFilePath: string, bundleFlags: number): Promise; + function getBundleArchiveInfo(hapFilePath: string, bundleFlags: int): Promise; /** * Obtains information about an application bundle contained in an ohos Ability Package (HAP). @@ -2715,7 +2721,7 @@ declare namespace bundleManager { * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED * @param { string } hapFilePath - Indicates the path storing the HAP. * The path should be the relative path to the data directory of the current application. - * @param { number } bundleFlags {@link BundleFlag} - Indicates the flag used to specify information contained in the BundleInfo object to be returned. + * @param { int } bundleFlags {@link BundleFlag} - Indicates the flag used to specify information contained in the BundleInfo object to be returned. * @returns { BundleInfo } Returns the BundleInfo object. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -2723,9 +2729,10 @@ declare namespace bundleManager { * @throws { BusinessError } 17700022 - The hapFilePath is invalid. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ - function getBundleArchiveInfoSync(hapFilePath: string, bundleFlags: number): BundleInfo; + function getBundleArchiveInfoSync(hapFilePath: string, bundleFlags: int): BundleInfo; /** * Clears cache data of a specified application. @@ -2740,7 +2747,8 @@ declare namespace bundleManager { * @throws { BusinessError } 17700030 - The specified bundle does not support clearing of cache files. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function cleanBundleCacheFiles(bundleName: string, callback: AsyncCallback): void; @@ -2757,7 +2765,8 @@ declare namespace bundleManager { * @throws { BusinessError } 17700030 - The specified bundle does not support clearing of cache files. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function cleanBundleCacheFiles(bundleName: string): Promise; @@ -2766,7 +2775,7 @@ declare namespace bundleManager { * * @permission ohos.permission.REMOVE_CACHE_FILES * @param { string } bundleName - Indicates the bundle name of the application whose cache data is to be cleaned. - * @param { number } appIndex - Indicates the index of clone app. + * @param { int } appIndex - Indicates the index of clone app. * @returns { Promise } Clean bundle cache files result * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -2776,22 +2785,24 @@ declare namespace bundleManager { * @throws { BusinessError } 17700061 - AppIndex not in valid range. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 15 + * @since arkts {'1.1':'15', '1.2':'20'} + * @arkts 1.1&1.2 */ - function cleanBundleCacheFiles(bundleName: string, appIndex: number): Promise; + function cleanBundleCacheFiles(bundleName: string, appIndex: int): Promise; /** * Get the all bundle cache size of the current user. * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED - * @returns { Promise } Returns all bundle cache size. + * @returns { Promise } Returns all bundle cache size. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 15 + * @since arkts {'1.1':'15', '1.2':'20'} + * @arkts 1.1&1.2 */ - function getAllBundleCacheSize(): Promise; + function getAllBundleCacheSize(): Promise; /** * Clean all bundle cache files of the current user, does not include the currently running program. @@ -2802,7 +2813,8 @@ declare namespace bundleManager { * @throws { BusinessError } 202 - Permission denied, non-system app called system api. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 15 + * @since arkts {'1.1':'15', '1.2':'20'} + * @arkts 1.1&1.2 */ function cleanAllBundleCache(): Promise; @@ -2811,7 +2823,7 @@ declare namespace bundleManager { * * @permission ohos.permission.CHANGE_ABILITY_ENABLED_STATE * @param { string } bundleName - Indicates the bundle name of the application. - * @param { number } appIndex - Indicates the index of clone app. + * @param { int } appIndex - Indicates the index of clone app. * @param { boolean } isEnabled - The value true means to enable it, and the value false means to disable it. * @returns { Promise } set app enabled result. * @throws { BusinessError } 201 - Permission denied. @@ -2824,7 +2836,7 @@ declare namespace bundleManager { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - function setApplicationEnabled(bundleName: string, appIndex: number, isEnabled: boolean): Promise; + function setApplicationEnabled(bundleName: string, appIndex: int, isEnabled: boolean): Promise; /** * Sets whether to enable a specified application. @@ -2884,7 +2896,7 @@ declare namespace bundleManager { * * @permission ohos.permission.CHANGE_ABILITY_ENABLED_STATE * @param { AbilityInfo } info - Indicates information about the ability to set. - * @param { number } appIndex - Indicates the index of clone app. + * @param { int } appIndex - Indicates the index of clone app. * @param { boolean } isEnabled - The value true means to enable it, and the value false means to disable it. * @returns { Promise } set ability enabled result. * @throws { BusinessError } 201 - Permission denied. @@ -2898,7 +2910,7 @@ declare namespace bundleManager { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - function setAbilityEnabled(info: AbilityInfo, appIndex: number, isEnabled: boolean): Promise; + function setAbilityEnabled(info: AbilityInfo, appIndex: int, isEnabled: boolean): Promise; /** * Sets whether to enable a specified ability. @@ -2960,7 +2972,7 @@ declare namespace bundleManager { * Checks whether a specified application is enabled. * * @param { string } bundleName - Indicates the bundle name of the application. - * @param { number } appIndex - Indicates the index of clone app. + * @param { int } appIndex - Indicates the index of clone app. * @returns { Promise } Returns true if the application is enabled; returns false otherwise. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. @@ -2971,7 +2983,7 @@ declare namespace bundleManager { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - function isApplicationEnabled(bundleName: string, appIndex: number): Promise; + function isApplicationEnabled(bundleName: string, appIndex: int): Promise; /** * Checks whether a specified application is enabled. @@ -3022,7 +3034,7 @@ declare namespace bundleManager { * Checks whether a specified ability is enabled. * * @param { AbilityInfo } info - Indicates information about the ability to check. - * @param { number } appIndex - Indicates the index of clone app. + * @param { int } appIndex - Indicates the index of clone app. * @returns { Promise } Returns true if the ability is enabled; returns false otherwise. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. @@ -3034,7 +3046,7 @@ declare namespace bundleManager { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - function isAbilityEnabled(info: AbilityInfo, appIndex: number): Promise; + function isAbilityEnabled(info: AbilityInfo, appIndex: int): Promise; /** * Checks whether a specified ability is enabled. @@ -3091,7 +3103,7 @@ declare namespace bundleManager { * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED * @param { string } bundleName - Indicates the bundle name of the application. - * @param { number } userId - Indicates the user ID or do not pass user ID. + * @param { int } userId - Indicates the user ID or do not pass user ID. * @param { AsyncCallback } callback - The callback for starting the application's main ability. * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.GET_BUNDLE_INFO_PRIVILEGED'. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -3104,7 +3116,7 @@ declare namespace bundleManager { * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - function getLaunchWantForBundle(bundleName: string, userId: number, callback: AsyncCallback): void; + function getLaunchWantForBundle(bundleName: string, userId: int, callback: AsyncCallback): void; /** * Obtains the Want for starting the main ability of an application based on the @@ -3133,7 +3145,7 @@ declare namespace bundleManager { * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED * @param { string } bundleName - Indicates the bundle name of the application. - * @param { number } userId - Indicates the user ID or do not pass user ID. + * @param { int } userId - Indicates the user ID or do not pass user ID. * @returns { Promise } the Want for starting the application's main ability. * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.GET_BUNDLE_INFO_PRIVILEGED'. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -3146,7 +3158,7 @@ declare namespace bundleManager { * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - function getLaunchWantForBundle(bundleName: string, userId?: number): Promise; + function getLaunchWantForBundle(bundleName: string, userId?: int): Promise; /** * Obtains the Want for starting the main ability of an application based on the @@ -3155,7 +3167,7 @@ declare namespace bundleManager { * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED * @param { string } bundleName - Indicates the bundle name of the application. - * @param { number } userId - Indicates the user ID or do not pass user ID. + * @param { int } userId - Indicates the user ID or do not pass user ID. * @returns { Want } the Want for starting the application's main ability. * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.GET_BUNDLE_INFO_PRIVILEGED'. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -3168,7 +3180,7 @@ declare namespace bundleManager { * @since arkts {'1.1':'10', '1.2':'20'} * @arkts 1.1&1.2 */ - function getLaunchWantForBundleSync(bundleName: string, userId?: number): Want; + function getLaunchWantForBundleSync(bundleName: string, userId?: int): Want; /** * Obtains the Want for starting the main ability of own application. @@ -3179,7 +3191,8 @@ declare namespace bundleManager { * @throws { BusinessError } 17700072 - The launch want is not found. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @atomicservice - * @since 13 + * @since arkts {'1.1':'13', '1.2':'20'} + * @arkts 1.1&1.2 */ function getLaunchWant(): Want; @@ -3212,7 +3225,8 @@ declare namespace bundleManager { * @throws { BusinessError } 17700029 - The specified ability is disabled. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ function getProfileByAbility(moduleName: string, abilityName: string, metadataName: string, callback: AsyncCallback>): void; @@ -3245,7 +3259,8 @@ declare namespace bundleManager { * @throws { BusinessError } 17700029 - The specified ability is disabled. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ function getProfileByAbility(moduleName: string, abilityName: string, metadataName?: string): Promise>; @@ -3278,7 +3293,8 @@ declare namespace bundleManager { * @throws { BusinessError } 17700029 - The specified ability is disabled. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ function getProfileByAbilitySync(moduleName: string, abilityName: string, metadataName?: string): Array; @@ -3309,7 +3325,8 @@ declare namespace bundleManager { * @throws { BusinessError } 17700024 - Failed to get the profile because there is no profile in the HAP. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ function getProfileByExtensionAbility(moduleName: string, extensionAbilityName: string, metadataName: string, callback: AsyncCallback>): void; @@ -3340,7 +3357,8 @@ declare namespace bundleManager { * @throws { BusinessError } 17700024 - Failed to get the profile because there is no profile in the HAP. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ function getProfileByExtensionAbility(moduleName: string, extensionAbilityName: string, metadataName?: string): Promise>; @@ -3371,7 +3389,8 @@ declare namespace bundleManager { * @throws { BusinessError } 17700024 - Failed to get the profile because there is no profile in the HAP. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ function getProfileByExtensionAbilitySync(moduleName: string, extensionAbilityName: string, metadataName?: string): Array; @@ -3387,7 +3406,8 @@ declare namespace bundleManager { * @throws { BusinessError } 17700006 - The specified permission is not found. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function getPermissionDef(permissionName: string, callback: AsyncCallback): void; @@ -3403,7 +3423,8 @@ declare namespace bundleManager { * @throws { BusinessError } 17700006 - The specified permission is not found. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function getPermissionDef(permissionName: string): Promise; @@ -3419,7 +3440,8 @@ declare namespace bundleManager { * @throws { BusinessError } 17700006 - The specified permission is not found. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ function getPermissionDefSync(permissionName: string): PermissionDef; @@ -3500,8 +3522,8 @@ declare namespace bundleManager { * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO * @param { string } bundleName - Indicates the application bundle name to be queried. - * @param { number } applicationFlags - Indicates the flag used to specify information contained in the ApplicationInfo object that will be returned. - * @param { number } userId - Indicates the user ID or do not pass user ID. + * @param { int } applicationFlags - Indicates the flag used to specify information contained in the ApplicationInfo object that will be returned. + * @param { int } userId - Indicates the user ID or do not pass user ID. * @returns { ApplicationInfo } - Returns the ApplicationInfo object. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -3514,14 +3536,14 @@ declare namespace bundleManager { * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - function getApplicationInfoSync(bundleName: string, applicationFlags: number, userId: number): ApplicationInfo; + function getApplicationInfoSync(bundleName: string, applicationFlags: int, userId: int): ApplicationInfo; /** * Obtains applicationInfo based on a given bundleName and bundleFlags. * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO * @param { string } bundleName - Indicates the application bundle name to be queried. - * @param { number } applicationFlags - Indicates the flag used to specify information contained in the ApplicationInfo object that will be returned. + * @param { int } applicationFlags - Indicates the flag used to specify information contained in the ApplicationInfo object that will be returned. * @returns { ApplicationInfo } - Returns the ApplicationInfo object. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -3533,15 +3555,15 @@ declare namespace bundleManager { * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - function getApplicationInfoSync(bundleName: string, applicationFlags: number): ApplicationInfo; + function getApplicationInfoSync(bundleName: string, applicationFlags: int): ApplicationInfo; /** * Obtains bundleInfo based on bundleName, bundleFlags and userId. The application requires to be a system application when requesting the permission of ohos.permission.GET_BUNDLE_INFO. * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO * @param { string } bundleName - Indicates the application bundle name to be queried. - * @param { number } bundleFlags {@link BundleFlag} - Indicates the flag used to specify information contained in the BundleInfo object that will be returned. - * @param { number } userId - Indicates the user ID or do not pass user ID. + * @param { int } bundleFlags {@link BundleFlag} - Indicates the flag used to specify information contained in the BundleInfo object that will be returned. + * @param { int } userId - Indicates the user ID or do not pass user ID. * @returns { BundleInfo } - Returns the BundleInfo object. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. @@ -3552,14 +3574,14 @@ declare namespace bundleManager { * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - function getBundleInfoSync(bundleName: string, bundleFlags: number, userId: number): BundleInfo; + function getBundleInfoSync(bundleName: string, bundleFlags: int, userId: int): BundleInfo; /** * Obtains bundleInfo based on bundleName, bundleFlags. The application requires to be a system application when requesting the permission of ohos.permission.GET_BUNDLE_INFO. * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO * @param { string } bundleName - Indicates the application bundle name to be queried. - * @param { number } bundleFlags {@link BundleFlag} - Indicates the flag used to specify information contained in the BundleInfo object that will be returned. + * @param { int } bundleFlags {@link BundleFlag} - Indicates the flag used to specify information contained in the BundleInfo object that will be returned. * @returns { BundleInfo } - Returns the BundleInfo object. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. @@ -3569,7 +3591,7 @@ declare namespace bundleManager { * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - function getBundleInfoSync(bundleName: string, bundleFlags: number): BundleInfo; + function getBundleInfoSync(bundleName: string, bundleFlags: int): BundleInfo; /** * Obtains SharedBundleInfo of all shared bundle available in the system. @@ -3580,7 +3602,8 @@ declare namespace bundleManager { * @throws { BusinessError } 202 - Permission denied, non-system app called system api. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ function getAllSharedBundleInfo(callback: AsyncCallback>): void; @@ -3593,7 +3616,8 @@ declare namespace bundleManager { * @throws { BusinessError } 202 - Permission denied, non-system app called system api. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ function getAllSharedBundleInfo(): Promise>; @@ -3611,7 +3635,8 @@ declare namespace bundleManager { * @throws { BusinessError } 17700002 - The specified moduleName is not found. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ function getSharedBundleInfo(bundleName: string, moduleName: string, callback: AsyncCallback>): void; @@ -3629,7 +3654,8 @@ declare namespace bundleManager { * @throws { BusinessError } 17700002 - The specified moduleName is not found. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ function getSharedBundleInfo(bundleName: string, moduleName: string): Promise>; @@ -3646,7 +3672,8 @@ declare namespace bundleManager { * @throws { BusinessError } 17700001 - The specified bundleName is not found. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ function getAppProvisionInfo(bundleName: string, callback: AsyncCallback): void; @@ -3655,7 +3682,7 @@ declare namespace bundleManager { * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED * @param { string } bundleName - Indicates the bundle name of the application to which the ability belongs. - * @param { number } userId - Indicates the user ID or do not pass user ID. + * @param { int } userId - Indicates the user ID or do not pass user ID. * @param { AsyncCallback } callback - Indicates the callback of getting AppProvisionInfo result. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -3665,16 +3692,17 @@ declare namespace bundleManager { * @throws { BusinessError } 17700004 - The specified user ID is not found. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ - function getAppProvisionInfo(bundleName: string, userId: number, callback: AsyncCallback): void; + function getAppProvisionInfo(bundleName: string, userId: int, callback: AsyncCallback): void; /** * Obtains the profile file information of a specified bundle. * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED * @param { string } bundleName - Indicates the bundle name of the application to which the ability belongs. - * @param { number } userId - Indicates the user ID or do not pass user ID. + * @param { int } userId - Indicates the user ID or do not pass user ID. * @returns { Promise } Returns the AppProvisionInfo object. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -3684,16 +3712,17 @@ declare namespace bundleManager { * @throws { BusinessError } 17700004 - The specified user ID is not found. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ - function getAppProvisionInfo(bundleName: string, userId?: number): Promise; + function getAppProvisionInfo(bundleName: string, userId?: int): Promise; /** * Obtains the profile file information of a specified bundle. * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED * @param { string } bundleName - Indicates the bundle name of the application to which the ability belongs. - * @param { number } userId - Indicates the user ID or do not pass user ID. + * @param { int } userId - Indicates the user ID or do not pass user ID. * @returns { AppProvisionInfo } Returns the AppProvisionInfo object. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -3703,9 +3732,10 @@ declare namespace bundleManager { * @throws { BusinessError } 17700004 - The specified user ID is not found. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ - function getAppProvisionInfoSync(bundleName: string, userId?: number): AppProvisionInfo; + function getAppProvisionInfoSync(bundleName: string, userId?: int): AppProvisionInfo; /** * Obtains the distribution type specified during bundle installation. @@ -3737,7 +3767,8 @@ declare namespace bundleManager { * @throws { BusinessError } 17700001 - The specified bundleName is not found. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ function getAdditionalInfo(bundleName: string): string; @@ -3767,7 +3798,7 @@ declare namespace bundleManager { * @param { ProfileType } profileType - Indicates the type of profile to be obtained. * @param { string } bundleName - Indicates the name of the bundle to which the profile belongs. * @param { string } moduleName - Indicates the name of the module to which the profile belongs. - * @param { number } userId - Indicates the user ID or do not pass user ID. + * @param { int } userId - Indicates the user ID or do not pass user ID. * @returns { string } Returns string in json-format of the designated profile. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -3779,9 +3810,10 @@ declare namespace bundleManager { * @throws { BusinessError } 17700026 - The specified bundle is disabled. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - function getJsonProfile(profileType: ProfileType, bundleName: string, moduleName?: string, userId?: number): string; + function getJsonProfile(profileType: ProfileType, bundleName: string, moduleName?: string, userId?: int): string; /** * Get extend resources. @@ -3796,7 +3828,8 @@ declare namespace bundleManager { * @throws { BusinessError } 17700303 - Failed to obtain extended resources. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ function getExtResource(bundleName: string): Promise>; @@ -3861,6 +3894,7 @@ declare namespace bundleManager { * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ function enableDynamicIcon(bundleName: string, moduleName: string, option?: BundleOptions): Promise; @@ -3877,7 +3911,8 @@ declare namespace bundleManager { * @throws { BusinessError } 17700305 - Failed to disable the dynamic icon. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ function disableDynamicIcon(bundleName: string): Promise; @@ -3901,6 +3936,7 @@ declare namespace bundleManager { * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ function disableDynamicIcon(bundleName: string, option?: BundleOptions): Promise; @@ -3935,6 +3971,7 @@ declare namespace bundleManager { * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ function getDynamicIconInfo(bundleName: string): Promise>; @@ -3946,7 +3983,7 @@ declare namespace bundleManager { * ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS need to be applied for. * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED and ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS - * @param { number } [userId] - Indicates the user id, default value is to query all users. + * @param { int } [userId] - Indicates the user id, default value is to query all users. * @returns { Promise> } Returns a list of DynamicIconInfo objects. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -3955,8 +3992,9 @@ declare namespace bundleManager { * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ - function getAllDynamicIconInfo(userId?: number): Promise>; + function getAllDynamicIconInfo(userId?: int): Promise>; /** * Verifies the validity of .abc files. Only .abc files passed the verification can run on the restricted VM. @@ -3984,7 +4022,8 @@ declare namespace bundleManager { * @throws { BusinessError } 17700201 - Failed to verify the abc file. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ function verifyAbc(abcPaths: Array, deleteOriginalFiles: boolean, callback: AsyncCallback): void; @@ -4014,7 +4053,8 @@ declare namespace bundleManager { * @throws { BusinessError } 17700201 - Failed to verify the abc file. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ function verifyAbc(abcPaths: Array, deleteOriginalFiles: boolean): Promise; @@ -4027,7 +4067,8 @@ declare namespace bundleManager { * @throws { BusinessError } 202 - Permission denied, non-system app called system api. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ function getRecoverableApplicationInfo(callback: AsyncCallback>): void; @@ -4040,7 +4081,8 @@ declare namespace bundleManager { * @throws { BusinessError } 202 - Permission denied, non-system app called system api. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ function getRecoverableApplicationInfo(): Promise>; @@ -4058,7 +4100,8 @@ declare namespace bundleManager { * @throws { BusinessError } 17700053 - The caller is not AppGallery. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ function setAdditionalInfo(bundleName: string, additionalInfo: string): void; @@ -4086,7 +4129,8 @@ declare namespace bundleManager { * @throws { BusinessError } 17700202 - Failed to delete the abc file. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ function deleteAbc(abcPath: string): Promise; @@ -4100,7 +4144,8 @@ declare namespace bundleManager { * @throws { BusinessError } 17700056 - The scheme of the specified link is not in the querySchemes. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ function canOpenLink(link: string): boolean; @@ -4113,7 +4158,8 @@ declare namespace bundleManager { * @throws { BusinessError } 202 - Permission denied, non-system app called system api. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ function getAllPreinstalledApplicationInfo(): Promise>; @@ -4130,7 +4176,8 @@ declare namespace bundleManager { * @throws { BusinessError } 17700059 - The specified developerId is invalid. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ function getAllBundleInfoByDeveloperId(developerId: string): Array; @@ -4138,16 +4185,17 @@ declare namespace bundleManager { * Get a list of developedId by distribution type. * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED - * @param { number } appDistributionType - Indicates the distribution type of the application, and if not passed in, it gets all the developerId. + * @param { int } appDistributionType - Indicates the distribution type of the application, and if not passed in, it gets all the developerId. * @returns { Array } Returns a list of developerId. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - function getDeveloperIds(appDistributionType?: number): Array; + function getDeveloperIds(appDistributionType?: int): Array; /** * Switch uninstall state of a specified application. @@ -4162,7 +4210,8 @@ declare namespace bundleManager { * @throws { BusinessError } 17700060 - The specified application cannot be uninstalled. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ function switchUninstallState(bundleName: string, state: boolean): void; @@ -4170,23 +4219,24 @@ declare namespace bundleManager { * Get the SignatureInfo of the application through UID. * * @permission ohos.permission.GET_SIGNATURE_INFO - * @param { number } uid - Indicates the UID of an application. + * @param { int } uid - Indicates the UID of an application. * @returns { SignatureInfo } The result of getting the signature info. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 17700021 - The uid is not found. * @syscap SystemCapability.BundleManager.BundleFramework.Core - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ - function getSignatureInfo(uid: number): SignatureInfo; + function getSignatureInfo(uid: int): SignatureInfo; /** * Get the BundleInfo of the specified MultiIsolation App. * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED * @param { string } bundleName - Indicates the application bundle name to be queried. - * @param { number } appIndex - Indicates the index of clone app. - * @param { number } bundleFlags {@link BundleFlag} - Indicates the flag used to specify information contained in the BundleInfo objects that will be returned. - * @param { number } [userId] - Indicates the user ID, If the user id is not specified, the current user id is used by default. + * @param { int } appIndex - Indicates the index of clone app. + * @param { int } bundleFlags {@link BundleFlag} - Indicates the flag used to specify information contained in the BundleInfo objects that will be returned. + * @param { int } [userId] - Indicates the user ID, If the user id is not specified, the current user id is used by default. * @returns { Promise } Returns A BundleInfo Of MultiApp Mode. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -4200,15 +4250,15 @@ declare namespace bundleManager { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - function getAppCloneBundleInfo(bundleName: string, appIndex: number, bundleFlags: number, userId?: number): Promise; + function getAppCloneBundleInfo(bundleName: string, appIndex: int, bundleFlags: int, userId?: int): Promise; /** * Get all BundleInfo of clone app. * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED * @param { string } bundleName - Indicates the application bundle name to be queried. - * @param { number } bundleFlags {@link BundleFlag} - Indicates the flag used to specify information contained in the BundleInfo objects that will be returned. - * @param { number } [userId] - Indicates the user ID, If the user id is not specified, the current user id is used by default. + * @param { int } bundleFlags {@link BundleFlag} - Indicates the flag used to specify information contained in the BundleInfo objects that will be returned. + * @param { int } [userId] - Indicates the user ID, If the user id is not specified, the current user id is used by default. * @returns { Promise> } Returns BundleInfo Arrays Of MultiApp Mode. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -4218,15 +4268,16 @@ declare namespace bundleManager { * @throws { BusinessError } 17700026 - The specified bundle and clone apps are all disabled. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - function getAllAppCloneBundleInfo(bundleName: string, bundleFlags: number, userId?: number): Promise>; + function getAllAppCloneBundleInfo(bundleName: string, bundleFlags: int, userId?: int): Promise>; /** * Obtains AppCloneIdentity contains bundleName and appIndex by the given uid. The application requires to be a system application when requesting the permission of ohos.permission.GET_BUNDLE_INFO. * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO - * @param { number } uid - Indicates the UID of an application. + * @param { int } uid - Indicates the UID of an application. * @returns { Promise } Returns the clone Identity contains bundleName and appIndex. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. @@ -4235,14 +4286,14 @@ declare namespace bundleManager { * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - function getAppCloneIdentity(uid: number): Promise; + function getAppCloneIdentity(uid: int): Promise; /** * Get all plugin info of host application. * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED * @param { string } hostBundleName - Indicates the host application bundle name to be queried. - * @param { number } [userId] - Indicates the user ID or do not pass user ID. + * @param { int } [userId] - Indicates the user ID or do not pass user ID. * @returns { Promise> } Returns PluginBundleInfo Arrays. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -4250,9 +4301,10 @@ declare namespace bundleManager { * @throws { BusinessError } 17700004 - The specified user ID is not found. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 19 + * @since arkts {'1.1':'19', '1.2':'20'} + * @arkts 1.1&1.2 */ - function getAllPluginInfo(hostBundleName: string, userId?: number): Promise>; + function getAllPluginInfo(hostBundleName: string, userId?: int): Promise>; /** * Migrate files from the source paths to the destination path. @@ -4272,7 +4324,8 @@ declare namespace bundleManager { * @throws { BusinessError } 17700086 - System error occurred during copy execution. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ function migrateData(sourcePaths: Array, destinationPath: string): Promise; @@ -4281,7 +4334,7 @@ declare namespace bundleManager { * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED * @param { string } bundleName - Indicates the application bundle name to be queried. - * @param { number } appIndex - Indicates the index of clone app. + * @param { int } appIndex - Indicates the index of clone app. * @returns { string } Returns the sandbox data directory. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -4290,8 +4343,9 @@ declare namespace bundleManager { * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ - function getSandboxDataDir(bundleName: string, appIndex: number): string; + function getSandboxDataDir(bundleName: string, appIndex: int): string; /** * Obtains AppCloneIdentity contains bundleName and appIndex by the sandbox data directory. @@ -4301,6 +4355,7 @@ declare namespace bundleManager { * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ function getAppCloneIdentityBySandboxDataDir(sandboxDataDir: string): AppCloneIdentity; @@ -4797,7 +4852,8 @@ declare namespace bundleManager { * @typedef { _PermissionDef } * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ export type PermissionDef = _PermissionDef; @@ -4825,7 +4881,8 @@ declare namespace bundleManager { * @typedef { _SharedBundleInfo } * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ export type SharedBundleInfo = _SharedBundleInfo; @@ -4839,6 +4896,17 @@ declare namespace bundleManager { */ export type AppProvisionInfo = _AppProvisionInfo.AppProvisionInfo; + /** + * Obtains profile file information about a bundle. + * + * @typedef { _AppProvisionInfo } + * @syscap SystemCapability.BundleManager.BundleFramework.Core + * @systemapi + * @since 20 + * @arkts 1.2 + */ + export type AppProvisionInfo = _AppProvisionInfo; + /** * Obtains profile file validity about a bundle. * @@ -4849,13 +4917,25 @@ declare namespace bundleManager { */ export type Validity = _AppProvisionInfo.Validity; + /** + * Obtains profile file validity about a bundle. + * + * @typedef { _Validity } + * @syscap SystemCapability.BundleManager.BundleFramework.Core + * @systemapi + * @since 20 + * @arkts 1.2 + */ + export type Validity = _Validity; + /** * Obtains information about a recoverable preinstalled application. * * @typedef { _RecoverableApplicationInfo } * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ export type RecoverableApplicationInfo = _RecoverableApplicationInfo; @@ -4918,7 +4998,8 @@ declare namespace bundleManager { * @typedef { _PluginBundleInfo } * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 19 + * @since arkts {'1.1':'19', '1.2':'20'} + * @arkts 1.1&1.2 */ export type PluginBundleInfo = _PluginBundleInfo; @@ -4928,7 +5009,8 @@ declare namespace bundleManager { * @typedef { _PluginModuleInfo } * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 19 + * @since arkts {'1.1':'19', '1.2':'20'} + * @arkts 1.1&1.2 */ export type PluginModuleInfo = _PluginModuleInfo; @@ -4942,6 +5024,17 @@ declare namespace bundleManager { */ export type DynamicIconInfo = _BundleInfo.DynamicIconInfo; + /** + * Contains dynamic icon. + * + * @typedef { _DynamicIconInfo } + * @syscap SystemCapability.BundleManager.BundleFramework.Core + * @systemapi + * @since 20 + * @arkts 1.2 + */ + export type DynamicIconInfo = _DynamicIconInfo; + /** * Contains bundle options. * @@ -4951,6 +5044,17 @@ declare namespace bundleManager { * @since 20 */ export type BundleOptions = _BundleInfo.BundleOptions; + + /** + * Contains bundle options. + * + * @typedef { _BundleOptions } + * @syscap SystemCapability.BundleManager.BundleFramework.Core + * @systemapi + * @since 20 + * @arkts 1.2 + */ + export type BundleOptions = _BundleOptions; } export default bundleManager; diff --git a/api/@ohos.bundle.bundleMonitor.d.ts b/api/@ohos.bundle.bundleMonitor.d.ts index a9f1ed5e4f..af4c9cbd26 100644 --- a/api/@ohos.bundle.bundleMonitor.d.ts +++ b/api/@ohos.bundle.bundleMonitor.d.ts @@ -54,25 +54,25 @@ declare namespace bundleMonitor { /** * The user id * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly userId: number; + readonly userId: int; /** * The app index of clone app * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly appIndex: number; + readonly appIndex: int; } /** diff --git a/api/@ohos.bundle.bundleResourceManager.d.ts b/api/@ohos.bundle.bundleResourceManager.d.ts index ec8fc77ec1..9b0510f2a4 100644 --- a/api/@ohos.bundle.bundleResourceManager.d.ts +++ b/api/@ohos.bundle.bundleResourceManager.d.ts @@ -27,6 +27,7 @@ import type { LauncherAbilityResourceInfo as _LauncherAbilityResourceInfo } from import { AsyncCallback } from './@ohos.base'; import { BundleResourceInfo as _BundleResourceInfo } from './bundleManager/BundleResourceInfo'; import { LauncherAbilityResourceInfo as _LauncherAbilityResourceInfo } from './bundleManager/LauncherAbilityResourceInfo'; +import bundleManager from './@ohos.bundle.bundleManager'; /*** endif */ /** @@ -43,7 +44,7 @@ declare namespace bundleResourceManager { * Used to query the enumeration value of resource info. Multiple values can be passed in the form. * Multiple value input, such as GET_RESOURCE_INFO_WITH_LABEL | GET_RESOURCE_INFO_WITH_ICON. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.BundleFramework.Resource * @systemapi * @since arkts {'1.1':'11', '1.2':'20'} @@ -118,7 +119,7 @@ declare namespace bundleResourceManager { * * @permission ohos.permission.GET_BUNDLE_RESOURCES * @param { string } bundleName - Indicates the bundle name of the application. - * @param { number } resourceFlags {@link ResourceFlag} - Indicates the flag used to specify information contained in the BundleResourceInfo object that will be returned. + * @param { int } resourceFlags {@link ResourceFlag} - Indicates the flag used to specify information contained in the BundleResourceInfo object that will be returned. * @returns { BundleResourceInfo } Returns the BundleResourceInfo object. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -129,15 +130,15 @@ declare namespace bundleResourceManager { * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - function getBundleResourceInfo(bundleName: string, resourceFlags?: number): BundleResourceInfo; + function getBundleResourceInfo(bundleName: string, resourceFlags?: int): BundleResourceInfo; /** * Obtains the BundleResourceInfo of a specified bundle. Default resourceFlag is GET_RESOURCE_INFO_ALL. * * @permission ohos.permission.GET_BUNDLE_RESOURCES * @param { string } bundleName - Indicates the bundle name of the application. - * @param { number } [resourceFlags] {@link ResourceFlag} - Indicates the flag used to specify information contained in the BundleResourceInfo object that will be returned. - * @param { number } [appIndex] - Indicates the index of the bundle,The default value is 0. + * @param { int } [resourceFlags] {@link ResourceFlag} - Indicates the flag used to specify information contained in the BundleResourceInfo object that will be returned. + * @param { int } [appIndex] - Indicates the index of the bundle,The default value is 0. * @returns { BundleResourceInfo } Returns the BundleResourceInfo object. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -149,14 +150,14 @@ declare namespace bundleResourceManager { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - function getBundleResourceInfo(bundleName: string, resourceFlags?: number, appIndex?: number): BundleResourceInfo; + function getBundleResourceInfo(bundleName: string, resourceFlags?: int, appIndex?: int): BundleResourceInfo; /** * Obtains the LauncherAbilityResourceInfo of a specified bundle. Default resourceFlag is GET_RESOURCE_INFO_ALL. * * @permission ohos.permission.GET_BUNDLE_RESOURCES * @param { string } bundleName - Indicates the bundle name of the application. - * @param { number } resourceFlags {@link ResourceFlag} - Indicates the flag used to specify information contained in the LauncherAbilityResourceInfo object that will be returned. + * @param { int } resourceFlags {@link ResourceFlag} - Indicates the flag used to specify information contained in the LauncherAbilityResourceInfo object that will be returned. * @returns { Array } Returns a list of LauncherAbilityResourceInfo objects. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -167,16 +168,16 @@ declare namespace bundleResourceManager { * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - function getLauncherAbilityResourceInfo(bundleName: string, resourceFlags?: number): Array; + function getLauncherAbilityResourceInfo(bundleName: string, resourceFlags?: int): Array; /** * Obtains the LauncherAbilityResourceInfo of a specified bundle. Default resourceFlag is GET_RESOURCE_INFO_ALL. * * @permission ohos.permission.GET_BUNDLE_RESOURCES * @param { string } bundleName - Indicates the bundle name of the application. - * @param { number } [resourceFlags] {@link ResourceFlag} - Indicates the flag used to specify information + * @param { int } [resourceFlags] {@link ResourceFlag} - Indicates the flag used to specify information *
contained in the LauncherAbilityResourceInfo object that will be returned. - * @param { number } [appIndex] - Indicates the index of the bundle,The default value is 0. + * @param { int } [appIndex] - Indicates the index of the bundle,The default value is 0. * @returns { Array } Returns a list of LauncherAbilityResourceInfo objects. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -188,13 +189,13 @@ declare namespace bundleResourceManager { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - function getLauncherAbilityResourceInfo(bundleName: string, resourceFlags?: number, appIndex?: number): Array; + function getLauncherAbilityResourceInfo(bundleName: string, resourceFlags?: int, appIndex?: int): Array; /** * Obtains BundleResourceInfo of all bundles available in the system. * * @permission ohos.permission.GET_INSTALLED_BUNDLE_LIST and ohos.permission.GET_BUNDLE_RESOURCES - * @param { number } resourceFlags {@link ResourceFlag} - Indicates the flag used to specify information contained in the BundleResourceInfo that will be returned. + * @param { int } resourceFlags {@link ResourceFlag} - Indicates the flag used to specify information contained in the BundleResourceInfo that will be returned. * @param { AsyncCallback> } callback - The callback of getting a list of BundleResourceInfo objects. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -204,13 +205,13 @@ declare namespace bundleResourceManager { * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - function getAllBundleResourceInfo(resourceFlags: number, callback: AsyncCallback>): void; + function getAllBundleResourceInfo(resourceFlags: int, callback: AsyncCallback>): void; /** * Obtains BundleResourceInfo of all bundles available in the system. * * @permission ohos.permission.GET_INSTALLED_BUNDLE_LIST and ohos.permission.GET_BUNDLE_RESOURCES - * @param { number } resourceFlags {@link ResourceFlag} - Indicates the flag used to specify information contained in the BundleResourceInfo that will be returned. + * @param { int } resourceFlags {@link ResourceFlag} - Indicates the flag used to specify information contained in the BundleResourceInfo that will be returned. * @returns { Promise> } Returns a list of BundleResourceInfo objects. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -220,13 +221,13 @@ declare namespace bundleResourceManager { * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - function getAllBundleResourceInfo(resourceFlags: number): Promise>; + function getAllBundleResourceInfo(resourceFlags: int): Promise>; /** * Obtains LauncherAbilityResourceInfo of all launcher abilities available in the system. * * @permission ohos.permission.GET_INSTALLED_BUNDLE_LIST and ohos.permission.GET_BUNDLE_RESOURCES - * @param { number } resourceFlags {@link ResourceFlag} - Indicates the flag used to specify information contained in the LauncherAbilityResourceInfo that will be returned. + * @param { int } resourceFlags {@link ResourceFlag} - Indicates the flag used to specify information contained in the LauncherAbilityResourceInfo that will be returned. * @param { AsyncCallback> } callback - The callback of getting a list of LauncherAbilityResourceInfo objects. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -236,13 +237,13 @@ declare namespace bundleResourceManager { * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - function getAllLauncherAbilityResourceInfo(resourceFlags: number, callback: AsyncCallback>): void; + function getAllLauncherAbilityResourceInfo(resourceFlags: int, callback: AsyncCallback>): void; /** * Obtains LauncherAbilityResourceInfo of all launcher abilities available in the system. * * @permission ohos.permission.GET_INSTALLED_BUNDLE_LIST and ohos.permission.GET_BUNDLE_RESOURCES - * @param { number } resourceFlags {@link ResourceFlag} - Indicates the flag used to specify information contained in the LauncherAbilityResourceInfo that will be returned. + * @param { int } resourceFlags {@link ResourceFlag} - Indicates the flag used to specify information contained in the LauncherAbilityResourceInfo that will be returned. * @returns { Promise> } Returns a list of LauncherAbilityResourceInfo objects. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -252,7 +253,7 @@ declare namespace bundleResourceManager { * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - function getAllLauncherAbilityResourceInfo(resourceFlags: number): Promise>; + function getAllLauncherAbilityResourceInfo(resourceFlags: int): Promise>; /** * Obtains the abilityResourceInfo of a specified bundle. @@ -261,9 +262,9 @@ declare namespace bundleResourceManager { * @param { string } bundleName - Indicates the bundle name of the application. * @param { bundleManager.ExtensionAbilityType } extensionAbilityType - Indicates ExtensionAbilityType. *
Currently only supported ExtensionAbilityType::INPUTMETHOD,ExtensionAbilityType::SHARE,ExtensionAbilityType::ACTION. - * @param { number } resourceFlags - Indicates the flag used to specify information. + * @param { int } resourceFlags - Indicates the flag used to specify information. *
Contained in the ExtensionAbilityResourceInfo object that will be returned. - * @param { number } [appIndex] - Indicates the index of the bundle. + * @param { int } [appIndex] - Indicates the index of the bundle. * @returns { Array } Returns a list of LauncherAbilityResourceInfo objects. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -272,8 +273,9 @@ declare namespace bundleResourceManager { * @syscap SystemCapability.BundleManager.BundleFramework.Resource * @systemapi * @since 20 + * @arkts 1.1&1.2 */ - function getExtensionAbilityResourceInfo(bundleName: string, extensionAbilityType: bundleManager.ExtensionAbilityType, resourceFlags: number, appIndex?: number): Array; + function getExtensionAbilityResourceInfo(bundleName: string, extensionAbilityType: bundleManager.ExtensionAbilityType, resourceFlags: int, appIndex?: int): Array; /** * Obtains resource info of a bundle. diff --git a/api/@ohos.bundle.defaultAppManager.d.ts b/api/@ohos.bundle.defaultAppManager.d.ts index 7ee73e02f6..c402034e9b 100644 --- a/api/@ohos.bundle.defaultAppManager.d.ts +++ b/api/@ohos.bundle.defaultAppManager.d.ts @@ -27,78 +27,89 @@ import { ElementName } from './bundleManager/ElementName'; * * @namespace defaultAppManager * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ declare namespace defaultAppManager { /** * The constant for application type. * - * @enum { number } + * @enum { string } * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ export enum ApplicationType { /** * Default browser identifier. * * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ BROWSER = 'Web Browser', /** * Default image identifier. * * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ IMAGE = 'Image Gallery', /** * Default audio identifier. * * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ AUDIO = 'Audio Player', /** * Default video identifier. * * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ VIDEO = 'Video Player', /** * Default PDF identifier. * * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ PDF = 'PDF Viewer', /** * Default word identifier. * * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ WORD = 'Word Viewer', /** * Default excel identifier. * * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ EXCEL = 'Excel Viewer', /** * Default PPT identifier. * * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ PPT = 'PPT Viewer', /** * Default email identifier. * * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ EMAIL = 'Email' } @@ -111,7 +122,8 @@ declare namespace defaultAppManager { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. * @throws { BusinessError } 801 - Capability not supported. * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function isDefaultApplication(type: string, callback: AsyncCallback): void; @@ -123,7 +135,8 @@ declare namespace defaultAppManager { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. * @throws { BusinessError } 801 - Capability not supported. * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function isDefaultApplication(type: string): Promise; @@ -135,7 +148,8 @@ declare namespace defaultAppManager { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. * @throws { BusinessError } 801 - Capability not supported. * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ function isDefaultApplicationSync(type: string): boolean; @@ -144,7 +158,7 @@ declare namespace defaultAppManager { * * @permission ohos.permission.GET_DEFAULT_APPLICATION * @param { string } type - Application type or a file type that conforms to media type format. - * @param { number } userId - Indicates the id for the user. + * @param { int } userId - Indicates the id for the user. * @param { AsyncCallback } callback - The callback of the BundleInfo object result. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -155,9 +169,10 @@ declare namespace defaultAppManager { * @throws { BusinessError } 17700025 - The specified type is invalid. * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - function getDefaultApplication(type: string, userId: number, callback: AsyncCallback): void; + function getDefaultApplication(type: string, userId: int, callback: AsyncCallback): void; /** * Get default application based on type. @@ -173,7 +188,8 @@ declare namespace defaultAppManager { * @throws { BusinessError } 17700025 - The specified type is invalid. * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function getDefaultApplication(type: string, callback: AsyncCallback): void; @@ -182,7 +198,7 @@ declare namespace defaultAppManager { * * @permission ohos.permission.GET_DEFAULT_APPLICATION * @param { string } type - Application type or a file type that conforms to media type format. - * @param { number } userId - Indicates the id for the user. + * @param { int } userId - Indicates the id for the user. * @returns { Promise } Return the BundleInfo object. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -193,16 +209,17 @@ declare namespace defaultAppManager { * @throws { BusinessError } 17700025 - The specified type is invalid. * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - function getDefaultApplication(type: string, userId?: number): Promise; + function getDefaultApplication(type: string, userId?: int): Promise; /** * Get default application based on type. * * @permission ohos.permission.GET_DEFAULT_APPLICATION * @param { string } type - Application type or a file type that conforms to media type format. - * @param { number } userId - Indicates the id for the user. + * @param { int } userId - Indicates the id for the user. * @returns { BundleInfo } Return the BundleInfo object. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -213,9 +230,10 @@ declare namespace defaultAppManager { * @throws { BusinessError } 17700025 - The specified type is invalid. * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ - function getDefaultApplicationSync(type: string, userId?: number): BundleInfo; + function getDefaultApplicationSync(type: string, userId?: int): BundleInfo; /** * Set default application based on type. @@ -223,7 +241,7 @@ declare namespace defaultAppManager { * @permission ohos.permission.SET_DEFAULT_APPLICATION * @param { string } type - Application type or a file type that conforms to media type format. * @param { ElementName } elementName - Uniquely identifies an ability or extensionAbility. - * @param { number } userId - Indicates the id for the user. + * @param { int } userId - Indicates the id for the user. * @param { AsyncCallback } callback - The callback of setting default application result. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -234,10 +252,11 @@ declare namespace defaultAppManager { * @throws { BusinessError } 17700028 - The specified ability does not match the type. * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function setDefaultApplication(type: string, - elementName: ElementName, userId: number, callback: AsyncCallback): void; + elementName: ElementName, userId: int, callback: AsyncCallback): void; /** * Set default application based on type. @@ -254,7 +273,8 @@ declare namespace defaultAppManager { * @throws { BusinessError } 17700028 - The specified ability does not match the type. * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function setDefaultApplication(type: string, elementName: ElementName, callback: AsyncCallback): void; @@ -264,7 +284,7 @@ declare namespace defaultAppManager { * @permission ohos.permission.SET_DEFAULT_APPLICATION * @param { string } type - Application type or a file type that conforms to media type format. * @param { ElementName } elementName - Uniquely identifies an ability or extensionAbility. - * @param { number } userId - Indicates the id for the user. + * @param { int } userId - Indicates the id for the user. * @returns { Promise } The result of setting default application. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -275,9 +295,10 @@ declare namespace defaultAppManager { * @throws { BusinessError } 17700028 - The specified ability does not match the type. * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - function setDefaultApplication(type: string, elementName: ElementName, userId?: number): Promise; + function setDefaultApplication(type: string, elementName: ElementName, userId?: int): Promise; /** * Set default application based on type. @@ -285,7 +306,7 @@ declare namespace defaultAppManager { * @permission ohos.permission.SET_DEFAULT_APPLICATION * @param { string } type - Application type or a file type that conforms to media type format. * @param { ElementName } elementName - Uniquely identifies an ability or extensionAbility. - * @param { number } userId - Indicates the id for the user. + * @param { int } userId - Indicates the id for the user. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. @@ -295,16 +316,17 @@ declare namespace defaultAppManager { * @throws { BusinessError } 17700028 - The specified ability does not match the type. * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ - function setDefaultApplicationSync(type: string, elementName: ElementName, userId?: number): void; + function setDefaultApplicationSync(type: string, elementName: ElementName, userId?: int): void; /** * Reset default application based on type. * * @permission ohos.permission.SET_DEFAULT_APPLICATION * @param { string } type - Application type or a file type that conforms to media type format. - * @param { number } userId - Indicates the id for the user. + * @param { int } userId - Indicates the id for the user. * @param { AsyncCallback } callback - The callback of resetting default application result. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -314,9 +336,10 @@ declare namespace defaultAppManager { * @throws { BusinessError } 17700025 - The specified type is invalid. * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - function resetDefaultApplication(type: string, userId: number, callback: AsyncCallback): void; + function resetDefaultApplication(type: string, userId: int, callback: AsyncCallback): void; /** * Reset default application based on type. @@ -331,7 +354,8 @@ declare namespace defaultAppManager { * @throws { BusinessError } 17700025 - The specified type is invalid. * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function resetDefaultApplication(type: string, callback: AsyncCallback): void; @@ -340,7 +364,7 @@ declare namespace defaultAppManager { * * @permission ohos.permission.SET_DEFAULT_APPLICATION * @param { string } type - Application type or a file type that conforms to media type format. - * @param { number } userId - Indicates the id for the user. + * @param { int } userId - Indicates the id for the user. * @returns { Promise } The result of resetting default application. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -350,16 +374,17 @@ declare namespace defaultAppManager { * @throws { BusinessError } 17700025 - The specified type is invalid. * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - function resetDefaultApplication(type: string, userId?: number): Promise; + function resetDefaultApplication(type: string, userId?: int): Promise; /** * Reset default application based on type. * * @permission ohos.permission.SET_DEFAULT_APPLICATION * @param { string } type - Application type or a file type that conforms to media type format. - * @param { number } userId - Indicates the id for the user. + * @param { int } userId - Indicates the id for the user. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. @@ -368,9 +393,10 @@ declare namespace defaultAppManager { * @throws { BusinessError } 17700025 - The specified type is invalid. * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ - function resetDefaultApplicationSync(type: string, userId?: number): void; + function resetDefaultApplicationSync(type: string, userId?: int): void; } export default defaultAppManager; diff --git a/api/@ohos.bundle.distributedBundleManager.d.ts b/api/@ohos.bundle.distributedBundleManager.d.ts index bc13c960d8..a85231f931 100644 --- a/api/@ohos.bundle.distributedBundleManager.d.ts +++ b/api/@ohos.bundle.distributedBundleManager.d.ts @@ -28,7 +28,8 @@ import { RemoteAbilityInfo as _RemoteAbilityInfo } from './bundleManager/RemoteA * @namespace distributedBundleManager * @syscap SystemCapability.BundleManager.DistributedBundleFramework * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ declare namespace distributedBundleManager { /** @@ -47,7 +48,8 @@ declare namespace distributedBundleManager { * @throws { BusinessError } 17700027 - The distributed service is not running. * @syscap SystemCapability.BundleManager.DistributedBundleFramework * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function getRemoteAbilityInfo(elementName: ElementName, callback: AsyncCallback): void; @@ -67,7 +69,8 @@ declare namespace distributedBundleManager { * @throws { BusinessError } 17700027 - The distributed service is not running. * @syscap SystemCapability.BundleManager.DistributedBundleFramework * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function getRemoteAbilityInfo(elementName: ElementName): Promise; @@ -87,7 +90,8 @@ declare namespace distributedBundleManager { * @throws { BusinessError } 17700027 - The distributed service is not running. * @syscap SystemCapability.BundleManager.DistributedBundleFramework * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function getRemoteAbilityInfo(elementNames: Array, callback: AsyncCallback>): void; @@ -108,7 +112,8 @@ declare namespace distributedBundleManager { * @throws { BusinessError } 17700027 - The distributed service is not running. * @syscap SystemCapability.BundleManager.DistributedBundleFramework * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function getRemoteAbilityInfo(elementNames: Array): Promise>; @@ -129,7 +134,8 @@ declare namespace distributedBundleManager { * @throws { BusinessError } 17700027 - The distributed service is not running. * @syscap SystemCapability.BundleManager.DistributedBundleFramework * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function getRemoteAbilityInfo(elementName: ElementName, locale: string, callback: AsyncCallback): void; @@ -151,7 +157,8 @@ declare namespace distributedBundleManager { * @throws { BusinessError } 17700027 - The distributed service is not running. * @syscap SystemCapability.BundleManager.DistributedBundleFramework * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function getRemoteAbilityInfo(elementName: ElementName, locale: string): Promise; @@ -172,7 +179,8 @@ declare namespace distributedBundleManager { * @throws { BusinessError } 17700027 - The distributed service is not running. * @syscap SystemCapability.BundleManager.DistributedBundleFramework * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function getRemoteAbilityInfo(elementNames: Array, locale: string, callback: AsyncCallback>): void; @@ -194,7 +202,8 @@ declare namespace distributedBundleManager { * @throws { BusinessError } 17700027 - The distributed service is not running. * @syscap SystemCapability.BundleManager.DistributedBundleFramework * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function getRemoteAbilityInfo(elementNames: Array, locale: string): Promise>; @@ -204,7 +213,8 @@ declare namespace distributedBundleManager { * @typedef { _RemoteAbilityInfo } * @syscap SystemCapability.BundleManager.DistributedBundleFramework * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ export type RemoteAbilityInfo = _RemoteAbilityInfo; } diff --git a/api/@ohos.bundle.freeInstall.d.ts b/api/@ohos.bundle.freeInstall.d.ts index a156bc3015..bf7aeb1813 100644 --- a/api/@ohos.bundle.freeInstall.d.ts +++ b/api/@ohos.bundle.freeInstall.d.ts @@ -43,7 +43,7 @@ declare namespace freeInstall { /** * Used to set the enumeration value of upgrading for free installation. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall * @systemapi * @since arkts {'1.1':'9', '1.2':'20'} @@ -83,7 +83,7 @@ declare namespace freeInstall { * Used to query the enumeration value of bundlePackInfo. * Multiple value input, such as GET_PACKAGES | GET_BUNDLE_SUMMARY. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.BundleFramework * @systemapi * @since arkts {'1.1':'9', '1.2':'20'} diff --git a/api/@ohos.bundle.installer.d.ts b/api/@ohos.bundle.installer.d.ts index d4a84c9feb..8b34b9267e 100644 --- a/api/@ohos.bundle.installer.d.ts +++ b/api/@ohos.bundle.installer.d.ts @@ -1673,7 +1673,7 @@ declare namespace installer { * @permission ohos.permission.INSTALL_CLONE_BUNDLE * @param { string } bundleName - Indicates the path where the HAP of the application is stored. * @param { CreateAppCloneParam } [createAppCloneParam] Indicates the optional params of create clone app. - * @returns { Promise } Return the appIndex of the clone application. + * @returns { Promise } Return the appIndex of the clone application. * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_CLONE_BUNDLE'. * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. @@ -1686,7 +1686,7 @@ declare namespace installer { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - createAppClone(bundleName: string, createAppCloneParam?: CreateAppCloneParam): Promise; + createAppClone(bundleName: string, createAppCloneParam?: CreateAppCloneParam): Promise; /** * Destroy clone instance for an application. @@ -1734,8 +1734,8 @@ declare namespace installer { * * @permission ohos.permission.UNINSTALL_CLONE_BUNDLE * @param { string } bundleName - Indicates the bundleName of clone app. - * @param { number } appIndex - Indicates the clone application's index. - * @param { number | DestroyAppCloneParam } [options] - Indicates other parameters required for the uninstallation. + * @param { int } appIndex - Indicates the clone application's index. + * @param { int | DestroyAppCloneParam } [options] - Indicates other parameters required for the uninstallation. * @returns { Promise } * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.UNINSTALL_CLONE_BUNDLE'. * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. @@ -1748,7 +1748,7 @@ declare namespace installer { * @since 20 * @arkts 1.2 */ - destroyAppClone(bundleName: string, appIndex: number, options?: number | DestroyAppCloneParam): Promise; + destroyAppClone(bundleName: string, appIndex: int, options?: int | DestroyAppCloneParam): Promise; /** * Install application by bundle name with specified user. @@ -1772,7 +1772,7 @@ declare namespace installer { * * @permission ohos.permission.INSTALL_BUNDLE * @param { string } bundleName - Indicates the bundle name of application. - * @param { number } [userId] - userId Indicates the user ID. + * @param { int } [userId] - userId Indicates the user ID. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE'. * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. @@ -1787,7 +1787,7 @@ declare namespace installer { * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - installPreexistingApp(bundleName: string, userId?: number): Promise; + installPreexistingApp(bundleName: string, userId?: int): Promise; /** * Install plugin for host application. @@ -1989,24 +1989,24 @@ declare namespace installer { /** * Indicates the user id * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - userId?: number; + userId?: int; /** * Indicates the installation type. The value 0x00 means normal installation, 0x01 means overwrite installation, and 0x10 means installation-free. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - installFlag?: number; + installFlag?: int; /** * Indicates whether the param has data @@ -2033,13 +2033,13 @@ declare namespace installer { /** * Indicates the deadline of the crowdtesting bundle * - * @type { ?number } + * @type { ?long } * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - crowdtestDeadline?: number; + crowdtestDeadline?: long; /** * Indicates the shared bundle dir paths. @@ -2132,13 +2132,13 @@ declare namespace installer { /** * Indicates the shared version code. If default, indicates that all version sharing bundles are uninstalled * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since arkts {'1.1':'10', '1.2':'20'} * @arkts 1.1&1.2 */ - versionCode?: number; + versionCode?: int; } /** @@ -2154,23 +2154,23 @@ declare namespace installer { /** * Indicates the user id * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - userId?: number; + userId?: int; /** * Indicates the appIndex of MultiApp * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - appIndex?: number; + appIndex?: int; } /** @@ -2186,13 +2186,13 @@ declare namespace installer { /** * Indicates the user id * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since arkts {'1.1':'15', '1.2':'20'} * @arkts 1.1&1.2 */ - userId?: number; + userId?: int; /** * Indicates parameters. * @@ -2218,13 +2218,13 @@ declare namespace installer { /** * Indicates the user id. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since arkts {'1.1':'19', '1.2':'20'} * @arkts 1.1&1.2 */ - userId?: number; + userId?: int; /** * Indicates parameters. diff --git a/api/@ohos.bundle.launcherBundleManager.d.ts b/api/@ohos.bundle.launcherBundleManager.d.ts index a42e07bd6f..5633986279 100644 --- a/api/@ohos.bundle.launcherBundleManager.d.ts +++ b/api/@ohos.bundle.launcherBundleManager.d.ts @@ -40,7 +40,7 @@ declare namespace launcherBundleManager { * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED * @param { string } bundleName - Indicates the application bundle name to be queried. - * @param { number } userId - Indicates the id for the user. + * @param { int } userId - Indicates the id for the user. * @param { AsyncCallback> } callback -The callback of the LauncherAbilityInfo object result. * @throws { BusinessError } 201 - Verify permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -54,14 +54,14 @@ declare namespace launcherBundleManager { * @arkts 1.1&1.2 */ function getLauncherAbilityInfo(bundleName: string, - userId: number, callback: AsyncCallback>): void; + userId: int, callback: AsyncCallback>): void; /** * Obtains launcher abilities info based on a given bundleName and userId. * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED * @param { string } bundleName - Indicates the application bundle name to be queried. - * @param { number } userId - Indicates the id for the user. + * @param { int } userId - Indicates the id for the user. * @returns { Promise> } the LauncherAbilityInfo object. * @throws { BusinessError } 201 - Verify permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -74,14 +74,14 @@ declare namespace launcherBundleManager { * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - function getLauncherAbilityInfo(bundleName: string, userId: number): Promise>; + function getLauncherAbilityInfo(bundleName: string, userId: int): Promise>; /** * Obtains launcher abilities info based on a given bundleName and userId. * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED * @param { string } bundleName - Indicates the application bundle name to be queried. - * @param { number } userId - Indicates the id for the user. + * @param { int } userId - Indicates the id for the user. * @returns { Array } the LauncherAbilityInfo object. * @throws { BusinessError } 201 - Verify permission denied. * @throws { BusinessError } 801 - Capability not support. @@ -91,13 +91,13 @@ declare namespace launcherBundleManager { * @since arkts {'1.1':'18', '1.2':'20'} * @arkts 1.1&1.2 */ - function getLauncherAbilityInfoSync(bundleName: string, userId: number): Array; + function getLauncherAbilityInfoSync(bundleName: string, userId: int): Array; /** * Obtains launcher abilities info based on a given userId. * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED - * @param { number } userId - Indicates the id for the user. + * @param { int } userId - Indicates the id for the user. * @param { AsyncCallback> } callback -The callback of the LauncherAbilityInfo object result. * @throws { BusinessError } 201 - Verify permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -109,13 +109,13 @@ declare namespace launcherBundleManager { * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - function getAllLauncherAbilityInfo(userId: number, callback: AsyncCallback>): void; + function getAllLauncherAbilityInfo(userId: int, callback: AsyncCallback>): void; /** * Obtains launcher abilities info based on a given userId. * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED - * @param { number } userId - Indicates the id for the user. + * @param { int } userId - Indicates the id for the user. * @returns { Promise> } the LauncherAbilityInfo object. * @throws { BusinessError } 201 - Verify permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -127,7 +127,7 @@ declare namespace launcherBundleManager { * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - function getAllLauncherAbilityInfo(userId: number): Promise>; + function getAllLauncherAbilityInfo(userId: int): Promise>; /** * Obtains shortcut info based on a given bundleName. @@ -189,7 +189,7 @@ declare namespace launcherBundleManager { * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO * @param { string } bundleName - Indicates the application bundle name to be queried. - * @param { number } userId - Indicates the user ID. + * @param { int } userId - Indicates the user ID. * @returns { Array } the LauncherShortcutInfo object. * @throws { BusinessError } 201 - Verify permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -202,14 +202,14 @@ declare namespace launcherBundleManager { * @since arkts {'1.1':'13', '1.2':'20'} * @arkts 1.1&1.2 */ - function getShortcutInfoSync(bundleName: string, userId: number): Array; + function getShortcutInfoSync(bundleName: string, userId: int): Array; /** * Obtains shortcut info based on bundleName and appIndex. * * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED * @param { string } bundleName - Indicates the application bundle name to be queried. - * @param { number } appIndex - Indicates the index of clone app. + * @param { int } appIndex - Indicates the index of clone app. * @returns { Array } the ShortcutInfo object. * @throws { BusinessError } 201 - Verify permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -219,8 +219,9 @@ declare namespace launcherBundleManager { * @syscap SystemCapability.BundleManager.BundleFramework.Launcher * @systemapi * @since 20 + * @arkts 1.1&1.2 */ - function getShortcutInfoByAppIndex(bundleName: string, appIndex: number): Array; + function getShortcutInfoByAppIndex(bundleName: string, appIndex: int): Array; /** * Starts shortcut. @@ -256,6 +257,7 @@ declare namespace launcherBundleManager { * @syscap SystemCapability.BundleManager.BundleFramework.Launcher * @systemapi * @since 20 + * @arkts 1.1&1.2 */ function startShortcutWithReason(shortcutInfo: ShortcutInfo, startReason: string, options?: StartOptions): Promise; diff --git a/api/@ohos.bundle.shortcutManager.d.ts b/api/@ohos.bundle.shortcutManager.d.ts index 2f06794328..13b322cfff 100644 --- a/api/@ohos.bundle.shortcutManager.d.ts +++ b/api/@ohos.bundle.shortcutManager.d.ts @@ -42,7 +42,7 @@ declare namespace shortcutManager { * * @permission ohos.permission.MANAGE_SHORTCUTS * @param { ShortcutInfo } shortcutInfo - Indicates the shortcut info which contains shortcut want. - * @param { number } userId - Indicates the id for the user. + * @param { int } userId - Indicates the id for the user. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 201 - Verify permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -57,14 +57,14 @@ declare namespace shortcutManager { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - function addDesktopShortcutInfo(shortcutInfo: ShortcutInfo, userId: number): Promise; + function addDesktopShortcutInfo(shortcutInfo: ShortcutInfo, userId: int): Promise; /** * Delete desktop shortcut info. * * @permission ohos.permission.MANAGE_SHORTCUTS * @param { ShortcutInfo } shortcutInfo - Indicates the shortcut info which contains shortcut want. - * @param { number } userId - Indicates the id for the user. + * @param { int } userId - Indicates the id for the user. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 201 - Verify permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -75,13 +75,13 @@ declare namespace shortcutManager { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - function deleteDesktopShortcutInfo(shortcutInfo: ShortcutInfo, userId: number): Promise; + function deleteDesktopShortcutInfo(shortcutInfo: ShortcutInfo, userId: int): Promise; /** * Get all desktop shortcut info. * * @permission ohos.permission.MANAGE_SHORTCUTS - * @param { number } userId - Indicates the id for the user. + * @param { int } userId - Indicates the id for the user. * @returns { Promise> } the LauncherShortcutInfo object. * @throws { BusinessError } 201 - Verify permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -92,7 +92,7 @@ declare namespace shortcutManager { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - function getAllDesktopShortcutInfo(userId: number): Promise>; + function getAllDesktopShortcutInfo(userId: int): Promise>; /** * Set a shortcut of current application is visible or invisible. @@ -103,6 +103,7 @@ declare namespace shortcutManager { * @throws { BusinessError } 17700070 - The specified shortcut id is illegal. * @syscap SystemCapability.BundleManager.BundleFramework.Launcher * @since 20 + * @arkts 1.1&1.2 */ function setShortcutVisibleForSelf(id: string, visible: boolean): Promise; @@ -112,6 +113,7 @@ declare namespace shortcutManager { * @returns { Promise> } The LauncherShortcutInfo object. * @syscap SystemCapability.BundleManager.BundleFramework.Launcher * @since 20 + * @arkts 1.1&1.2 */ function getAllShortcutInfoForSelf(): Promise>; diff --git a/api/bundleManager/AbilityInfo.d.ts b/api/bundleManager/AbilityInfo.d.ts index c178036ae4..ea1dfb1d2b 100644 --- a/api/bundleManager/AbilityInfo.d.ts +++ b/api/bundleManager/AbilityInfo.d.ts @@ -189,7 +189,7 @@ export interface AbilityInfo { /** * Indicates the label id of the ability * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @crossplatform @@ -197,7 +197,7 @@ export interface AbilityInfo { * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly labelId: number; + readonly labelId: long; /** * Indicates the ability @@ -249,7 +249,7 @@ export interface AbilityInfo { /** * Indicates the description id of the ability * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @crossplatform @@ -257,7 +257,7 @@ export interface AbilityInfo { * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly descriptionId: number; + readonly descriptionId: long; /** * Indicates the icon of the ability @@ -309,7 +309,7 @@ export interface AbilityInfo { /** * Indicates the icon id of the ability * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @crossplatform @@ -317,7 +317,7 @@ export interface AbilityInfo { * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly iconId: number; + readonly iconId: long; /** * Process of ability, if user do not set it, the value equal application process @@ -568,11 +568,22 @@ export interface AbilityInfo { * @syscap SystemCapability.BundleManager.BundleFramework.Core * @crossplatform * @atomicservice - * @since arkts {'1.1':'11', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ readonly applicationInfo: ApplicationInfo; + /** + * Obtains configuration information about an application + * + * @type { ApplicationInfo | null } + * @readonly + * @syscap SystemCapability.BundleManager.BundleFramework.Core + * @crossplatform + * @since 20 + * @arkts 1.2 + */ + readonly applicationInfo: ApplicationInfo | null; + /** * Indicates the metadata of ability * @@ -720,25 +731,25 @@ export interface AbilityInfo { /** * Indicates the appIndex of application, only work in clone app mode * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly appIndex: number; + readonly appIndex: int; /** * Indicates the orientation id of the ability * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @atomicservice * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly orientationId: number; + readonly orientationId: long; } /** @@ -787,7 +798,7 @@ export interface WindowSize { /** * Indicates maximum ratio of width over height of window under free window status. * - * @type { number } + * @type { double } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @crossplatform @@ -795,7 +806,7 @@ export interface WindowSize { * @since 20 * @arkts 1.1&1.2 */ - readonly maxWindowRatio: number; + readonly maxWindowRatio: double; /** * Indicates minimum ratio of width over height of window under free window status. @@ -817,7 +828,7 @@ export interface WindowSize { /** * Indicates minimum ratio of width over height of window under free window status. * - * @type { number } + * @type { double } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @crossplatform @@ -825,7 +836,7 @@ export interface WindowSize { * @since 20 * @arkts 1.1&1.2 */ - readonly minWindowRatio: number; + readonly minWindowRatio: double; /** * Indicates maximum width of window under free window status. @@ -847,7 +858,7 @@ export interface WindowSize { /** * Indicates maximum width of window under free window status. * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @crossplatform @@ -855,7 +866,7 @@ export interface WindowSize { * @since 20 * @arkts 1.1&1.2 */ - readonly maxWindowWidth: number; + readonly maxWindowWidth: long; /** * Indicates minimum width of window under free window status. @@ -877,7 +888,7 @@ export interface WindowSize { /** * Indicates minimum width of window under free window status. * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @crossplatform @@ -885,7 +896,7 @@ export interface WindowSize { * @since 20 * @arkts 1.1&1.2 */ - readonly minWindowWidth: number; + readonly minWindowWidth: long; /** * Indicates maximum height of window under free window status. @@ -907,7 +918,7 @@ export interface WindowSize { /** * Indicates maximum height of window under free window status. * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @crossplatform @@ -915,7 +926,7 @@ export interface WindowSize { * @since 20 * @arkts 1.1&1.2 */ - readonly maxWindowHeight: number; + readonly maxWindowHeight: long; /** * Indicates minimum height of window under free window status. @@ -937,7 +948,7 @@ export interface WindowSize { /** * Indicates minimum height of window under free window status. * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @crossplatform @@ -945,5 +956,5 @@ export interface WindowSize { * @since 20 * @arkts 1.1&1.2 */ - readonly minWindowHeight: number; + readonly minWindowHeight: long; } diff --git a/api/bundleManager/AppProvisionInfo.d.ts b/api/bundleManager/AppProvisionInfo.d.ts index 43351d6971..fde167d360 100644 --- a/api/bundleManager/AppProvisionInfo.d.ts +++ b/api/bundleManager/AppProvisionInfo.d.ts @@ -24,19 +24,21 @@ * @typedef AppProvisionInfo * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ export interface AppProvisionInfo { /** * Indicates the version code of the profile file. * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ - readonly versionCode: number; + readonly versionCode: long; /** * Indicates the version name of the profile file. @@ -45,7 +47,8 @@ export interface AppProvisionInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly versionName: string; @@ -56,7 +59,8 @@ export interface AppProvisionInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly uuid: string; @@ -67,7 +71,8 @@ export interface AppProvisionInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly type: string; @@ -78,7 +83,8 @@ export interface AppProvisionInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly appDistributionType: string; @@ -89,7 +95,8 @@ export interface AppProvisionInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly validity: Validity; @@ -100,7 +107,8 @@ export interface AppProvisionInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly developerId: string; @@ -111,7 +119,8 @@ export interface AppProvisionInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly certificate: string; @@ -122,7 +131,8 @@ export interface AppProvisionInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly apl: string; @@ -133,7 +143,8 @@ export interface AppProvisionInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly issuer: string; @@ -146,7 +157,8 @@ export interface AppProvisionInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly appIdentifier: string; @@ -157,7 +169,8 @@ export interface AppProvisionInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly organization: string; } @@ -168,28 +181,31 @@ export interface AppProvisionInfo { * @typedef Validity * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ export interface Validity { /** * Indicates the earliest validity of the profile file. * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ - readonly notBefore: number; + readonly notBefore: long; /** * Indicates the latest validity of the profile file. * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ - readonly notAfter: number; + readonly notAfter: long; } diff --git a/api/bundleManager/ApplicationInfo.d.ts b/api/bundleManager/ApplicationInfo.d.ts index 64deb67e40..3a8c9cf731 100644 --- a/api/bundleManager/ApplicationInfo.d.ts +++ b/api/bundleManager/ApplicationInfo.d.ts @@ -128,7 +128,7 @@ export interface ApplicationInfo { /** * Indicates the description id of the application * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @crossplatform @@ -136,7 +136,7 @@ export interface ApplicationInfo { * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly descriptionId: number; + readonly descriptionId: long; /** * Indicates whether or not this application may be instantiated @@ -218,7 +218,7 @@ export interface ApplicationInfo { /** * Indicates the label id of the application * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @crossplatform @@ -226,7 +226,7 @@ export interface ApplicationInfo { * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly labelId: number; + readonly labelId: long; /** * Indicates the icon of the application @@ -278,7 +278,7 @@ export interface ApplicationInfo { /** * Indicates the icon id of the application * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @crossplatform @@ -286,7 +286,7 @@ export interface ApplicationInfo { * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly iconId: number; + readonly iconId: long; /** * Process of application, if user do not set it ,the value equal bundleName @@ -470,7 +470,7 @@ export interface ApplicationInfo { /** * Indicates the access token of the application * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @crossplatform @@ -478,7 +478,7 @@ export interface ApplicationInfo { * @since 20 * @arkts 1.1&1.2 */ - readonly accessTokenId: number; + readonly accessTokenId: long; /** * Indicates the uid of the application @@ -500,7 +500,7 @@ export interface ApplicationInfo { /** * Indicates the uid of the application * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @crossplatform @@ -508,7 +508,7 @@ export interface ApplicationInfo { * @since 20 * @arkts 1.1&1.2 */ - readonly uid: number; + readonly uid: int; /** * Indicates icon resource of the application @@ -796,13 +796,13 @@ export interface ApplicationInfo { /** * Indicates the index of the bundle * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly appIndex: number; + readonly appIndex: int; /** * Indicates sources to install the app @@ -865,14 +865,14 @@ export interface ApplicationInfo { /** * Indicates the flags of the application. * - * @type { ?number } + * @type { ?int } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly flags?: number; + readonly flags?: int; } /** @@ -985,13 +985,13 @@ export interface MultiAppMode { /** * Indicates the max count of the bundle * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly maxCount: number; + readonly maxCount: int; } /** @@ -1032,24 +1032,24 @@ export interface PreinstalledApplicationInfo { /** * Indicates the icon id of the application * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly iconId: number; + readonly iconId: long; /** * Indicates the label id of the application * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly labelId: number; + readonly labelId: long; } \ No newline at end of file diff --git a/api/bundleManager/BundleInfo.d.ts b/api/bundleManager/BundleInfo.d.ts index caf837e08e..3445553f99 100644 --- a/api/bundleManager/BundleInfo.d.ts +++ b/api/bundleManager/BundleInfo.d.ts @@ -128,7 +128,7 @@ export interface BundleInfo { /** * Indicates the version code of the bundle * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @crossplatform @@ -136,7 +136,7 @@ export interface BundleInfo { * @since 20 * @arkts 1.1&1.2 */ - readonly versionCode: number; + readonly versionCode: long; /** * Indicates the version name of the bundle @@ -188,7 +188,7 @@ export interface BundleInfo { /** * Indicates the **minimum ** version compatible with the bundle * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @crossplatform @@ -196,7 +196,7 @@ export interface BundleInfo { * @since 20 * @arkts 1.1&1.2 */ - readonly minCompatibleVersionCode: number; + readonly minCompatibleVersionCode: int; /** * Indicates the target version number of the bundle @@ -218,7 +218,7 @@ export interface BundleInfo { /** * Indicates the target version number of the bundle * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @crossplatform @@ -226,7 +226,7 @@ export interface BundleInfo { * @since 20 * @arkts 1.1&1.2 */ - readonly targetVersion: number; + readonly targetVersion: int; /** * Obtains configuration information about an application @@ -254,10 +254,21 @@ export interface BundleInfo { * @crossplatform * @atomicservice * @since 20 - * @arkts 1.1&1.2 */ readonly appInfo: ApplicationInfo; + /** + * Obtains configuration information about an application + * + * @type { ApplicationInfo | null } + * @readonly + * @syscap SystemCapability.BundleManager.BundleFramework.Core + * @crossplatform + * @since 20 + * @arkts 1.2 + */ + readonly appInfo: ApplicationInfo | null; + /** * Obtains configuration information about a module * @@ -374,10 +385,21 @@ export interface BundleInfo { * @crossplatform * @atomicservice * @since 20 - * @arkts 1.1&1.2 */ readonly signatureInfo: SignatureInfo; + /** + * Indicates the SignatureInfo of the bundle + * + * @type { SignatureInfo | null } + * @readonly + * @syscap SystemCapability.BundleManager.BundleFramework.Core + * @crossplatform + * @since 20 + * @arkts 1.2 + */ + readonly signatureInfo: SignatureInfo | null; + /** * Indicates the hap install time * @@ -389,14 +411,14 @@ export interface BundleInfo { /** * Indicates the hap install time * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly installTime: number; + readonly installTime: long; /** * Indicates the hap update time @@ -409,14 +431,14 @@ export interface BundleInfo { /** * Indicates the hap update time * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly updateTime: number; + readonly updateTime: long; /** * Indicates the router information of the application @@ -433,25 +455,25 @@ export interface BundleInfo { /** * Indicates the appIndex of application, only work in appClone mode * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly appIndex: number; + readonly appIndex: int; /** * Indicates the hap first install time * - * @type { ?number } + * @type { ?long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @atomicservice * @since arkts {'1.1':'18', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly firstInstallTime?: number; + readonly firstInstallTime?: long; } /** @@ -570,14 +592,14 @@ export interface ReqPermissionDetail { /** * Indicates the reason id of this required permissions * - * @type { number } + * @type { long } * @syscap SystemCapability.BundleManager.BundleFramework.Core * @crossplatform * @atomicservice * @since 20 * @arkts 1.1&1.2 */ - reasonId: number; + reasonId: long; /** * Indicates the used scene of this required permissions @@ -826,13 +848,13 @@ export interface AppCloneIdentity { /** * Indicates the index of clone app. * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly appIndex: number; + readonly appIndex: int; } /** @@ -842,6 +864,7 @@ export interface AppCloneIdentity { * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ export interface DynamicIconInfo { /** @@ -852,6 +875,7 @@ export interface DynamicIconInfo { * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ readonly bundleName: string; @@ -863,30 +887,33 @@ export interface DynamicIconInfo { * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ readonly moduleName: string; /** * Indicates the user id of the bundle. * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ - readonly userId: number; + readonly userId: int; /** * Indicates the index of the bundle. * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ - readonly appIndex: number; + readonly appIndex: int; } /** @@ -896,25 +923,28 @@ export interface DynamicIconInfo { * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ export interface BundleOptions { /** * Indicates the user id. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ - userId?: number; + userId?: int; /** * Indicates the app index. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ - appIndex?: number; + appIndex?: int; } diff --git a/api/bundleManager/BundlePackInfo.d.ts b/api/bundleManager/BundlePackInfo.d.ts index e8ea4a275c..60ea30db70 100644 --- a/api/bundleManager/BundlePackInfo.d.ts +++ b/api/bundleManager/BundlePackInfo.d.ts @@ -479,14 +479,14 @@ export interface AbilityFormInfo { /** * Indicates the update duration * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall * @systemapi * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly updateDuration: number; + readonly updateDuration: int; /** * Indicates the ability support dimensions @@ -526,14 +526,14 @@ export interface Version { /** * Indicates the min compatible code of this version * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall * @systemapi * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly minCompatibleVersionCode: number; + readonly minCompatibleVersionCode: int; /** * Indicates the name of this version @@ -550,14 +550,14 @@ export interface Version { /** * Indicates the code of this version * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall * @systemapi * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly code: number; + readonly code: int; } /** @@ -585,24 +585,24 @@ export interface ApiVersion { /** * Indicates the compatible version code of the api * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall * @systemapi * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly compatible: number; + readonly compatible: int; /** * Indicates the target version code of the api * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall * @systemapi * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly target: number; + readonly target: int; } diff --git a/api/bundleManager/BundleResourceInfo.d.ts b/api/bundleManager/BundleResourceInfo.d.ts index 6952f3d65b..0d5de3cfe8 100644 --- a/api/bundleManager/BundleResourceInfo.d.ts +++ b/api/bundleManager/BundleResourceInfo.d.ts @@ -82,12 +82,12 @@ export interface BundleResourceInfo { /** * Indicates the index of the bundle * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Resource * @systemapi * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly appIndex: number; + readonly appIndex: int; } diff --git a/api/bundleManager/ExtensionAbilityInfo.d.ts b/api/bundleManager/ExtensionAbilityInfo.d.ts index d863294176..663f386762 100644 --- a/api/bundleManager/ExtensionAbilityInfo.d.ts +++ b/api/bundleManager/ExtensionAbilityInfo.d.ts @@ -111,14 +111,14 @@ export interface ExtensionAbilityInfo { /** * Indicates the label id of the extension ability info * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly labelId: number; + readonly labelId: long; /** * Indicates the description id of the extension ability info @@ -131,14 +131,14 @@ export interface ExtensionAbilityInfo { /** * Indicates the description id of the extension ability info * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly descriptionId: number; + readonly descriptionId: long; /** * Indicates the icon id of the extension ability info @@ -151,14 +151,14 @@ export interface ExtensionAbilityInfo { /** * Indicates the icon id of the extension ability info * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly iconId: number; + readonly iconId: long; /** * Indicates whether this ability can be called by other abilities @@ -247,11 +247,21 @@ export interface ExtensionAbilityInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @atomicservice - * @since arkts {'1.1':'11', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ readonly applicationInfo: ApplicationInfo; + /** + * Obtains configuration information about an application + * + * @type { ApplicationInfo | null } + * @readonly + * @syscap SystemCapability.BundleManager.BundleFramework.Core + * @since 20 + * @arkts 1.2 + */ + readonly applicationInfo: ApplicationInfo | null; + /** * Indicates the metadata of bundle * @@ -347,11 +357,11 @@ export interface ExtensionAbilityInfo { /** * Indicates the appIndex of extension ability, only work in clone app mode * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly appIndex: number; + readonly appIndex: int; } diff --git a/api/bundleManager/HapModuleInfo.d.ts b/api/bundleManager/HapModuleInfo.d.ts index ae02a1d3b6..d9f0e8db65 100644 --- a/api/bundleManager/HapModuleInfo.d.ts +++ b/api/bundleManager/HapModuleInfo.d.ts @@ -129,7 +129,7 @@ export interface HapModuleInfo { /** * Indicates the icon id of this hap module * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @crossplatform @@ -137,7 +137,7 @@ export interface HapModuleInfo { * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly iconId: number; + readonly iconId: long; /** * Indicates the label of this hap module @@ -189,7 +189,7 @@ export interface HapModuleInfo { /** * Indicates the label id of this hap module * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @crossplatform @@ -197,7 +197,7 @@ export interface HapModuleInfo { * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly labelId: number; + readonly labelId: long; /** * Describes the hap module @@ -249,7 +249,7 @@ export interface HapModuleInfo { /** * Indicates the description of this hap module * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @crossplatform @@ -257,7 +257,7 @@ export interface HapModuleInfo { * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly descriptionId: number; + readonly descriptionId: long; /** * Indicates main elementName of the hap module @@ -645,14 +645,14 @@ export interface Dependency { /** * Indicates the version code of the dependency * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly versionCode: number; + readonly versionCode: long; } /** diff --git a/api/bundleManager/LauncherAbilityInfo.d.ts b/api/bundleManager/LauncherAbilityInfo.d.ts index de21df51c0..22b5bb4319 100644 --- a/api/bundleManager/LauncherAbilityInfo.d.ts +++ b/api/bundleManager/LauncherAbilityInfo.d.ts @@ -55,44 +55,44 @@ export interface LauncherAbilityInfo { /** * Obtains labelId about an launcher ability. * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Launcher * @since arkts {'1.1':'18', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly labelId: number; + readonly labelId: long; /** * Obtains iconId about an launcher ability. * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Launcher * @since arkts {'1.1':'18', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly iconId: number; + readonly iconId: long; /** * Obtains userId about an launcher ability. * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Launcher * @since arkts {'1.1':'18', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly userId: number; + readonly userId: int; /** * Obtains installTime about an launcher ability. * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Launcher * @since arkts {'1.1':'18', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly installTime: number; + readonly installTime: long; } diff --git a/api/bundleManager/LauncherAbilityResourceInfo.d.ts b/api/bundleManager/LauncherAbilityResourceInfo.d.ts index bd303e501a..5552f810d6 100644 --- a/api/bundleManager/LauncherAbilityResourceInfo.d.ts +++ b/api/bundleManager/LauncherAbilityResourceInfo.d.ts @@ -106,12 +106,12 @@ export interface LauncherAbilityResourceInfo { /** * Indicates the index of the bundle * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Resource * @systemapi * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly appIndex: number; + readonly appIndex: int; } diff --git a/api/bundleManager/Metadata.d.ts b/api/bundleManager/Metadata.d.ts index a4886fcb1b..86afd3775a 100644 --- a/api/bundleManager/Metadata.d.ts +++ b/api/bundleManager/Metadata.d.ts @@ -128,12 +128,12 @@ export interface Metadata { /** * Indicates the value id of the metadata * - * @type { ?number } + * @type { ?long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @atomicservice * @since arkts {'1.1':'18', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly valueId?: number; + readonly valueId?: long; } diff --git a/api/bundleManager/OverlayModuleInfo.d.ts b/api/bundleManager/OverlayModuleInfo.d.ts index aa2b660c73..1c9f680376 100755 --- a/api/bundleManager/OverlayModuleInfo.d.ts +++ b/api/bundleManager/OverlayModuleInfo.d.ts @@ -63,22 +63,22 @@ export interface OverlayModuleInfo { /** * Indicates the priority of the overlay module * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @since arkts {'1.1':'10', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly priority: number; + readonly priority: int; /** * Indicates the state of the overlay module * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @since arkts {'1.1':'10', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly state: number; + readonly state: int; } diff --git a/api/bundleManager/PermissionDef.d.ts b/api/bundleManager/PermissionDef.d.ts index 6d6634bea9..8b7847b0b5 100644 --- a/api/bundleManager/PermissionDef.d.ts +++ b/api/bundleManager/PermissionDef.d.ts @@ -24,7 +24,8 @@ * @typedef PermissionDef * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ export interface PermissionDef { /** @@ -34,40 +35,44 @@ export interface PermissionDef { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly permissionName: string; /** * Indicates the grant mode of this permission * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - readonly grantMode: number; + readonly grantMode: int; /** * Indicates the labelId of this permission * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - readonly labelId: number; + readonly labelId: long; /** * Indicates the descriptionId of this permission * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - readonly descriptionId: number; + readonly descriptionId: long; } diff --git a/api/bundleManager/PluginBundleInfo.d.ts b/api/bundleManager/PluginBundleInfo.d.ts index d3bc13ecb8..c92159c05c 100644 --- a/api/bundleManager/PluginBundleInfo.d.ts +++ b/api/bundleManager/PluginBundleInfo.d.ts @@ -24,7 +24,8 @@ * @typedef PluginBundleInfo * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 19 + * @since arkts {'1.1':'19', '1.2':'20'} + * @arkts 1.1&1.2 */ export interface PluginBundleInfo { /** @@ -34,20 +35,22 @@ export interface PluginBundleInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 19 + * @since arkts {'1.1':'19', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly label: string; /** * Indicates the label id of the plugin * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 19 + * @since arkts {'1.1':'19', '1.2':'20'} + * @arkts 1.1&1.2 */ - readonly labelId: number; + readonly labelId: long; /** * Indicates the icon of the plugin @@ -56,20 +59,22 @@ export interface PluginBundleInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 19 + * @since arkts {'1.1':'19', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly icon: string; /** * Indicates the icon id of the plugin * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 19 + * @since arkts {'1.1':'19', '1.2':'20'} + * @arkts 1.1&1.2 */ - readonly iconId: number; + readonly iconId: long; /** * Indicates the name of the plugin @@ -78,20 +83,22 @@ export interface PluginBundleInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 19 + * @since arkts {'1.1':'19', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly pluginBundleName: string; /** * Indicates the version code of the plugin * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 19 + * @since arkts {'1.1':'19', '1.2':'20'} + * @arkts 1.1&1.2 */ - readonly versionCode: number; + readonly versionCode: long; /** * Indicates the version name of the plugin @@ -100,7 +107,8 @@ export interface PluginBundleInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 19 + * @since arkts {'1.1':'19', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly versionName: string; @@ -111,7 +119,8 @@ export interface PluginBundleInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 19 + * @since arkts {'1.1':'19', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly pluginModuleInfos: Array; } @@ -122,7 +131,8 @@ export interface PluginBundleInfo { * @typedef PluginModuleInfo * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 19 + * @since arkts {'1.1':'19', '1.2':'20'} + * @arkts 1.1&1.2 */ export interface PluginModuleInfo { /** @@ -132,20 +142,22 @@ export interface PluginModuleInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 19 + * @since arkts {'1.1':'19', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly moduleName: string; /** * Indicates the description of the plugin * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 19 + * @since arkts {'1.1':'19', '1.2':'20'} + * @arkts 1.1&1.2 */ - readonly descriptionId: number; + readonly descriptionId: long; /** * Describes the plugin @@ -154,7 +166,8 @@ export interface PluginModuleInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 19 + * @since arkts {'1.1':'19', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly description: string; } \ No newline at end of file diff --git a/api/bundleManager/RecoverableApplicationInfo.d.ts b/api/bundleManager/RecoverableApplicationInfo.d.ts index 62b36b0eac..144d484710 100644 --- a/api/bundleManager/RecoverableApplicationInfo.d.ts +++ b/api/bundleManager/RecoverableApplicationInfo.d.ts @@ -26,7 +26,8 @@ import bundleManager from './../@ohos.bundle.bundleManager'; * @typedef RecoverableApplicationInfo * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ export interface RecoverableApplicationInfo { /** @@ -36,7 +37,8 @@ export interface RecoverableApplicationInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly bundleName: string; @@ -47,31 +49,34 @@ export interface RecoverableApplicationInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly moduleName: string; /** * Indicates the label id * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ - readonly labelId: number; + readonly labelId: long; /** * Indicates the icon id * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ - readonly iconId: number; + readonly iconId: long; /** * Indicates whether the application is a system application @@ -80,7 +85,8 @@ export interface RecoverableApplicationInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly systemApp: boolean; @@ -91,7 +97,8 @@ export interface RecoverableApplicationInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly bundleType: bundleManager.BundleType; @@ -102,7 +109,8 @@ export interface RecoverableApplicationInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly codePaths: Array; } diff --git a/api/bundleManager/RemoteAbilityInfo.d.ts b/api/bundleManager/RemoteAbilityInfo.d.ts index efd294bc3f..217b88d040 100644 --- a/api/bundleManager/RemoteAbilityInfo.d.ts +++ b/api/bundleManager/RemoteAbilityInfo.d.ts @@ -26,7 +26,8 @@ import { ElementName } from './ElementName'; * @typedef RemoteAbilityInfo * @syscap SystemCapability.BundleManager.DistributedBundleFramework * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ export interface RemoteAbilityInfo { /** @@ -36,7 +37,8 @@ export interface RemoteAbilityInfo { * @readonly * @syscap SystemCapability.BundleManager.DistributedBundleFramework * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly elementName: ElementName; @@ -47,7 +49,8 @@ export interface RemoteAbilityInfo { * @readonly * @syscap SystemCapability.BundleManager.DistributedBundleFramework * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly label: string; @@ -58,7 +61,8 @@ export interface RemoteAbilityInfo { * @readonly * @syscap SystemCapability.BundleManager.DistributedBundleFramework * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly icon: string; } diff --git a/api/bundleManager/SharedBundleInfo.d.ts b/api/bundleManager/SharedBundleInfo.d.ts index 3e8078810f..e5ce19fffe 100644 --- a/api/bundleManager/SharedBundleInfo.d.ts +++ b/api/bundleManager/SharedBundleInfo.d.ts @@ -27,7 +27,8 @@ import bundleManager from '../@ohos.bundle.bundleManager'; * @typedef SharedBundleInfo * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ export interface SharedBundleInfo { /** @@ -37,7 +38,8 @@ export interface SharedBundleInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly name: string; @@ -48,7 +50,8 @@ export interface SharedBundleInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly compatiblePolicy: bundleManager.CompatiblePolicy; @@ -59,7 +62,8 @@ export interface SharedBundleInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly sharedModuleInfo: Array; } @@ -70,7 +74,8 @@ export interface SharedBundleInfo { * @typedef SharedModuleInfo * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ export interface SharedModuleInfo { /** @@ -80,20 +85,22 @@ export interface SharedModuleInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly name: string; /** * Indicates the version code of the shared module * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ - readonly versionCode: number; + readonly versionCode: long; /** * Indicates the version name of the shared module @@ -102,7 +109,8 @@ export interface SharedModuleInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly versionName: string; @@ -113,18 +121,20 @@ export interface SharedModuleInfo { * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ readonly description: string; /** * Indicates the description of this shared module * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ - readonly descriptionId: number; + readonly descriptionId: long; } diff --git a/api/bundleManager/ShortcutInfo.d.ts b/api/bundleManager/ShortcutInfo.d.ts index 1702548420..f19e3f3fd0 100644 --- a/api/bundleManager/ShortcutInfo.d.ts +++ b/api/bundleManager/ShortcutInfo.d.ts @@ -190,12 +190,12 @@ export interface ShortcutInfo { /** * Indicates the icon id of the shortcut * - * @type { ?number } + * @type { ?long } * @syscap SystemCapability.BundleManager.BundleFramework.Launcher * @since 20 * @arkts 1.1&1.2 */ - iconId?: number; + iconId?: long; /** * Indicates the label of the shortcut @@ -244,12 +244,12 @@ export interface ShortcutInfo { /** * Indicates the label id of the shortcut * - * @type { ?number } + * @type { ?long } * @syscap SystemCapability.BundleManager.BundleFramework.Launcher * @since 20 * @arkts 1.1&1.2 */ - labelId?: number; + labelId?: long; /** * Indicates the wants of the shortcut @@ -289,12 +289,12 @@ export interface ShortcutInfo { /** * Indicates the index of application clone. * - * @type { number } + * @type { int } * @syscap SystemCapability.BundleManager.BundleFramework.Launcher * @since 20 * @arkts 1.1&1.2 */ - appIndex: number; + appIndex: int; /** * Indicates the source type of shortcut. @@ -307,12 +307,12 @@ export interface ShortcutInfo { /** * Indicates the source type of shortcut. * - * @type { number } + * @type { int } * @syscap SystemCapability.BundleManager.BundleFramework.Launcher * @since 20 * @arkts 1.1&1.2 */ - sourceType: number; + sourceType: int; /** * Display control for indicating shortcut. diff --git a/api/bundleManager/Skill.d.ts b/api/bundleManager/Skill.d.ts index 7e09ec6787..ddaedcf470 100644 --- a/api/bundleManager/Skill.d.ts +++ b/api/bundleManager/Skill.d.ts @@ -114,14 +114,14 @@ export interface SkillUri { /** * Indicates the port of the skillUri * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly port: number; + readonly port: int; /** * Indicates the path of the skillUri @@ -186,14 +186,14 @@ export interface SkillUri { /** * Indicates the maxFileSupported of the skillUri * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly maxFileSupported: number; + readonly maxFileSupported: int; /** * Indicates the linkFeature of the skillUri diff --git a/kits/@kit.AbilityKit.d.ts b/kits/@kit.AbilityKit.d.ts index 395e6da6ec..79e298304f 100644 --- a/kits/@kit.AbilityKit.d.ts +++ b/kits/@kit.AbilityKit.d.ts @@ -137,9 +137,12 @@ export { }; /*** if arkts 1.2 */ +import appControl from '@ohos.bundle.appControl'; import bundleManager from '@ohos.bundle.bundleManager'; import bundleMonitor from '@ohos.bundle.bundleMonitor'; import bundleResourceManager from '@ohos.bundle.bundleResourceManager'; +import defaultAppManager from '@ohos.bundle.defaultAppManager'; +import distributedBundleManager from '@ohos.bundle.distributedBundleManager'; import freeInstall from '@ohos.bundle.freeInstall'; import installer from '@ohos.bundle.installer'; import launcherBundleManager from '@ohos.bundle.launcherBundleManager'; @@ -147,7 +150,7 @@ import overlay from '@ohos.bundle.overlay'; import shortcutManager from '@ohos.bundle.shortcutManager'; export { - bundleManager, bundleMonitor, bundleResourceManager, freeInstall, installer, launcherBundleManager, overlay, - shortcutManager + appControl, bundleManager, bundleMonitor, bundleResourceManager, defaultAppManager, distributedBundleManager, + freeInstall, installer, launcherBundleManager, overlay, shortcutManager }; /*** endif */ -- Gitee