mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-27 17:31:12 +00:00
fix err code
Signed-off-by: xsz233 <xushizhe@huawei.com>
This commit is contained in:
parent
131090a6fb
commit
066b1bc267
5
api/@ohos.bundle.installer.d.ts
vendored
5
api/@ohos.bundle.installer.d.ts
vendored
@ -37,6 +37,7 @@ declare namespace installer {
|
||||
/**
|
||||
* Obtains the interface used to install bundle.
|
||||
* @param { AsyncCallback } callback - The callback of getting a list of BundleInstaller objects.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @returns { Promise<BundleInstaller> } BundleInstaller object.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
@ -108,6 +109,7 @@ declare namespace installer {
|
||||
* @param { InstallParam } installParam - Indicates other parameters required for the uninstall.
|
||||
* @param { AsyncCallback } callback - The callback of uninstalling application result.
|
||||
* @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE'.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @throws { BusinessError } 17700020 - The specified bundle is pre-installed bundle which cannot be uninstalled.
|
||||
@ -126,6 +128,7 @@ declare namespace installer {
|
||||
* @param { InstallParam } installParam - Indicates other parameters required for the uninstall.
|
||||
* @param { AsyncCallback } callback - The callback of uninstalling application result.
|
||||
* @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE'.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 17700004 - The specified userId is not existed.
|
||||
* @throws { BusinessError } 17700020 - The specified bundle is pre-installed bundle which cannot be uninstalled.
|
||||
@ -143,6 +146,7 @@ declare namespace installer {
|
||||
* @param { InstallParam } installParam - Indicates other parameters required for the recover.
|
||||
* @param { AsyncCallback } callback - The callback of recovering application result.
|
||||
* @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE'.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
@ -159,6 +163,7 @@ declare namespace installer {
|
||||
* @param { InstallParam } installParam - Indicates other parameters required for the recover.
|
||||
* @param { AsyncCallback } callback - The callback of recovering application result.
|
||||
* @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE'.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
|
2
api/@ohos.bundle.launcherBundleManager.d.ts
vendored
2
api/@ohos.bundle.launcherBundleManager.d.ts
vendored
@ -51,6 +51,7 @@ declare namespace launcherBundleManager {
|
||||
* @param { number } userId - Indicates the id for the user.
|
||||
* @returns { Promise<Array<LauncherAbilityInfo>> } the LauncherAbilityInfo object.
|
||||
* @throws {BusinessError} 201 - Verify permission denied.
|
||||
* @throws {BusinessError} 202 - Permission denied, non-system app called system api.
|
||||
* @throws {BusinessError} 401 - The parameter check failed.
|
||||
* @throws {BusinessError} 801 - Capability not support.
|
||||
* @throws {BusinessError} 17700001 - The specified bundle name is not found.
|
||||
@ -83,6 +84,7 @@ declare namespace launcherBundleManager {
|
||||
* @param { number } userId - Indicates the id for the user.
|
||||
* @returns { Promise<Array<LauncherAbilityInfo>> } the LauncherAbilityInfo object.
|
||||
* @throws {BusinessError} 201 - Verify permission denied.
|
||||
* @throws {BusinessError} 202 - Permission denied, non-system app called system api.
|
||||
* @throws {BusinessError} 401 - The parameter check failed.
|
||||
* @throws {BusinessError} 801 - Capability not support.
|
||||
* @throws {BusinessError} 17700004 - The specified user ID is not found.
|
||||
|
Loading…
Reference in New Issue
Block a user