From 9d2b35e44067f824c4ebc33ce9fe716b8159f279 Mon Sep 17 00:00:00 2001 From: lanhaoyu Date: Fri, 27 Jun 2025 17:41:55 +0800 Subject: [PATCH] bms sdk number to int/long/double Signed-off-by: lanhaoyu --- api/@ohos.bundle.appControl.d.ts | 40 +-- api/@ohos.bundle.bundleManager.d.ts | 300 +++++++++--------- api/@ohos.bundle.bundleMonitor.d.ts | 8 +- api/@ohos.bundle.bundleResourceManager.d.ts | 38 +-- api/@ohos.bundle.defaultAppManager.d.ts | 38 +-- api/@ohos.bundle.freeInstall.d.ts | 4 +- api/@ohos.bundle.installer.d.ts | 48 +-- api/@ohos.bundle.launcherBundleManager.d.ts | 26 +- api/@ohos.bundle.shortcutManager.d.ts | 12 +- api/@ohos.zlib.d.ts | 300 +++++++++--------- api/bundleManager/AbilityInfo.d.ts | 44 +-- api/bundleManager/AppProvisionInfo.d.ts | 12 +- api/bundleManager/ApplicationInfo.d.ts | 40 +-- api/bundleManager/BundleInfo.d.ts | 36 +-- api/bundleManager/BundlePackInfo.d.ts | 20 +- api/bundleManager/BundleResourceInfo.d.ts | 4 +- api/bundleManager/ExtensionAbilityInfo.d.ts | 16 +- 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 | 12 +- api/bundleManager/PluginBundleInfo.d.ts | 16 +- .../RecoverableApplicationInfo.d.ts | 8 +- api/bundleManager/SharedBundleInfo.d.ts | 8 +- api/bundleManager/ShortcutInfo.d.ts | 16 +- api/bundleManager/Skill.d.ts | 8 +- 28 files changed, 551 insertions(+), 551 deletions(-) diff --git a/api/@ohos.bundle.appControl.d.ts b/api/@ohos.bundle.appControl.d.ts index 37d99c504a..b0fd173c6e 100644 --- a/api/@ohos.bundle.appControl.d.ts +++ b/api/@ohos.bundle.appControl.d.ts @@ -40,7 +40,7 @@ declare namespace appControl { /** * Indicates the ability component type. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi * @since arkts {'1.1':'11', '1.2':'20'} @@ -71,7 +71,7 @@ declare namespace appControl { /** * Indicates the ability component type when uninstalled. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi * @since arkts {'1.1':'15', '1.2':'20'} @@ -92,7 +92,7 @@ declare namespace appControl { /** * Indicates when to intercept the specified application. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi * @since arkts {'1.1':'11', '1.2':'20'} @@ -131,7 +131,7 @@ declare namespace appControl { /** * Indicates the strategy to intercept the specified application. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi * @since arkts {'1.1':'11', '1.2':'20'} @@ -226,13 +226,13 @@ declare namespace appControl { /** * Indicates priority of the rule. * - * @type { number } + * @type { int } * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - priority: number; + priority: int; } /** @@ -270,13 +270,13 @@ declare namespace appControl { /** * Indicates priority of the rule. * - * @type { number } + * @type { int } * @syscap SystemCapability.BundleManager.BundleFramework.AppControl * @systemapi * @since arkts {'1.1':'15', '1.2':'20'} * @arkts 1.1&1.2 */ - priority: number; + priority: int; } /** @@ -444,7 +444,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,7 +456,7 @@ declare namespace appControl { * @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. @@ -478,7 +478,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. @@ -491,7 +491,7 @@ declare namespace appControl { * @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. @@ -514,7 +514,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. @@ -526,7 +526,7 @@ declare namespace appControl { * @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 +534,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. @@ -547,14 +547,14 @@ declare namespace appControl { * @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. @@ -567,14 +567,14 @@ declare namespace appControl { * @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. @@ -586,7 +586,7 @@ declare namespace appControl { * @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; } export default appControl; diff --git a/api/@ohos.bundle.bundleManager.d.ts b/api/@ohos.bundle.bundleManager.d.ts index 2ae13d694c..49d4451218 100644 --- a/api/@ohos.bundle.bundleManager.d.ts +++ b/api/@ohos.bundle.bundleManager.d.ts @@ -95,7 +95,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 @@ -423,7 +423,7 @@ declare namespace bundleManager { /** * Used to query the enumeration value of applicationInfo. 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'} @@ -480,7 +480,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 @@ -629,7 +629,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'} @@ -694,7 +694,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'} @@ -970,7 +970,7 @@ declare namespace bundleManager { /** * PermissionGrantState * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.BundleFramework.Core * @crossplatform * @atomicservice @@ -1045,7 +1045,7 @@ declare namespace bundleManager { /** * Support window mode * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.BundleFramework.Core * @crossplatform * @atomicservice @@ -1142,7 +1142,7 @@ declare namespace bundleManager { /** * Launch type * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.BundleFramework.Core * @crossplatform * @atomicservice @@ -1278,7 +1278,7 @@ declare namespace bundleManager { /** * Display orientation * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.BundleFramework.Core * @crossplatform * @atomicservice @@ -1637,7 +1637,7 @@ declare namespace bundleManager { /** * Indicates module type * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.BundleFramework.Core * @crossplatform * @atomicservice @@ -1726,7 +1726,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'} @@ -1773,7 +1773,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'} @@ -1800,7 +1800,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'} @@ -1821,7 +1821,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'} @@ -1904,7 +1904,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 @@ -1939,7 +1939,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'} @@ -2006,7 +2006,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 @@ -2015,7 +2015,7 @@ declare namespace bundleManager { * @since 20 * @arkts 1.1&1.2 */ - function getBundleInfoForSelf(bundleFlags: number): Promise; + function getBundleInfoForSelf(bundleFlags: int): Promise; /** * Obtains own bundleInfo. @@ -2039,7 +2039,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 @@ -2048,7 +2048,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. @@ -2072,7 +2072,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 @@ -2081,14 +2081,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. @@ -2098,15 +2098,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. @@ -2118,15 +2118,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. @@ -2137,14 +2137,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. ohos.permission.GET_BUNDLE_INFO_PRIVILEGED is required for cross user access. * * @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. @@ -2156,15 +2156,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. ohos.permission.GET_BUNDLE_INFO_PRIVILEGED is required for cross user access. * * @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. @@ -2178,15 +2178,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. ohos.permission.GET_BUNDLE_INFO_PRIVILEGED is required for cross user access. * * @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. @@ -2199,13 +2199,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. @@ -2215,14 +2215,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. @@ -2233,14 +2233,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. @@ -2251,13 +2251,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. @@ -2267,14 +2267,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. @@ -2285,15 +2285,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. @@ -2304,14 +2304,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. ohos.permission.GET_BUNDLE_INFO_PRIVILEGED is required for cross user access. * * @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. @@ -2326,15 +2326,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. ohos.permission.GET_BUNDLE_INFO_PRIVILEGED is required for cross user access. * * @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. @@ -2351,15 +2351,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. ohos.permission.GET_BUNDLE_INFO_PRIVILEGED is required for cross user access. * * @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. @@ -2375,15 +2375,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. ohos.permission.GET_BUNDLE_INFO_PRIVILEGED is required for cross user access. * * @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. @@ -2399,15 +2399,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. ohos.permission.GET_BUNDLE_INFO_PRIVILEGED is required for cross user access. * * @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. @@ -2423,7 +2423,7 @@ 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; /** * Query extension info of by utilizing a Want. ohos.permission.GET_BUNDLE_INFO_PRIVILEGED is required for cross user access. @@ -2431,7 +2431,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. @@ -2447,7 +2447,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. ohos.permission.GET_BUNDLE_INFO_PRIVILEGED is required for cross user access. @@ -2455,9 +2455,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. @@ -2473,7 +2473,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. ohos.permission.GET_BUNDLE_INFO_PRIVILEGED is required for cross user access. @@ -2481,9 +2481,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. @@ -2499,7 +2499,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. ohos.permission.GET_BUNDLE_INFO_PRIVILEGED is required for cross user access. @@ -2507,9 +2507,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. @@ -2525,7 +2525,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. ohos.permission.GET_BUNDLE_INFO_PRIVILEGED is required for cross user access. @@ -2533,9 +2533,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. @@ -2551,16 +2551,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. ohos.permission.GET_BUNDLE_INFO_PRIVILEGED is required for cross user access. * * @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. @@ -2573,14 +2573,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. @@ -2589,13 +2589,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. @@ -2604,13 +2604,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. @@ -2619,7 +2619,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). @@ -2627,7 +2627,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. @@ -2638,7 +2638,7 @@ declare namespace bundleManager { * @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). @@ -2646,7 +2646,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. @@ -2657,7 +2657,7 @@ declare namespace bundleManager { * @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). @@ -2665,7 +2665,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. @@ -2676,7 +2676,7 @@ declare namespace bundleManager { * @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. @@ -2719,7 +2719,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. @@ -2732,13 +2732,13 @@ declare namespace bundleManager { * @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 @@ -2746,7 +2746,7 @@ declare namespace bundleManager { * @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. @@ -2767,7 +2767,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. @@ -2780,7 +2780,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. @@ -2840,7 +2840,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. @@ -2854,7 +2854,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. @@ -2916,7 +2916,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. @@ -2927,7 +2927,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. @@ -2978,7 +2978,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. @@ -2990,7 +2990,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. @@ -3047,7 +3047,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. @@ -3060,7 +3060,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 @@ -3089,7 +3089,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. @@ -3102,7 +3102,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 @@ -3111,7 +3111,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. @@ -3124,7 +3124,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. @@ -3478,8 +3478,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. @@ -3492,14 +3492,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. @@ -3511,15 +3511,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. @@ -3530,14 +3530,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. @@ -3547,7 +3547,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. @@ -3638,7 +3638,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. @@ -3651,14 +3651,14 @@ declare namespace bundleManager { * @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. @@ -3671,14 +3671,14 @@ declare namespace bundleManager { * @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. @@ -3691,7 +3691,7 @@ declare namespace bundleManager { * @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. @@ -3754,7 +3754,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. @@ -3769,7 +3769,7 @@ declare namespace bundleManager { * @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. @@ -4052,7 +4052,7 @@ 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. @@ -4062,7 +4062,7 @@ declare namespace bundleManager { * @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. @@ -4086,7 +4086,7 @@ 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. @@ -4094,16 +4094,16 @@ declare namespace bundleManager { * @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. @@ -4117,15 +4117,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. @@ -4138,13 +4138,13 @@ declare namespace bundleManager { * @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. @@ -4153,14 +4153,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. @@ -4171,7 +4171,7 @@ declare namespace bundleManager { * @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. diff --git a/api/@ohos.bundle.bundleMonitor.d.ts b/api/@ohos.bundle.bundleMonitor.d.ts index 889a0cb437..99dc6d7c84 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 f9fb981015..0969cb52ae 100644 --- a/api/@ohos.bundle.bundleResourceManager.d.ts +++ b/api/@ohos.bundle.bundleResourceManager.d.ts @@ -42,7 +42,7 @@ declare namespace bundleResourceManager { /** * Used to query the enumeration value of resource info. Multiple values can be passed in the form. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.BundleFramework.Resource * @systemapi * @since arkts {'1.1':'11', '1.2':'20'} @@ -106,7 +106,7 @@ declare namespace bundleResourceManager { * * @permission ohos.permission.GET_BUNDLE_RESOURCES * @param { string } bundleName - Indicates the bundle name of the application. - * @param { number } resourceFlags - 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. @@ -117,15 +117,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] - 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. + * @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. @@ -137,14 +137,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 - 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. @@ -155,16 +155,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] - 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. + * @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. @@ -176,13 +176,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 - 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. @@ -192,13 +192,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 - 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. @@ -208,13 +208,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 - 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. @@ -224,13 +224,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 - 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. @@ -240,7 +240,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 resource info of a bundle. diff --git a/api/@ohos.bundle.defaultAppManager.d.ts b/api/@ohos.bundle.defaultAppManager.d.ts index 358a1d920b..c402034e9b 100644 --- a/api/@ohos.bundle.defaultAppManager.d.ts +++ b/api/@ohos.bundle.defaultAppManager.d.ts @@ -34,7 +34,7 @@ declare namespace defaultAppManager { /** * The constant for application type. * - * @enum { number } + * @enum { string } * @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 @@ -158,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. @@ -172,7 +172,7 @@ declare namespace defaultAppManager { * @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. @@ -198,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. @@ -212,14 +212,14 @@ declare namespace defaultAppManager { * @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. @@ -233,7 +233,7 @@ declare namespace defaultAppManager { * @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. @@ -241,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. @@ -256,7 +256,7 @@ declare namespace defaultAppManager { * @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. @@ -284,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. @@ -298,7 +298,7 @@ declare namespace defaultAppManager { * @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. @@ -306,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. @@ -319,14 +319,14 @@ declare namespace defaultAppManager { * @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. @@ -339,7 +339,7 @@ declare namespace defaultAppManager { * @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. @@ -364,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. @@ -377,14 +377,14 @@ declare namespace defaultAppManager { * @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. @@ -396,7 +396,7 @@ declare namespace defaultAppManager { * @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.freeInstall.d.ts b/api/@ohos.bundle.freeInstall.d.ts index 12a62c8872..c1814b7b4d 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'} @@ -82,7 +82,7 @@ declare namespace freeInstall { /** * Used to query the enumeration value of bundlePackInfo. * - * @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 7438c1491c..386909ce99 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,8 +1772,8 @@ 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. - * @returns { Promise } + * @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. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. @@ -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 f248440352..962c25397f 100644 --- a/api/@ohos.bundle.launcherBundleManager.d.ts +++ b/api/@ohos.bundle.launcherBundleManager.d.ts @@ -37,7 +37,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. @@ -51,14 +51,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. @@ -71,14 +71,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. @@ -88,13 +88,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. @@ -106,13 +106,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. @@ -124,7 +124,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. @@ -184,9 +184,9 @@ declare namespace launcherBundleManager { /** * Obtains shortcut info based on bundleName and userId. * - * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED + * @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. @@ -199,7 +199,7 @@ 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; /** * Starts shortcut. diff --git a/api/@ohos.bundle.shortcutManager.d.ts b/api/@ohos.bundle.shortcutManager.d.ts index ba509ddb64..e4dc6ea6d4 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>; /** * Provides information about a shortcut, including the shortcut ID and label. diff --git a/api/@ohos.zlib.d.ts b/api/@ohos.zlib.d.ts index 9cffb4b8d4..fbbf046175 100644 --- a/api/@ohos.zlib.d.ts +++ b/api/@ohos.zlib.d.ts @@ -73,7 +73,7 @@ declare namespace zlib { /** * CompressLevel * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.Zlib * @crossplatform * @atomicservice @@ -157,7 +157,7 @@ declare namespace zlib { /** * CompressStrategy * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.Zlib * @crossplatform * @atomicservice @@ -250,7 +250,7 @@ declare namespace zlib { /** * ParallelStrategy * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.Zlib * @crossplatform * @atomicservice @@ -287,7 +287,7 @@ declare namespace zlib { /** * MemLevel * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.Zlib * @crossplatform * @atomicservice @@ -348,7 +348,7 @@ declare namespace zlib { /** * CompressFlushMode * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.Zlib * @atomicservice * @since 12 @@ -415,7 +415,7 @@ declare namespace zlib { /** * Return codes for the compression/decompression functions. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.Zlib * @atomicservice * @since 12 @@ -450,7 +450,7 @@ declare namespace zlib { /** * The deflate compression method (the only one supported in this version). * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.Zlib * @atomicservice * @since 12 @@ -469,7 +469,7 @@ declare namespace zlib { /** * Define the reference point for offset. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.BundleManager.Zlib * @atomicservice * @since 12 @@ -598,22 +598,22 @@ declare namespace zlib { /** * Number of bytes available at nextIn. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.BundleManager.Zlib * @atomicservice * @since 12 */ - availableIn?: number; + availableIn?: int; /** * Total number of input bytes read so far. * - * @type { ?number } + * @type { ?long } * @syscap SystemCapability.BundleManager.Zlib * @atomicservice * @since 12 */ - totalIn?: number; + totalIn?: long; /** * Next output byte will go here. @@ -628,42 +628,42 @@ declare namespace zlib { /** * Remaining free space at nextOut. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.BundleManager.Zlib * @atomicservice * @since 12 */ - availableOut?: number; + availableOut?: int; /** * Total number of bytes output so far. * - * @type { ?number } + * @type { ?long } * @syscap SystemCapability.BundleManager.Zlib * @atomicservice * @since 12 */ - totalOut?: number; + totalOut?: long; /** * Best guess about the data type. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.BundleManager.Zlib * @atomicservice * @since 12 */ - dataType?: number; + dataType?: int; /** * Adler-32 or CRC-32 value of the uncompressed data. * - * @type { ?number } + * @type { ?long } * @syscap SystemCapability.BundleManager.Zlib * @atomicservice * @since 12 */ - adler?: number; + adler?: long; } /** @@ -688,32 +688,32 @@ declare namespace zlib { /** * Operating system. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.BundleManager.Zlib * @atomicservice * @since 12 */ - os?: number; + os?: int; /** * Modification time. * - * @type { ?number } + * @type { ?long } * @syscap SystemCapability.BundleManager.Zlib * @atomicservice * @since 12 */ - time?: number; + time?: long; /** * Extra flags. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.BundleManager.Zlib * @atomicservice * @since 12 */ - xflags?: number; + xflags?: int; /** * Extra field. @@ -728,12 +728,12 @@ declare namespace zlib { /** * Extra field length. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.BundleManager.Zlib * @atomicservice * @since 12 */ - extraLen?: number; + extraLen?: int; /** * Zero-terminated file name. @@ -798,12 +798,12 @@ declare namespace zlib { /** * Total sizeof the destination buffer. * - * @type { number } + * @type { long } * @syscap SystemCapability.BundleManager.Zlib * @atomicservice * @since 12 */ - destLen: number + destLen: long } /** @@ -828,12 +828,12 @@ declare namespace zlib { /** * Return dictionary length. * - * @type { number } + * @type { int } * @syscap SystemCapability.BundleManager.Zlib * @atomicservice * @since 12 */ - dictionaryLength: number + dictionaryLength: int } /** @@ -858,22 +858,22 @@ declare namespace zlib { /** * Total sizeof the destination buffer. * - * @type { number } + * @type { long } * @syscap SystemCapability.BundleManager.Zlib * @atomicservice * @since 12 */ - destLength: number + destLength: long /** * Total sizeof the sourceLen. * - * @type { number } + * @type { long } * @syscap SystemCapability.BundleManager.Zlib * @atomicservice * @since 12 */ - sourceLength: number + sourceLength: long } /** @@ -898,22 +898,22 @@ declare namespace zlib { /** * The number of bytes of output that have been generated. * - * @type { number } + * @type { int } * @syscap SystemCapability.BundleManager.Zlib * @atomicservice * @since 12 */ - pending: number + pending: int /** * The number of bits of output that have been generated. * - * @type { number } + * @type { int } * @syscap SystemCapability.BundleManager.Zlib * @atomicservice * @since 12 */ - bits: number + bits: int } /** @@ -967,13 +967,13 @@ declare namespace zlib { * @typedef { function } * @param { object } outDesc - Object passed to output function. Object dependency requirement implementation. * @param { ArrayBuffer } buf - Used to store data to be written. - * @param { number } length - Write the length of the output buffer. - * @returns { number } Return the number of bytes output. + * @param { int } length - Write the length of the output buffer. + * @returns { int } Return the number of bytes output. * @syscap SystemCapability.BundleManager.Zlib * @atomicservice * @since 12 */ - type InflateBackOutputCallback = (outDesc: object, buf: ArrayBuffer, length: number) => number; + type InflateBackOutputCallback = (outDesc: object, buf: ArrayBuffer, length: int) => int; /** * Compress the specified file. @@ -1209,7 +1209,7 @@ declare namespace zlib { * Get the original size of the compressed zip file, the size is the meta data stored in zip file. * * @param { string } compressedFile - Indicates the path of the compressed file. - * @returns { Promise } Returns the original size of the compressed file. + * @returns { Promise } Returns the original size of the compressed file. * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. * @throws { BusinessError } 900001 - The input source file is invalid. * @throws { BusinessError } 900003 - The input source file is not in ZIP format or is damaged. @@ -1219,7 +1219,7 @@ declare namespace zlib { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - function getOriginalSize(compressedFile: string): Promise; + function getOriginalSize(compressedFile: string): Promise; /** * Asynchronous creation of verification objects. @@ -1296,9 +1296,9 @@ declare namespace zlib { /** * Update a running Adler-32 checksum with the bytes buf. * - * @param { number } adler - Initial value of Adler32 checksum. + * @param { long } adler - Initial value of Adler32 checksum. * @param { ArrayBuffer } buf - Calculate checksum data buffer. - * @returns { Promise } Return the updated checksum. + * @returns { Promise } Return the updated checksum. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @syscap SystemCapability.BundleManager.Zlib @@ -1306,15 +1306,15 @@ declare namespace zlib { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - adler32(adler: number, buf: ArrayBuffer): Promise; + adler32(adler: long, buf: ArrayBuffer): Promise; /** * Combine two Adler-32 checksum into one. * - * @param { number } adler1 - The first Adler32 checksum. - * @param { number } adler2 - The second Adler32 checksum. - * @param { number } len2 - The length of the data block associated with the second Adler32 checksum. - * @returns { Promise } Returns the Adler-32 checksum. + * @param { long } adler1 - The first Adler32 checksum. + * @param { long } adler2 - The second Adler32 checksum. + * @param { long } len2 - The length of the data block associated with the second Adler32 checksum. + * @returns { Promise } Returns the Adler-32 checksum. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @syscap SystemCapability.BundleManager.Zlib @@ -1322,14 +1322,14 @@ declare namespace zlib { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - adler32Combine(adler1: number, adler2: number, len2: number): Promise; + adler32Combine(adler1: long, adler2: long, len2: long): Promise; /** * Update a running CRC-32 with the bytes buf. * - * @param { number } crc - Initial value of CRC-32 checksum. + * @param { long } crc - Initial value of CRC-32 checksum. * @param { ArrayBuffer } buf - Calculate checksum data buffer. - * @returns { Promise } Return the updated CRC-32. + * @returns { Promise } Return the updated CRC-32. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @syscap SystemCapability.BundleManager.Zlib @@ -1337,15 +1337,15 @@ declare namespace zlib { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - crc32(crc: number, buf: ArrayBuffer): Promise; + crc32(crc: long, buf: ArrayBuffer): Promise; /** * Combine two CRC-32 check values into one. * - * @param { number } crc1 - The first CRC-32 checksum. - * @param { number } crc2 - The second CRC-32 checksum. - * @param { number } len2 - The length of the data block associated with the second CRC-32 checksum. - * @returns { Promise } Returns the CRC-32 check value. + * @param { long } crc1 - The first CRC-32 checksum. + * @param { long } crc2 - The second CRC-32 checksum. + * @param { long } len2 - The length of the data block associated with the second CRC-32 checksum. + * @returns { Promise } Returns the CRC-32 check value. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @syscap SystemCapability.BundleManager.Zlib @@ -1353,42 +1353,42 @@ declare namespace zlib { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - crc32Combine(crc1: number, crc2: number, len2: number): Promise; + crc32Combine(crc1: long, crc2: long, len2: long): Promise; /** * Update a running CRC-64 with the bytes buf. * - * @param { number } crc - Initial value of CRC-64 checksum. + * @param { long } crc - Initial value of CRC-64 checksum. * @param { ArrayBuffer } buf - Calculate checksum data buffer. - * @returns { Promise } Return the updated CRC-64. + * @returns { Promise } Return the updated CRC-64. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @syscap SystemCapability.BundleManager.Zlib * @atomicservice * @since 12 */ - crc64(crc: number, buf: ArrayBuffer): Promise; + crc64(crc: long, buf: ArrayBuffer): Promise; /** * Get CRC-32 table. * - * @returns { Promise> } Return a array to the CRC-32 table. + * @returns { Promise> } Return a array to the CRC-32 table. * @syscap SystemCapability.BundleManager.Zlib * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - getCrcTable(): Promise>; + getCrcTable(): Promise>; /** * Get CRC-64 table. * - * @returns { Promise> } Return a array to the CRC-64 table. + * @returns { Promise> } Return a array to the CRC-64 table. * @syscap SystemCapability.BundleManager.Zlib * @atomicservice * @since 12 */ - getCrc64Table(): Promise>; + getCrc64Table(): Promise>; } /** @@ -1423,7 +1423,7 @@ declare namespace zlib { /** * Return flags indicating compile-time options. * - * @returns { Promise } Return flags indicating compile-time options. + * @returns { Promise } Return flags indicating compile-time options. * Type sizes, two bits each, 00 = 16 bits, 01 = 32, 10 = 64, 11 = other: * 1.0: size of uInt. * 3.2: size of uLong. @@ -1456,14 +1456,14 @@ declare namespace zlib { * @atomicservice * @since 12 */ - zlibCompileFlags(): Promise; + zlibCompileFlags(): Promise; /** * Compresses the source buffer into the destination buffer. * * @param { ArrayBuffer } dest - Destination buffer. * @param { ArrayBuffer } source - Source data buffer. - * @param { number } sourceLen - Source data length. + * @param { long } sourceLen - Source data length. * @returns { Promise } Return ReturnStatus and total sizeof the destination buffer. * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; 3. Parameter verification failed. @@ -1472,7 +1472,7 @@ declare namespace zlib { * @atomicservice * @since 12 */ - compress(dest: ArrayBuffer, source: ArrayBuffer, sourceLen?: number): Promise; + compress(dest: ArrayBuffer, source: ArrayBuffer, sourceLen?: long): Promise; /** * Compresses the source buffer into the destination buffer. @@ -1480,7 +1480,7 @@ declare namespace zlib { * @param { ArrayBuffer } dest - Destination buffer. * @param { ArrayBuffer } source - Source data buffer. * @param { CompressLevel } level - Compression level. - * @param { number } sourceLen - Source data length. + * @param { long } sourceLen - Source data length. * @returns { Promise } Return ReturnStatus and total sizeof the destination buffer. * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; 3. Parameter verification failed. @@ -1490,27 +1490,27 @@ declare namespace zlib { * @atomicservice * @since 12 */ - compress2(dest: ArrayBuffer, source: ArrayBuffer, level: CompressLevel, sourceLen?: number,): Promise; + compress2(dest: ArrayBuffer, source: ArrayBuffer, level: CompressLevel, sourceLen?: long,): Promise; /** * Calculate the upper limit of the return compression size. * - * @param { number } sourceLen - The length of the source data. - * @returns { Promise } Returns an upper bound on the compressed size after. + * @param { int } sourceLen - The length of the source data. + * @returns { Promise } Returns an upper bound on the compressed size after. * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; 3. Parameter verification failed. * @syscap SystemCapability.BundleManager.Zlib * @atomicservice * @since 12 */ - compressBound(sourceLen: number): Promise; + compressBound(sourceLen: int): Promise; /** * Decompress the compressed data into its original uncompressed form. * * @param { ArrayBuffer } dest - Destination buffer. * @param { ArrayBuffer } source - Source data buffer. - * @param { number } sourceLen - Source data length. + * @param { long } sourceLen - Source data length. * @returns { Promise } Return ReturnStatus and total sizeof the destination buffer. * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; 3. Parameter verification failed. @@ -1520,14 +1520,14 @@ declare namespace zlib { * @atomicservice * @since 12 */ - uncompress(dest:ArrayBuffer, source: ArrayBuffer, sourceLen?: number): Promise; + uncompress(dest:ArrayBuffer, source: ArrayBuffer, sourceLen?: long): Promise; /** * Decompress the compressed data into its original uncompressed form. * * @param { ArrayBuffer } dest - Destination buffer. * @param { ArrayBuffer } source - Source data buffer. - * @param { number } sourceLen - Source data length. + * @param { long } sourceLen - Source data length. * @returns { Promise } Return ReturnStatus and total sizeof the destination buffer and total sizeof the sourceLen. * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; 3. Parameter verification failed. @@ -1537,13 +1537,13 @@ declare namespace zlib { * @atomicservice * @since 12 */ - uncompress2(dest: ArrayBuffer, source: ArrayBuffer, sourceLen?: number): Promise; + uncompress2(dest: ArrayBuffer, source: ArrayBuffer, sourceLen?: long): Promise; /** * Verify the checksum inside the structure of compressed stream z_stream. * * @param { ZStream } strm - Object to structure z_stream. - * @param { number } check - Expected checksum. + * @param { int } check - Expected checksum. * @returns { Promise } Return ReturnStatus the specific meaning is defined as enum. * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; 3. Parameter verification failed. @@ -1552,7 +1552,7 @@ declare namespace zlib { * @atomicservice * @since 12 */ - inflateValidate(strm: ZStream, check: number): Promise; + inflateValidate(strm: ZStream, check: int): Promise; /** * Find a synchronization point for the current decompressed stream. @@ -1618,7 +1618,7 @@ declare namespace zlib { * This function is equivalent to inflateEnd followed by inflateInit, but does not free and reallocate the internal decompression state. * * @param { ZStream } strm - Object to structure z_stream. - * @param { number } windowBits - Parameter is interpreted the same as it is for inflateInit2. + * @param { int } windowBits - Parameter is interpreted the same as it is for inflateInit2. * @returns { Promise } Return ReturnStatus the specific meaning is defined as enum. * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; 3. Parameter verification failed. @@ -1627,7 +1627,7 @@ declare namespace zlib { * @atomicservice * @since 12 */ - inflateReset2(strm: ZStream, windowBits: number): Promise; + inflateReset2(strm: ZStream, windowBits: int): Promise; /** * This function is equivalent to inflateEnd followed by inflateInit, but does not free and reallocate the internal decompression state. @@ -1647,8 +1647,8 @@ declare namespace zlib { * This function inserts bits in the inflate input stream. * * @param { ZStream } strm - Object to structure z_stream. - * @param { number } bits - The provided bits. - * @param { number } value - The provided value. + * @param { int } bits - The provided bits. + * @param { int } value - The provided value. * @returns { Promise } Return ReturnStatus the specific meaning is defined as enum. * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; 3. Parameter verification failed. @@ -1657,26 +1657,26 @@ declare namespace zlib { * @atomicservice * @since 12 */ - inflatePrime(strm: ZStream, bits: number, value: number): Promise; + inflatePrime(strm: ZStream, bits: int, value: int): Promise; /** * Is used to mark locations in the input data for random access. * * @param { ZStream } strm - Object to structure z_stream. - * @returns { Promise } Return the internal marker position of the current decompressed stream. + * @returns { Promise } Return the internal marker position of the current decompressed stream. * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; 3. Parameter verification failed. * @syscap SystemCapability.BundleManager.Zlib * @atomicservice * @since 12 */ - inflateMark(strm: ZStream): Promise; + inflateMark(strm: ZStream): Promise; /** * Initializes the internal stream state for decompression. * * @param { ZStream } strm - Object to structure z_stream. - * @param { number } windowBits - Is the base two logarithm of the maximum window size. + * @param { int } windowBits - Is the base two logarithm of the maximum window size. * It should be in the range 8..15 for this version of the library. The default value is 15 if inflateInit is used instead. * windowBits must be greater than or equal to the windowBits value provided to deflateInit2() while compressing, * or it must be equal to 15 if deflateInit2() was not used. If a compressed stream with a larger window size is given as input, @@ -1702,7 +1702,7 @@ declare namespace zlib { * @atomicservice * @since 12 */ - inflateInit2(strm: ZStream, windowBits: number): Promise; + inflateInit2(strm: ZStream, windowBits: int): Promise; /** * Initializes the internal stream state for decompression. @@ -1779,20 +1779,20 @@ declare namespace zlib { * Obtain the number of Huffman encoding trees that have been used in the current decompression stream during the inflate process. * * @param { ZStream } strm - Object to structure z_stream. - * @returns { Promise } Return the number of used Huffman encoding trees. + * @returns { Promise } Return the number of used Huffman encoding trees. * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; 3. Parameter verification failed. * @syscap SystemCapability.BundleManager.Zlib * @atomicservice * @since 12 */ - inflateCodesUsed(strm: ZStream): Promise; + inflateCodesUsed(strm: ZStream): Promise; /** * Initialize the internal stream state for decompression using inflateBack() calls. * * @param { ZStream } strm - Object to structure z_stream. - * @param { number } windowBits - Parameter is interpreted the same as it is for inflateInit2. The value range is between 8~15. + * @param { long } windowBits - Parameter is interpreted the same as it is for inflateInit2. The value range is between 8~15. * @param { ArrayBuffer } window - The preset sliding window buffer. * @returns { Promise } Return ReturnStatus the specific meaning is defined as enum. * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified; @@ -1802,7 +1802,7 @@ declare namespace zlib { * @atomicservice * @since 12 */ - inflateBackInit(strm: ZStream, windowBits: number, window: ArrayBuffer): Promise; + inflateBackInit(strm: ZStream, windowBits: long, window: ArrayBuffer): Promise; /** * All memory allocated by inflateBackInit() is freed. @@ -1873,7 +1873,7 @@ declare namespace zlib { * @param { ZStream } strm - Object to structure z_stream. * @param { CompressLevel } level - Compression level. * @param { CompressMethod } method - The compression method. - * @param { number } windowBits - Parameter is interpreted the same as it is for inflateInit2. + * @param { int } windowBits - Parameter is interpreted the same as it is for inflateInit2. * @param { MemLevel } memLevel - The memory usage level. * @param { CompressStrategy } strategy - The compression strategy. * @returns { Promise } Return ReturnStatus the specific meaning is defined as enum. @@ -1884,7 +1884,7 @@ declare namespace zlib { * @atomicservice * @since 12 */ - deflateInit2(strm: ZStream, level: CompressLevel, method: CompressMethod, windowBits: number, + deflateInit2(strm: ZStream, level: CompressLevel, method: CompressMethod, windowBits: int, memLevel: MemLevel, strategy: CompressStrategy): Promise; /** @@ -1921,15 +1921,15 @@ declare namespace zlib { * Calculate an upper bound on the compressed size. * * @param { ZStream } strm - Object to structure z_stream. - * @param { number } sourceLength - The length of uncompressed data. - * @returns { Promise } Return an upper bound on the compressed size. + * @param { long } sourceLength - The length of uncompressed data. + * @returns { Promise } Return an upper bound on the compressed size. * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; 3. Parameter verification failed. * @syscap SystemCapability.BundleManager.Zlib * @atomicservice * @since 12 */ - deflateBound(strm: ZStream, sourceLength: number): Promise; + deflateBound(strm: ZStream, sourceLength: long): Promise; /** * Provides gzip header information for when a gzip stream is requested by deflateInit2(). @@ -1994,10 +1994,10 @@ declare namespace zlib { * Fine tune deflate's internal compression parameters. * * @param { ZStream } strm - Object to structure z_stream. - * @param { number } goodLength - Good matching length threshold. - * @param { number } maxLazy - Maximum lazy matching times. - * @param { number } niceLength - Good Lazy Length Threshold. - * @param { number } maxChain - Maximum chain length. + * @param { int } goodLength - Good matching length threshold. + * @param { int } maxLazy - Maximum lazy matching times. + * @param { int } niceLength - Good Lazy Length Threshold. + * @param { int } maxChain - Maximum chain length. * @returns { Promise } Return ReturnStatus the specific meaning is defined as enum. * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; 3. Parameter verification failed. @@ -2006,7 +2006,7 @@ declare namespace zlib { * @atomicservice * @since 12 */ - deflateTune(strm: ZStream, goodLength: number, maxLazy: number, niceLength: number, maxChain: number): Promise; + deflateTune(strm: ZStream, goodLength: int, maxLazy: int, niceLength: int, maxChain: int): Promise; /** * This function is equivalent to deflateEnd followed by deflateInit, but does not free and reallocate the internal compression state. @@ -2070,8 +2070,8 @@ declare namespace zlib { * Inserts bits in the deflate output stream. * * @param { ZStream } strm - Object to structure z_stream. - * @param { number } bits - The number of bits to be inserted. The value range is between 0~16. - * @param { number } value - The bit value corresponding to the number of bits. + * @param { int } bits - The number of bits to be inserted. The value range is between 0~16. + * @param { int } value - The bit value corresponding to the number of bits. * @returns { Promise } Return ReturnStatus the specific meaning is defined as enum. * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; 3. Parameter verification failed. @@ -2080,7 +2080,7 @@ declare namespace zlib { * @atomicservice * @since 12 */ - deflatePrime(strm: ZStream, bits: number, value: number): Promise; + deflatePrime(strm: ZStream, bits: int, value: int): Promise; } /** @@ -2096,7 +2096,7 @@ declare namespace zlib { /** * Associate a gzFile with the file descriptor fd. * - * @param { number } fd - The file descriptor. Usually this is obtained through system calls to 'open' or other methods. + * @param { int } fd - The file descriptor. Usually this is obtained through system calls to 'open' or other methods. * @param { string } mode - Used to specify access mode. * @returns { Promise } * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified; @@ -2106,13 +2106,13 @@ declare namespace zlib { * @atomicservice * @since 12 */ - gzdopen(fd: number, mode: string): Promise; + gzdopen(fd: int, mode: string): Promise; /** * Set the internal buffer size used by this library's functions for file to size. * - * @param { number } size - The internal buffer size to be set. - * @returns { Promise } Returns 0 on success. + * @param { long } size - The internal buffer size to be set. + * @returns { Promise } Returns 0 on success. * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17800009 - Internal structure error. @@ -2120,7 +2120,7 @@ declare namespace zlib { * @atomicservice * @since 12 */ - gzbuffer(size: number): Promise; + gzbuffer(size: long): Promise; /** * Open the gzip (.gz) file at path for reading and decompressing, or compressing and writing. @@ -2140,22 +2140,22 @@ declare namespace zlib { /** * Check if the reading position of the gzip compressed file has reached the end of the file. * - * @returns { Promise } Return 1 (true) if the end-of-file indicator for file has been set while reading. + * @returns { Promise } Return 1 (true) if the end-of-file indicator for file has been set while reading. * @syscap SystemCapability.BundleManager.Zlib * @atomicservice * @since 12 */ - gzeof(): Promise; + gzeof(): Promise; /** * Check if the specified gzip file handle file directly accesses the original uncompressed data. * - * @returns { Promise } returns 1 (true) if transparent writing was requested. + * @returns { Promise } returns 1 (true) if transparent writing was requested. * @syscap SystemCapability.BundleManager.Zlib * @atomicservice * @since 12 */ - gzdirect(): Promise; + gzdirect(): Promise; /** * Flush all pending output for file, if necessary, close file and deallocate the (de)compression state. @@ -2193,13 +2193,13 @@ declare namespace zlib { /** * Read and decompress one byte from file. * - * @returns { Promise } Return the ASCII code of a character. + * @returns { Promise } Return the ASCII code of a character. * @throws { BusinessError } 17800009 - Internal structure error. * @syscap SystemCapability.BundleManager.Zlib * @atomicservice * @since 12 */ - gzgetc(): Promise; + gzgetc(): Promise; /** * Flush all pending output to file. @@ -2219,9 +2219,9 @@ declare namespace zlib { * Compress and write nitems items of size size from buf to file. * * @param { ArrayBuffer } buf - The buffer to write data to. - * @param { number } size - The number of bytes in a single data block. - * @param { number } nitems - Number of data blocks to be written. - * @returns { Promise } Return the number of full items written of size size. + * @param { long } size - The number of bytes in a single data block. + * @param { long } nitems - Number of data blocks to be written. + * @returns { Promise } Return the number of full items written of size size. * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17800009 - Internal structure error. @@ -2229,15 +2229,15 @@ declare namespace zlib { * @atomicservice * @since 12 */ - gzfwrite(buf: ArrayBuffer, size: number, nitems: number): Promise; + gzfwrite(buf: ArrayBuffer, size: long, nitems: long): Promise; /** * Read and decompress data from gzip compressed files. * * @param { ArrayBuffer } buf - Target buffer for storing read results. - * @param { number } size - The number of bytes in a single data block. - * @param { number } nitems - Number of data blocks to be read. - * @returns { Promise } Return the number of full items read of size size. + * @param { long } size - The number of bytes in a single data block. + * @param { long } nitems - Number of data blocks to be read. + * @returns { Promise } Return the number of full items read of size size. * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17800009 - Internal structure error. @@ -2245,7 +2245,7 @@ declare namespace zlib { * @atomicservice * @since 12 */ - gzfread(buf: ArrayBuffer, size: number, nitems: number): Promise; + gzfread(buf: ArrayBuffer, size: long, nitems: long): Promise; /** * Same as gzclose(), gzclosew() only for use when writing or appending. @@ -2274,8 +2274,8 @@ declare namespace zlib { * Compress and write the len uncompressed bytes at buf to file. * * @param { ArrayBuffer } buf - Object to the data buffer to be written. - * @param { number } len - The len uncompressed bytes. - * @returns { Promise } Return the number of uncompressed bytes written. + * @param { long } len - The len uncompressed bytes. + * @returns { Promise } Return the number of uncompressed bytes written. * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17800009 - Internal structure error. @@ -2283,13 +2283,13 @@ declare namespace zlib { * @atomicservice * @since 12 */ - gzwrite(buf: ArrayBuffer, len: number): Promise; + gzwrite(buf: ArrayBuffer, len: long): Promise; /** * Push c back onto the stream for file to be read as the first character on the next read. * - * @param { number } c - To fall back to the character before the input stream. - * @returns { Promise } Return the character pushed. + * @param { int } c - To fall back to the character before the input stream. + * @returns { Promise } Return the character pushed. * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17800009 - Internal structure error. @@ -2297,18 +2297,18 @@ declare namespace zlib { * @atomicservice * @since 12 */ - gzungetc(c: number): Promise; + gzungetc(c: int): Promise; /** * Return the starting position for the next gzread or gzwrite on file. * - * @returns { Promise } Return the starting position for the next gzread or gzwrite on file. + * @returns { Promise } Return the starting position for the next gzread or gzwrite on file. * @throws { BusinessError } 17800009 - Internal structure error. * @syscap SystemCapability.BundleManager.Zlib * @atomicservice * @since 12 */ - gztell(): Promise; + gztell(): Promise; /** * Dynamically update the compression level and strategy for file. @@ -2328,9 +2328,9 @@ declare namespace zlib { /** * Set the starting position to offset relative to whence for the next gzread or gzwrite on file. * - * @param { number } offset - Specify the new offset to move to. + * @param { long } offset - Specify the new offset to move to. * @param { OffsetReferencePoint } whence - Define the reference point for offset. - * @returns { Promise } Return the resulting offset location as measured in bytes from the beginning of the uncompressed stream. + * @returns { Promise } Return the resulting offset location as measured in bytes from the beginning of the uncompressed stream. * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17800009 - Internal structure error. @@ -2338,7 +2338,7 @@ declare namespace zlib { * @atomicservice * @since 12 */ - gzseek(offset: number, whence: OffsetReferencePoint): Promise; + gzseek(offset: long, whence: OffsetReferencePoint): Promise; /** * Rewind file. This function is supported only for reading. @@ -2355,7 +2355,7 @@ declare namespace zlib { * Read and decompress up to len uncompressed bytes from file into buf. * * @param { ArrayBuffer } buf - User provided buffer address. - * @returns { Promise } Return the number of uncompressed bytes actually read, less than len for end of file. + * @returns { Promise } Return the number of uncompressed bytes actually read, less than len for end of file. * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17800009 - Internal structure error. @@ -2363,13 +2363,13 @@ declare namespace zlib { * @atomicservice * @since 12 */ - gzread(buf: ArrayBuffer): Promise; + gzread(buf: ArrayBuffer): Promise; /** * Compress and write the given null-terminated string s to file, excluding the terminating null character. * * @param { string } str - Format descriptors and plain text. - * @returns { Promise } Return the number of characters written. + * @returns { Promise } Return the number of characters written. * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17800009 - Internal structure error. @@ -2377,13 +2377,13 @@ declare namespace zlib { * @atomicservice * @since 12 */ - gzputs(str: string): Promise; + gzputs(str: string): Promise; /** * Compress and write c, converted to an unsigned char, into file. * - * @param { number } char - Write ASCII values for characters. - * @returns { Promise } Return the value that was written. + * @param { int } ch - Write ASCII values for characters. + * @returns { Promise } Return the value that was written. * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17800009 - Internal structure error. @@ -2391,14 +2391,14 @@ declare namespace zlib { * @atomicservice * @since 12 */ - gzputc(char: number): Promise; + gzputc(ch: int): Promise; /** * Convert, format, compress, and write the arguments to file under control of the string format, as in fprintf. * * @param { string } format - Format descriptors and plain text. * @param { Array } args - Variable argument lists. - * @returns { Promise } Return the number of uncompressed bytes actually written. + * @returns { Promise } Return the number of uncompressed bytes actually written. * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17800004 - ZStream error. @@ -2407,18 +2407,18 @@ declare namespace zlib { * @atomicservice * @since 12 */ - gzprintf(format: string, ...args: Array): Promise; + gzprintf(format: string, ...args: Array): Promise; /** * Return the current compressed (actual) read or write offset of file. * - * @returns { Promise } Return the current compressed (actual) read or write offset of file. + * @returns { Promise } Return the current compressed (actual) read or write offset of file. * @throws { BusinessError } 17800009 - Internal structure error. * @syscap SystemCapability.BundleManager.Zlib * @atomicservice * @since 12 */ - gzoffset(): Promise; + gzoffset(): Promise; /** * Read and decompress bytes from file into buf, until len-1 characters are read, or until a newline character is read and transferred to buf, diff --git a/api/bundleManager/AbilityInfo.d.ts b/api/bundleManager/AbilityInfo.d.ts index c178036ae4..19e7675b4f 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 @@ -720,25 +720,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 +787,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 +795,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 +817,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 +825,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 +847,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 +855,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 +877,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 +885,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 +907,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 +915,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 +937,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 +945,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 98ed464fce..fde167d360 100644 --- a/api/bundleManager/AppProvisionInfo.d.ts +++ b/api/bundleManager/AppProvisionInfo.d.ts @@ -31,14 +31,14 @@ export interface AppProvisionInfo { /** * Indicates the version code of the profile file. * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @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. @@ -188,24 +188,24 @@ export interface Validity { /** * Indicates the earliest validity of the profile file. * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @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 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 5a0ba69cf8..0ca6bfa0d3 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 @@ -853,14 +853,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; } /** @@ -973,13 +973,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; } /** @@ -1020,24 +1020,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 4cd6d423c8..39159d0df1 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 @@ -389,14 +389,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 +409,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 +433,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 +570,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,11 +826,11 @@ 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; } 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 a5474cace3..3c597f5798 100644 --- a/api/bundleManager/BundleResourceInfo.d.ts +++ b/api/bundleManager/BundleResourceInfo.d.ts @@ -81,12 +81,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..c4fb184a03 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 @@ -347,11 +347,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 789a485885..930c593c6f 100644 --- a/api/bundleManager/LauncherAbilityResourceInfo.d.ts +++ b/api/bundleManager/LauncherAbilityResourceInfo.d.ts @@ -105,12 +105,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 da2d1b139e..e049546ef8 100644 --- a/api/bundleManager/Metadata.d.ts +++ b/api/bundleManager/Metadata.d.ts @@ -129,12 +129,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 100644 --- 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 4b93792ec6..8b7847b0b5 100644 --- a/api/bundleManager/PermissionDef.d.ts +++ b/api/bundleManager/PermissionDef.d.ts @@ -43,36 +43,36 @@ export interface PermissionDef { /** * Indicates the grant mode of this permission * - * @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 grantMode: number; + readonly grantMode: int; /** * Indicates the labelId of this permission * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @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 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 40933b54af..c92159c05c 100644 --- a/api/bundleManager/PluginBundleInfo.d.ts +++ b/api/bundleManager/PluginBundleInfo.d.ts @@ -43,14 +43,14 @@ export interface PluginBundleInfo { /** * Indicates the label id of the plugin * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @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 @@ -67,14 +67,14 @@ export interface PluginBundleInfo { /** * Indicates the icon id of the plugin * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @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 @@ -91,14 +91,14 @@ export interface PluginBundleInfo { /** * Indicates the version code of the plugin * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @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 @@ -150,14 +150,14 @@ export interface PluginModuleInfo { /** * Indicates the description of the plugin * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since arkts {'1.1':'19', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly descriptionId: number; + readonly descriptionId: long; /** * Describes the plugin diff --git a/api/bundleManager/RecoverableApplicationInfo.d.ts b/api/bundleManager/RecoverableApplicationInfo.d.ts index 29b78aed38..144d484710 100644 --- a/api/bundleManager/RecoverableApplicationInfo.d.ts +++ b/api/bundleManager/RecoverableApplicationInfo.d.ts @@ -57,26 +57,26 @@ export interface RecoverableApplicationInfo { /** * Indicates the label id * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @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 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 diff --git a/api/bundleManager/SharedBundleInfo.d.ts b/api/bundleManager/SharedBundleInfo.d.ts index 4065fc3925..e5ce19fffe 100644 --- a/api/bundleManager/SharedBundleInfo.d.ts +++ b/api/bundleManager/SharedBundleInfo.d.ts @@ -93,14 +93,14 @@ export interface SharedModuleInfo { /** * Indicates the version code of the shared module * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @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 @@ -129,12 +129,12 @@ export interface SharedModuleInfo { /** * Indicates the description of this shared module * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @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 141d227202..f36d271a2c 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; } /** 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 -- Gitee