mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-23 23:30:15 +00:00
IssueNo:#I7FIXW
Description:modify api Sig:SIG_ApplicaitonFramework Feature or Bugfix:Bugfix Binary Source:No Signed-off-by: wangtiantian <wangtiantian19@huawei.com>
This commit is contained in:
parent
612f56d017
commit
23da77f244
32
api/@ohos.bundle.bundleManager.d.ts
vendored
32
api/@ohos.bundle.bundleManager.d.ts
vendored
@ -1759,6 +1759,38 @@ declare namespace bundleManager {
|
||||
*/
|
||||
function getAppProvisionInfo(bundleName: string, userId?: number): Promise<AppProvisionInfo>;
|
||||
|
||||
/**
|
||||
* Obtains the distribution type specified during bundle installation.
|
||||
*
|
||||
* @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED
|
||||
* @param { string } bundleName - Indicates the application bundle name to be queried.
|
||||
* @returns { string } The specified distribution type.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
* @since 10
|
||||
*/
|
||||
function getSpecifiedDistributionType(bundleName: string): string;
|
||||
|
||||
/**
|
||||
* Obtains the additional information during bundle installation.
|
||||
*
|
||||
* @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED
|
||||
* @param { string } bundleName - Indicates the application bundle name to be queried.
|
||||
* @returns { string } The additional information.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
* @since 10
|
||||
*/
|
||||
function getAdditionalInfo(bundleName: string): string;
|
||||
|
||||
/**
|
||||
* Obtains configuration information about an application.
|
||||
*
|
||||
|
32
api/@ohos.bundle.installer.d.ts
vendored
32
api/@ohos.bundle.installer.d.ts
vendored
@ -47,38 +47,6 @@ declare namespace installer {
|
||||
*/
|
||||
function getBundleInstaller(): Promise<BundleInstaller>;
|
||||
|
||||
/**
|
||||
* Obtains the distribution type specified during bundle installation.
|
||||
*
|
||||
* @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED
|
||||
* @param { string } bundleName - Indicates the application bundle name to be queried.
|
||||
* @returns { string } The specified distribution type.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
* @since 10
|
||||
*/
|
||||
function getSpecifiedDistributionType(bundleName: string): string;
|
||||
|
||||
/**
|
||||
* Obtains the additional information during bundle installation.
|
||||
*
|
||||
* @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED
|
||||
* @param { string } bundleName - Indicates the application bundle name to be queried.
|
||||
* @returns { string } The additional information.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
* @since 10
|
||||
*/
|
||||
function getAdditionalInfo(bundleName: string): string;
|
||||
|
||||
/**
|
||||
* Bundle installer interface, include install uninstall recover.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user