mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-23 07:10:52 +00:00
【BMS】401错误码整改-类型错误和数量错误
Signed-off-by: Zhou Shihui <zhoushihui4@huawei.com>
This commit is contained in:
parent
4ba62db297
commit
0887a4bafb
22
api/@ohos.bundle.appControl.d.ts
vendored
22
api/@ohos.bundle.appControl.d.ts
vendored
@ -200,7 +200,7 @@ declare namespace appControl {
|
||||
* @param { AsyncCallback<void> } callback - The callback of setting the disposed status result.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700005 - The specified app ID is empty string.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.AppControl
|
||||
@ -218,7 +218,7 @@ declare namespace appControl {
|
||||
* @returns { Promise<void> } The result of setting the disposed status of a specified bundle.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700005 - The specified app ID is empty string.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.AppControl
|
||||
@ -235,7 +235,7 @@ declare namespace appControl {
|
||||
* @param { Want } disposedWant - Indicates the disposed want.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700005 - The specified app ID is empty string.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.AppControl
|
||||
@ -252,7 +252,7 @@ declare namespace appControl {
|
||||
* @param { AsyncCallback<Want> } callback - The callback of getting the disposed status of a specified bundle result.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700005 - The specified app ID is empty string.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.AppControl
|
||||
@ -269,7 +269,7 @@ declare namespace appControl {
|
||||
* @returns { Promise<Want> } Returns the disposed status of a specified bundle.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700005 - The specified app ID is empty string.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.AppControl
|
||||
@ -286,7 +286,7 @@ declare namespace appControl {
|
||||
* @returns { Want } Returns the disposed status of a specified bundle.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700005 - The specified app ID is empty string.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.AppControl
|
||||
@ -303,7 +303,7 @@ declare namespace appControl {
|
||||
* @param { AsyncCallback<void> } callback - the callback of deleting the disposed status of a specified bundle result.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700005 - The specified app ID is empty string.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.AppControl
|
||||
@ -320,7 +320,7 @@ declare namespace appControl {
|
||||
* @returns { Promise<void> } Returns the result of deleting the disposed status of a specified bundle.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700005 - The specified app ID is empty string.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.AppControl
|
||||
@ -336,7 +336,7 @@ declare namespace appControl {
|
||||
* @param { string } appId - Indicates the app ID of the application.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700005 - The specified app ID is empty string.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.AppControl
|
||||
@ -353,7 +353,7 @@ declare namespace appControl {
|
||||
* @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.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700005 - The specified app ID is an empty string.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.AppControl
|
||||
@ -370,7 +370,7 @@ declare namespace appControl {
|
||||
* @param { DisposedRule } rule - Indicates 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.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700005 - The specified app ID is an empty string.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.AppControl
|
||||
|
158
api/@ohos.bundle.bundleManager.d.ts
vendored
158
api/@ohos.bundle.bundleManager.d.ts
vendored
@ -1288,7 +1288,7 @@ declare namespace bundleManager {
|
||||
*
|
||||
* @param { number } bundleFlags - Indicates the flag used to specify information contained in the BundleInfo objects that will be returned.
|
||||
* @returns { Promise<BundleInfo> } The result of getting the bundle info.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -1297,7 +1297,7 @@ declare namespace bundleManager {
|
||||
*
|
||||
* @param { number } bundleFlags - Indicates the flag used to specify information contained in the BundleInfo objects that will be returned.
|
||||
* @returns { Promise<BundleInfo> } The result of getting the bundle info.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @atomicservice
|
||||
* @since 11
|
||||
@ -1309,7 +1309,7 @@ declare namespace bundleManager {
|
||||
*
|
||||
* @param { number } bundleFlags - Indicates the flag used to specify information contained in the BundleInfo objects that will be returned.
|
||||
* @param { AsyncCallback<BundleInfo> } callback - The callback of getting bundle info result.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @since 9
|
||||
*/
|
||||
@ -1318,7 +1318,7 @@ declare namespace bundleManager {
|
||||
*
|
||||
* @param { number } bundleFlags - Indicates the flag used to specify information contained in the BundleInfo objects that will be returned.
|
||||
* @param { AsyncCallback<BundleInfo> } callback - The callback of getting bundle info result.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @atomicservice
|
||||
* @since 11
|
||||
@ -1330,7 +1330,7 @@ declare namespace bundleManager {
|
||||
*
|
||||
* @param { number } bundleFlags - 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 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @since 10
|
||||
*/
|
||||
@ -1339,7 +1339,7 @@ declare namespace bundleManager {
|
||||
*
|
||||
* @param { number } bundleFlags - 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 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @atomicservice
|
||||
* @since 11
|
||||
@ -1355,7 +1355,7 @@ declare namespace bundleManager {
|
||||
* @param { AsyncCallback<BundleInfo> } callback - The callback of getting bundle info result.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @throws { BusinessError } 17700026 - The specified bundle is disabled.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
@ -1374,7 +1374,7 @@ declare namespace bundleManager {
|
||||
* @param { AsyncCallback<BundleInfo> } callback - The callback of getting bundle info result.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @throws { BusinessError } 17700026 - The specified bundle is disabled.
|
||||
@ -1395,7 +1395,7 @@ declare namespace bundleManager {
|
||||
* @returns { Promise<BundleInfo> } The result of getting the bundle info.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @throws { BusinessError } 17700026 - The specified bundle is disabled.
|
||||
@ -1414,7 +1414,7 @@ declare namespace bundleManager {
|
||||
* @param { AsyncCallback<ApplicationInfo> } callback - The callback of getting application info result.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @throws { BusinessError } 17700026 - The specified bundle is disabled.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
@ -1433,7 +1433,7 @@ declare namespace bundleManager {
|
||||
* @param { AsyncCallback<ApplicationInfo> } callback - The callback of getting application info result.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @throws { BusinessError } 17700026 - The specified bundle is disabled.
|
||||
@ -1454,7 +1454,7 @@ declare namespace bundleManager {
|
||||
* @returns { Promise<ApplicationInfo> } The result of getting the application info.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @throws { BusinessError } 17700026 - The specified bundle is disabled.
|
||||
@ -1472,7 +1472,7 @@ declare namespace bundleManager {
|
||||
* @param { AsyncCallback<Array<BundleInfo>> } 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.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
* @since 9
|
||||
@ -1488,7 +1488,7 @@ declare namespace bundleManager {
|
||||
* @param { AsyncCallback<Array<BundleInfo>> } 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.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
@ -1505,7 +1505,7 @@ declare namespace bundleManager {
|
||||
* @returns { Promise<Array<BundleInfo>> } Returns a list of BundleInfo objects.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
@ -1521,7 +1521,7 @@ declare namespace bundleManager {
|
||||
* @param { AsyncCallback<Array<ApplicationInfo>> } 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.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
* @since 9
|
||||
@ -1537,7 +1537,7 @@ declare namespace bundleManager {
|
||||
* @param { AsyncCallback<Array<ApplicationInfo>> } 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.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
@ -1555,7 +1555,7 @@ declare namespace bundleManager {
|
||||
* @returns { Promise<Array<ApplicationInfo>> } Returns a list of ApplicationInfo objects.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
@ -1797,7 +1797,7 @@ declare namespace bundleManager {
|
||||
* @param { AsyncCallback<string> } callback - The callback of getting bundle name.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700021 - The uid is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
@ -1813,7 +1813,7 @@ declare namespace bundleManager {
|
||||
* @returns { Promise<string> } Returns the bundle name.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700021 - The uid is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
@ -1829,7 +1829,7 @@ declare namespace bundleManager {
|
||||
* @returns { string } Returns the bundle name.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700021 - The uid is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
@ -1847,7 +1847,7 @@ declare namespace bundleManager {
|
||||
* @param { AsyncCallback<BundleInfo> } 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.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700022 - The hapFilePath is invalid.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
@ -1865,7 +1865,7 @@ declare namespace bundleManager {
|
||||
* @returns { Promise<BundleInfo> } Returns the BundleInfo object.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700022 - The hapFilePath is invalid.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
@ -1883,7 +1883,7 @@ declare namespace bundleManager {
|
||||
* @returns { BundleInfo } Returns the BundleInfo object.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700022 - The hapFilePath is invalid.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
@ -1899,7 +1899,7 @@ declare namespace bundleManager {
|
||||
* @param { AsyncCallback<void> } callback - The callback of cleaning bundle cache files result.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @throws { BusinessError } 17700030 - The specified bundle does not support clearing of cache files.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
@ -1916,7 +1916,7 @@ declare namespace bundleManager {
|
||||
* @returns { Promise<void> } Clean bundle cache files result
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @throws { BusinessError } 17700030 - The specified bundle does not support clearing of cache files.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
@ -1934,7 +1934,7 @@ declare namespace bundleManager {
|
||||
* @param { AsyncCallback<void> } callback - The callback of setting app enabled result.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
@ -1951,7 +1951,7 @@ declare namespace bundleManager {
|
||||
* @returns { Promise<void> } set app enabled result.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
@ -1967,7 +1967,7 @@ declare namespace bundleManager {
|
||||
* @param { boolean } isEnabled - The value true means to enable it, and the value false means to disable it.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
@ -1984,7 +1984,7 @@ declare namespace bundleManager {
|
||||
* @param { AsyncCallback<void> } callback - The callback of setting ability enabled result.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @throws { BusinessError } 17700003 - The specified abilityInfo is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
@ -2002,7 +2002,7 @@ declare namespace bundleManager {
|
||||
* @returns { Promise<void> } set ability enabled result.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @throws { BusinessError } 17700003 - The specified abilityInfo is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
@ -2019,7 +2019,7 @@ declare namespace bundleManager {
|
||||
* @param { boolean } isEnabled - The value true means to enable it, and the value false means to disable it.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @throws { BusinessError } 17700003 - The specified abilityInfo is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
@ -2034,7 +2034,7 @@ declare namespace bundleManager {
|
||||
* @param { string } bundleName - Indicates the bundle name of the application.
|
||||
* @param { AsyncCallback<boolean> } callback - The callback of checking application enabled result. The result is true if enabled, false otherwise.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
@ -2048,7 +2048,7 @@ declare namespace bundleManager {
|
||||
* @param { string } bundleName - Indicates the bundle name of the application.
|
||||
* @returns { Promise<boolean> } Returns true if the application is enabled; returns false otherwise.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
@ -2062,7 +2062,7 @@ declare namespace bundleManager {
|
||||
* @param { string } bundleName - Indicates the bundle name of the application.
|
||||
* @returns { boolean } Returns true if the application is enabled; returns false otherwise.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
@ -2076,7 +2076,7 @@ declare namespace bundleManager {
|
||||
* @param { AbilityInfo } info - Indicates information about the ability to check.
|
||||
* @param { AsyncCallback<boolean> } callback - The callback of checking ability enabled result. The result is true if enabled, false otherwise.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @throws { BusinessError } 17700003 - The specified abilityName is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
@ -2091,7 +2091,7 @@ declare namespace bundleManager {
|
||||
* @param { AbilityInfo } info - Indicates information about the ability to check.
|
||||
* @returns { Promise<boolean> } Returns true if the ability is enabled; returns false otherwise.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @throws { BusinessError } 17700003 - The specified abilityName is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
@ -2106,7 +2106,7 @@ declare namespace bundleManager {
|
||||
* @param { AbilityInfo } info - Indicates information about the ability to check.
|
||||
* @returns { boolean } Returns true if the ability is enabled; returns false otherwise.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @throws { BusinessError } 17700003 - The specified abilityName is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
@ -2126,7 +2126,7 @@ declare namespace bundleManager {
|
||||
* @param { AsyncCallback<Want> } 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.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @throws { BusinessError } 17700026 - The specified bundle is disabled.
|
||||
@ -2146,7 +2146,7 @@ declare namespace bundleManager {
|
||||
* @param { AsyncCallback<Want> } 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.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @throws { BusinessError } 17700026 - The specified bundle is disabled.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
@ -2166,7 +2166,7 @@ declare namespace bundleManager {
|
||||
* @returns { Promise<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.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @throws { BusinessError } 17700026 - The specified bundle is disabled.
|
||||
@ -2187,7 +2187,7 @@ declare namespace bundleManager {
|
||||
* @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.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @throws { BusinessError } 17700026 - The specified bundle is disabled.
|
||||
@ -2204,7 +2204,7 @@ declare namespace bundleManager {
|
||||
* @param { string } abilityName - Indicates the abilityName of the application.
|
||||
* @param { string } metadataName - Indicates the name of metadata in ability.
|
||||
* @param { AsyncCallback<Array<string>> } callback - The callback of returning string in json-format of the corresponding config file.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700002 - The specified moduleName is not existed.
|
||||
* @throws { BusinessError } 17700003 - The specified abilityName is not existed.
|
||||
* @throws { BusinessError } 17700024 - Failed to get the profile because there is no profile in the HAP.
|
||||
@ -2220,7 +2220,7 @@ declare namespace bundleManager {
|
||||
* @param { string } abilityName - Indicates the abilityName of the application.
|
||||
* @param { string } metadataName - Indicates the name of metadata in ability.
|
||||
* @param { AsyncCallback<Array<string>> } callback - The callback of returning string in json-format of the corresponding config file.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700002 - The specified moduleName is not existed.
|
||||
* @throws { BusinessError } 17700003 - The specified abilityName is not existed.
|
||||
* @throws { BusinessError } 17700024 - Failed to get the profile because there is no profile in the HAP.
|
||||
@ -2239,7 +2239,7 @@ declare namespace bundleManager {
|
||||
* @param { string } abilityName - Indicates the abilityName of the application.
|
||||
* @param { string } metadataName - Indicates the name of metadata in ability.
|
||||
* @returns { Promise<Array<string>> } Returns string in json-format of the corresponding config file.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700002 - The specified moduleName is not existed.
|
||||
* @throws { BusinessError } 17700003 - The specified abilityName is not existed.
|
||||
* @throws { BusinessError } 17700024 - Failed to get the profile because there is no profile in the HAP.
|
||||
@ -2255,7 +2255,7 @@ declare namespace bundleManager {
|
||||
* @param { string } abilityName - Indicates the abilityName of the application.
|
||||
* @param { string } metadataName - Indicates the name of metadata in ability.
|
||||
* @returns { Promise<Array<string>> } Returns string in json-format of the corresponding config file.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700002 - The specified moduleName is not existed.
|
||||
* @throws { BusinessError } 17700003 - The specified abilityName is not existed.
|
||||
* @throws { BusinessError } 17700024 - Failed to get the profile because there is no profile in the HAP.
|
||||
@ -2274,7 +2274,7 @@ declare namespace bundleManager {
|
||||
* @param { string } abilityName - Indicates the abilityName of the application.
|
||||
* @param { string } metadataName - Indicates the name of metadata in ability.
|
||||
* @returns { Array<string> } Returns string in json-format of the corresponding config file.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700002 - The specified moduleName is not existed.
|
||||
* @throws { BusinessError } 17700003 - The specified abilityName is not existed.
|
||||
* @throws { BusinessError } 17700024 - Failed to get the profile because there is no profile in the HAP.
|
||||
@ -2290,7 +2290,7 @@ declare namespace bundleManager {
|
||||
* @param { string } abilityName - Indicates the abilityName of the application.
|
||||
* @param { string } metadataName - Indicates the name of metadata in ability.
|
||||
* @returns { Array<string> } Returns string in json-format of the corresponding config file.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700002 - The specified moduleName is not existed.
|
||||
* @throws { BusinessError } 17700003 - The specified abilityName is not existed.
|
||||
* @throws { BusinessError } 17700024 - Failed to get the profile because there is no profile in the HAP.
|
||||
@ -2309,7 +2309,7 @@ declare namespace bundleManager {
|
||||
* @param { string } extensionAbilityName - Indicates the extensionAbilityName of the application.
|
||||
* @param { string } metadataName - Indicates the name of metadata in ability.
|
||||
* @param { AsyncCallback<Array<string>> } callback - The callback of returning string in json-format of the corresponding config file.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700002 - The specified moduleName is not existed.
|
||||
* @throws { BusinessError } 17700003 - The specified extensionAbilityName not existed.
|
||||
* @throws { BusinessError } 17700024 - Failed to get the profile because there is no profile in the HAP.
|
||||
@ -2324,7 +2324,7 @@ declare namespace bundleManager {
|
||||
* @param { string } extensionAbilityName - Indicates the extensionAbilityName of the application.
|
||||
* @param { string } metadataName - Indicates the name of metadata in ability.
|
||||
* @param { AsyncCallback<Array<string>> } callback - The callback of returning string in json-format of the corresponding config file.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700002 - The specified moduleName is not existed.
|
||||
* @throws { BusinessError } 17700003 - The specified extensionAbilityName not existed.
|
||||
* @throws { BusinessError } 17700024 - Failed to get the profile because there is no profile in the HAP.
|
||||
@ -2342,7 +2342,7 @@ declare namespace bundleManager {
|
||||
* @param { string } extensionAbilityName - Indicates the extensionAbilityName of the application.
|
||||
* @param { string } metadataName - Indicates the name of metadata in ability.
|
||||
* @returns { Promise<Array<string>> } Returns string in json-format of the corresponding config file.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700002 - The specified moduleName is not existed.
|
||||
* @throws { BusinessError } 17700003 - The specified extensionAbilityName not existed.
|
||||
* @throws { BusinessError } 17700024 - Failed to get the profile because there is no profile in the HAP.
|
||||
@ -2357,7 +2357,7 @@ declare namespace bundleManager {
|
||||
* @param { string } extensionAbilityName - Indicates the extensionAbilityName of the application.
|
||||
* @param { string } metadataName - Indicates the name of metadata in ability.
|
||||
* @returns { Promise<Array<string>> } Returns string in json-format of the corresponding config file.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700002 - The specified moduleName is not existed.
|
||||
* @throws { BusinessError } 17700003 - The specified extensionAbilityName not existed.
|
||||
* @throws { BusinessError } 17700024 - Failed to get the profile because there is no profile in the HAP.
|
||||
@ -2375,7 +2375,7 @@ declare namespace bundleManager {
|
||||
* @param { string } extensionAbilityName - Indicates the extensionAbilityName of the application.
|
||||
* @param { string } metadataName - Indicates the name of metadata in ability.
|
||||
* @returns { Array<string> } Returns string in json-format of the corresponding config file.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700002 - The specified moduleName is not existed.
|
||||
* @throws { BusinessError } 17700003 - The specified extensionAbilityName not existed.
|
||||
* @throws { BusinessError } 17700024 - Failed to get the profile because there is no profile in the HAP.
|
||||
@ -2390,7 +2390,7 @@ declare namespace bundleManager {
|
||||
* @param { string } extensionAbilityName - Indicates the extensionAbilityName of the application.
|
||||
* @param { string } metadataName - Indicates the name of metadata in ability.
|
||||
* @returns { Array<string> } Returns string in json-format of the corresponding config file.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700002 - The specified moduleName is not existed.
|
||||
* @throws { BusinessError } 17700003 - The specified extensionAbilityName not existed.
|
||||
* @throws { BusinessError } 17700024 - Failed to get the profile because there is no profile in the HAP.
|
||||
@ -2409,7 +2409,7 @@ declare namespace bundleManager {
|
||||
* @param { AsyncCallback<PermissionDef> } callback - The callback of get permissionDef object result.
|
||||
* @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 } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700006 - The specified permission is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
@ -2425,7 +2425,7 @@ declare namespace bundleManager {
|
||||
* @returns { Promise<PermissionDef> } Returns permissionDef object.
|
||||
* @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 } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700006 - The specified permission is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
@ -2441,7 +2441,7 @@ declare namespace bundleManager {
|
||||
* @returns { PermissionDef } Returns permissionDef object.
|
||||
* @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 } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700006 - The specified permission is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
@ -2459,7 +2459,7 @@ declare namespace bundleManager {
|
||||
* @param { AsyncCallback<string> } callback - The callback of getting ability label result.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @throws { BusinessError } 17700002 - The specified moduleName is not found.
|
||||
@ -2482,7 +2482,7 @@ declare namespace bundleManager {
|
||||
* @returns { Promise<string> } Returns the label representing the label of the specified ability.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @throws { BusinessError } 17700002 - The specified moduleName is not found.
|
||||
@ -2505,7 +2505,7 @@ declare namespace bundleManager {
|
||||
* @returns { string } Returns the label representing the label of the specified ability.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @throws { BusinessError } 17700002 - The specified moduleName is not found.
|
||||
@ -2528,7 +2528,7 @@ declare namespace bundleManager {
|
||||
* @returns { ApplicationInfo } - Returns the ApplicationInfo object.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @throws { BusinessError } 17700026 - The specified bundle is disabled.
|
||||
@ -2547,7 +2547,7 @@ declare namespace bundleManager {
|
||||
* @returns { ApplicationInfo } - Returns the ApplicationInfo object.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @throws { BusinessError } 17700026 - The specified bundle is disabled.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
@ -2566,7 +2566,7 @@ declare namespace bundleManager {
|
||||
* @returns { BundleInfo } - Returns the BundleInfo object.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @throws { BusinessError } 17700026 - The specified bundle is disabled.
|
||||
@ -2585,7 +2585,7 @@ declare namespace bundleManager {
|
||||
* @returns { BundleInfo } - Returns the BundleInfo object.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @throws { BusinessError } 17700026 - The specified bundle is disabled.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
@ -2629,7 +2629,7 @@ declare namespace bundleManager {
|
||||
* @param { AsyncCallback<Array<SharedBundleInfo>> } callback - The callback of getting a list of SharedBundleInfo objects.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @throws { BusinessError } 17700002 - The specified moduleName is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
@ -2647,7 +2647,7 @@ declare namespace bundleManager {
|
||||
* @returns { Promise<Array<SharedBundleInfo>> } Returns a list of SharedBundleInfo objects.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @throws { BusinessError } 17700002 - The specified moduleName is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
@ -2734,7 +2734,7 @@ declare namespace bundleManager {
|
||||
* @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 } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
@ -2768,7 +2768,7 @@ declare namespace bundleManager {
|
||||
* @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.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @throws { BusinessError } 17700002 - The specified moduleName is not found.
|
||||
* @throws { BusinessError } 17700024 - Failed to get the profile because the specified profile is not found in the HAP.
|
||||
@ -2788,7 +2788,7 @@ declare namespace bundleManager {
|
||||
* @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.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @throws { BusinessError } 17700002 - The specified moduleName is not found.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
@ -2808,7 +2808,7 @@ declare namespace bundleManager {
|
||||
* @returns { Promise<Array<string>> } Returns getExtResource result.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @throws { BusinessError } 17700303 - GetExtResource failed due to no extend resource.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
@ -2826,7 +2826,7 @@ declare namespace bundleManager {
|
||||
* @returns { Promise<void> } Returns enableDynamicIcon result.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @throws { BusinessError } 17700002 - The specified moduleName is not found.
|
||||
* @throws { BusinessError } 17700304 - EnableDynamicIcon failed due to parse dynamic icon failed.
|
||||
@ -2844,7 +2844,7 @@ declare namespace bundleManager {
|
||||
* @returns { Promise<void> } Returns disableDynamicIcon result.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @throws { BusinessError } 17700305 - DisableDynamicIcon failed due to no dynamic icon.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
@ -2861,7 +2861,7 @@ declare namespace bundleManager {
|
||||
* @returns { Promise<string> } Returns dynamic icon key.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @throws { BusinessError } 17700306 - No dynamic icon.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
@ -2878,7 +2878,7 @@ declare namespace bundleManager {
|
||||
* @param { boolean } deleteOriginalFiles - Used to decide whether to delete the original files.
|
||||
* @param { AsyncCallback<void> } callback - Indicates the callback of verifyAbc result.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700201 - verifyAbc failed.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @since 11
|
||||
@ -2893,7 +2893,7 @@ declare namespace bundleManager {
|
||||
* @param { boolean } deleteOriginalFiles - Used to decide whether to delete the original files.
|
||||
* @returns { Promise<void> } Returns verifyAbc result.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700201 - verifyAbc failed.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @since 11
|
||||
@ -2950,7 +2950,7 @@ declare namespace bundleManager {
|
||||
* @param { string } abcPath - The abc path.
|
||||
* @returns { Promise<void> } Returns deleteAbc result.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700202 - deleteAbc failed.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @since 11
|
||||
@ -2962,7 +2962,7 @@ declare namespace bundleManager {
|
||||
*
|
||||
* @param { string } link - Indicates the link to be opened.
|
||||
* @returns { boolean } Returns true if the link can be opened; returns false otherwise.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700055 - The specified link is invalid.
|
||||
* @throws { BusinessError } 17700056 - The scheme of the specified link is not in the querySchemes.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
@ -2995,7 +2995,7 @@ declare namespace bundleManager {
|
||||
* @returns { Array<String> } Returns a list of developerId.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
* @since 12
|
||||
@ -3010,7 +3010,7 @@ declare namespace bundleManager {
|
||||
* @param { boolean } state - Indicates whether the specified application can be uninstalled.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @throws { BusinessError } 17700060 - The specified application can not be uninstalled.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
|
4
api/@ohos.bundle.bundleMonitor.d.ts
vendored
4
api/@ohos.bundle.bundleMonitor.d.ts
vendored
@ -75,7 +75,7 @@ declare namespace bundleMonitor {
|
||||
* @param { Callback<BundleChangedInfo> } callback - Indicates the callback to be register.
|
||||
* @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 } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
* @since 9
|
||||
@ -90,7 +90,7 @@ declare namespace bundleMonitor {
|
||||
* @param { Callback<BundleChangedInfo> } callback - Indicates the callback to be unregister.
|
||||
* @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 } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
* @since 9
|
||||
|
12
api/@ohos.bundle.bundleResourceManager.d.ts
vendored
12
api/@ohos.bundle.bundleResourceManager.d.ts
vendored
@ -96,7 +96,7 @@ declare namespace bundleResourceManager {
|
||||
* @returns { BundleResourceInfo } Returns the BundleResourceInfo object.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Resource
|
||||
* @systemapi
|
||||
@ -113,7 +113,7 @@ declare namespace bundleResourceManager {
|
||||
* @returns { Array<LauncherAbilityResourceInfo> } Returns a list of LauncherAbilityResourceInfo objects.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Resource
|
||||
* @systemapi
|
||||
@ -129,7 +129,7 @@ declare namespace bundleResourceManager {
|
||||
* @param { AsyncCallback<Array<BundleResourceInfo>> } 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.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Resource
|
||||
* @systemapi
|
||||
* @since 11
|
||||
@ -144,7 +144,7 @@ declare namespace bundleResourceManager {
|
||||
* @returns { Promise<Array<BundleResourceInfo>> } Returns a list of BundleResourceInfo objects.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Resource
|
||||
* @systemapi
|
||||
* @since 11
|
||||
@ -159,7 +159,7 @@ declare namespace bundleResourceManager {
|
||||
* @param { AsyncCallback<Array<LauncherAbilityResourceInfo>> } 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.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Resource
|
||||
* @systemapi
|
||||
* @since 11
|
||||
@ -174,7 +174,7 @@ declare namespace bundleResourceManager {
|
||||
* @returns { Promise<Array<LauncherAbilityResourceInfo>> } Returns a list of LauncherAbilityResourceInfo objects.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Resource
|
||||
* @systemapi
|
||||
* @since 11
|
||||
|
30
api/@ohos.bundle.defaultAppManager.d.ts
vendored
30
api/@ohos.bundle.defaultAppManager.d.ts
vendored
@ -108,7 +108,7 @@ declare namespace defaultAppManager {
|
||||
*
|
||||
* @param { string } type - Application type or a file type that conforms to media type format.
|
||||
* @param { AsyncCallback<boolean> } callback - The callback of querying default application result.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp
|
||||
* @since 9
|
||||
@ -120,7 +120,7 @@ declare namespace defaultAppManager {
|
||||
*
|
||||
* @param { string } type - Application type or a file type that conforms to media type format.
|
||||
* @returns { Promise<boolean> } Return true if caller is default application; return false otherwise.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp
|
||||
* @since 9
|
||||
@ -132,7 +132,7 @@ declare namespace defaultAppManager {
|
||||
*
|
||||
* @param { string } type - Application type or a file type that conforms to media type format.
|
||||
* @returns { boolean } Return true if caller is default application; return false otherwise.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp
|
||||
* @since 10
|
||||
@ -148,7 +148,7 @@ declare namespace defaultAppManager {
|
||||
* @param { AsyncCallback<BundleInfo> } callback - The callback of the BundleInfo object result.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @throws { BusinessError } 17700023 - The specified default app does not exist.
|
||||
@ -167,7 +167,7 @@ declare namespace defaultAppManager {
|
||||
* @param { AsyncCallback<BundleInfo> } callback - The callback of the BundleInfo object result.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700023 - The specified default app does not exist.
|
||||
* @throws { BusinessError } 17700025 - The specified type is invalid.
|
||||
@ -186,7 +186,7 @@ declare namespace defaultAppManager {
|
||||
* @returns { Promise<BundleInfo> } Return the BundleInfo object.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @throws { BusinessError } 17700023 - The specified default app does not exist.
|
||||
@ -206,7 +206,7 @@ declare namespace defaultAppManager {
|
||||
* @returns { BundleInfo } Return the BundleInfo object.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @throws { BusinessError } 17700023 - The specified default app does not exist.
|
||||
@ -227,7 +227,7 @@ declare namespace defaultAppManager {
|
||||
* @param { AsyncCallback<void> } callback - The callback of setting default application result.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @throws { BusinessError } 17700025 - The specified type is invalid.
|
||||
@ -248,7 +248,7 @@ declare namespace defaultAppManager {
|
||||
* @param { AsyncCallback<void> } callback - The callback of setting default application result.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700025 - The specified type is invalid.
|
||||
* @throws { BusinessError } 17700028 - The specified ability does not match the type.
|
||||
@ -268,7 +268,7 @@ declare namespace defaultAppManager {
|
||||
* @returns { Promise<void> } The result of setting default application.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @throws { BusinessError } 17700025 - The specified type is invalid.
|
||||
@ -288,7 +288,7 @@ declare namespace defaultAppManager {
|
||||
* @param { number } 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 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @throws { BusinessError } 17700025 - The specified type is invalid.
|
||||
@ -308,7 +308,7 @@ declare namespace defaultAppManager {
|
||||
* @param { AsyncCallback<void> } callback - The callback of resetting default application result.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @throws { BusinessError } 17700025 - The specified type is invalid.
|
||||
@ -326,7 +326,7 @@ declare namespace defaultAppManager {
|
||||
* @param { AsyncCallback<void> } callback - The callback of resetting default application result.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700025 - The specified type is invalid.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.DefaultApp
|
||||
@ -344,7 +344,7 @@ declare namespace defaultAppManager {
|
||||
* @returns { Promise<void> } The result of resetting default application.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @throws { BusinessError } 17700025 - The specified type is invalid.
|
||||
@ -362,7 +362,7 @@ declare namespace defaultAppManager {
|
||||
* @param { number } 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 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @throws { BusinessError } 17700025 - The specified type is invalid.
|
||||
|
16
api/@ohos.bundle.distributedBundleManager.d.ts
vendored
16
api/@ohos.bundle.distributedBundleManager.d.ts
vendored
@ -39,7 +39,7 @@ declare namespace distributedBundleManager {
|
||||
* @param { AsyncCallback<RemoteAbilityInfo> } callback - The callback of getting the ability info of the remote device.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700001 - The specified bundle name is not found.
|
||||
* @throws { BusinessError } 17700003 - The specified ability name is not found.
|
||||
@ -59,7 +59,7 @@ declare namespace distributedBundleManager {
|
||||
* @returns { Promise<RemoteAbilityInfo> } Returns the ability info of the remote device.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700001 - The specified bundle name is not found.
|
||||
* @throws { BusinessError } 17700003 - The specified ability name is not found.
|
||||
@ -79,7 +79,7 @@ declare namespace distributedBundleManager {
|
||||
* @param { AsyncCallback<Array<RemoteAbilityInfo>> } callback - the callback of getting the abilities info of the remote device.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700001 - The specified bundle name is not found.
|
||||
* @throws { BusinessError } 17700003 - The specified ability name is not found.
|
||||
@ -100,7 +100,7 @@ declare namespace distributedBundleManager {
|
||||
* @returns { Promise<Array<RemoteAbilityInfo>> } The result of getting the abilities info of the remote device.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700001 - The specified bundle name is not found.
|
||||
* @throws { BusinessError } 17700003 - The specified ability name is not found.
|
||||
@ -121,7 +121,7 @@ declare namespace distributedBundleManager {
|
||||
* @param { AsyncCallback<RemoteAbilityInfo> } callback - The callback of getting the ability info of the remote device.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700001 - The specified bundle name is not found.
|
||||
* @throws { BusinessError } 17700003 - The specified ability name is not found.
|
||||
@ -143,7 +143,7 @@ declare namespace distributedBundleManager {
|
||||
* @returns { Promise<RemoteAbilityInfo> } The result of getting the ability info of the remote device.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700001 - The specified bundle name is not found.
|
||||
* @throws { BusinessError } 17700003 - The specified ability name is not found.
|
||||
@ -164,7 +164,7 @@ declare namespace distributedBundleManager {
|
||||
* @param { AsyncCallback<Array<RemoteAbilityInfo>> } callback - Returns the abilities info of the remote device.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700001 - The specified bundle name is not found.
|
||||
* @throws { BusinessError } 17700003 - The specified ability name is not found.
|
||||
@ -186,7 +186,7 @@ declare namespace distributedBundleManager {
|
||||
* @returns { Promise<Array<RemoteAbilityInfo>> } Returns the abilities info of the remote device.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700001 - The specified bundle name is not found.
|
||||
* @throws { BusinessError } 17700003 - The specified ability name is not found.
|
||||
|
12
api/@ohos.bundle.freeInstall.d.ts
vendored
12
api/@ohos.bundle.freeInstall.d.ts
vendored
@ -119,7 +119,7 @@ declare namespace freeInstall {
|
||||
* @param { AsyncCallback<void> } callback - The callback of setting module upgrade flag result.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700001 - The specified bundle name is not found.
|
||||
* @throws { BusinessError } 17700002 - The specified module name is not found.
|
||||
@ -140,7 +140,7 @@ declare namespace freeInstall {
|
||||
* @returns { Promise<void> } - Return the result of setting module upgrade flag.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700001 - The specified bundle name is not found.
|
||||
* @throws { BusinessError } 17700002 - The specified module name is not found.
|
||||
@ -160,7 +160,7 @@ declare namespace freeInstall {
|
||||
* The result is true if the module is removable, false otherwise.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700001 - The specified bundle name is not found.
|
||||
* @throws { BusinessError } 17700002 - The specified module name is not found.
|
||||
@ -179,7 +179,7 @@ declare namespace freeInstall {
|
||||
* @returns { Promise<boolean> } Returns true if the module is removable; returns false otherwise.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700001 - The specified bundle name is not found.
|
||||
* @throws { BusinessError } 17700002 - The specified module name is not found.
|
||||
@ -198,7 +198,7 @@ declare namespace freeInstall {
|
||||
* @param { AsyncCallback<BundlePackInfo> } callback - The callback of getting the BundlePackInfo object result.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700001 - The specified bundle name is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
|
||||
@ -217,7 +217,7 @@ declare namespace freeInstall {
|
||||
* @returns { Promise<BundlePackInfo> } Returns the BundlePackInfo object.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not supported.
|
||||
* @throws { BusinessError } 17700001 - The specified bundle name is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.FreeInstall
|
||||
|
40
api/@ohos.bundle.installer.d.ts
vendored
40
api/@ohos.bundle.installer.d.ts
vendored
@ -34,7 +34,7 @@ declare namespace installer {
|
||||
*
|
||||
* @param { AsyncCallback<BundleInstaller> } callback - The callback of BundleInstaller object.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
* @since 9
|
||||
@ -81,7 +81,7 @@ declare namespace installer {
|
||||
* @param { AsyncCallback<void> } callback - The callback of installing haps 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 } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @throws { BusinessError } 17700010 - Failed to install the HAP because the HAP fails to be parsed.
|
||||
* @throws { BusinessError } 17700011 - Failed to install the HAP because the HAP signature fails to be verified.
|
||||
@ -117,7 +117,7 @@ declare namespace installer {
|
||||
* @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_BUNDLE' or
|
||||
* 'ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE'.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter hapFiles is needed for code signature; 4. The size of specifiedDistributionType is greater than 128; 5. The size of additionalInfo is greater than 3000.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @throws { BusinessError } 17700010 - Failed to install the HAP because the HAP fails to be parsed.
|
||||
* @throws { BusinessError } 17700011 - Failed to install the HAP because the HAP signature fails to be verified.
|
||||
@ -191,7 +191,7 @@ declare namespace installer {
|
||||
* @param { AsyncCallback<void> } callback - The callback of installing haps 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 } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700010 - Failed to install the HAP because the HAP fails to be parsed.
|
||||
* @throws { BusinessError } 17700011 - Failed to install the HAP because the HAP signature fails to be verified.
|
||||
* @throws { BusinessError } 17700012 - Failed to install the HAP because the HAP path is invalid or the HAP is too large.
|
||||
@ -225,7 +225,7 @@ declare namespace installer {
|
||||
* @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_BUNDLE' or
|
||||
* 'ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE'.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700010 - Failed to install the HAP because the HAP fails to be parsed.
|
||||
* @throws { BusinessError } 17700011 - Failed to install the HAP because the HAP signature fails to be verified.
|
||||
* @throws { BusinessError } 17700012 - Failed to install the HAP because the HAP path is invalid or the HAP is too large.
|
||||
@ -261,7 +261,7 @@ declare namespace installer {
|
||||
* @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_BUNDLE' or
|
||||
* 'ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE'.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700010 - Failed to install the HAP because the HAP fails to be parsed.
|
||||
* @throws { BusinessError } 17700011 - Failed to install the HAP because the HAP signature fails to be verified.
|
||||
* @throws { BusinessError } 17700012 - Failed to install the HAP because the HAP path is invalid or the HAP is too large.
|
||||
@ -297,7 +297,7 @@ declare namespace installer {
|
||||
* @returns { Promise<void> }
|
||||
* @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 } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @throws { BusinessError } 17700010 - Failed to install the HAP because the HAP fails to be parsed.
|
||||
* @throws { BusinessError } 17700011 - Failed to install the HAP because the HAP signature fails to be verified.
|
||||
@ -333,7 +333,7 @@ declare namespace installer {
|
||||
* @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_BUNDLE' or
|
||||
* 'ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE' or 'ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE'.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter hapFiles is needed for code signature; 4. The size of specifiedDistributionType is greater than 128; 5. The size of additionalInfo is greater than 3000.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @throws { BusinessError } 17700010 - Failed to install the HAP because the HAP fails to be parsed.
|
||||
* @throws { BusinessError } 17700011 - Failed to install the HAP because the HAP signature fails to be verified.
|
||||
@ -408,7 +408,7 @@ declare namespace installer {
|
||||
* @param { AsyncCallback<void> } callback - The callback of uninstalling application result.
|
||||
* @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.UNINSTALL_BUNDLE'.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundle name is not found.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @throws { BusinessError } 17700020 - The specified bundle is pre-installed bundle which cannot be uninstalled.
|
||||
@ -428,7 +428,7 @@ declare namespace installer {
|
||||
* @param { AsyncCallback<void> } callback - The callback of uninstalling application result.
|
||||
* @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.UNINSTALL_BUNDLE'.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundle name is not found.
|
||||
* @throws { BusinessError } 17700020 - The specified bundle is pre-installed bundle which cannot be uninstalled.
|
||||
* @throws { BusinessError } 17700040 - The specified bundle is a shared bundle which cannot be uninstalled.
|
||||
@ -448,7 +448,7 @@ declare namespace installer {
|
||||
* @returns { Promise<void> }
|
||||
* @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.UNINSTALL_BUNDLE'.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundle name is not found.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @throws { BusinessError } 17700020 - The specified bundle is pre-installed bundle which cannot be uninstalled.
|
||||
@ -469,7 +469,7 @@ declare namespace installer {
|
||||
* @param { AsyncCallback<void> } callback - The callback of recovering application result.
|
||||
* @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.RECOVER_BUNDLE'.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundle name is not found.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
@ -486,7 +486,7 @@ declare namespace installer {
|
||||
* @param { AsyncCallback<void> } callback - The callback of recovering application result.
|
||||
* @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.RECOVER_BUNDLE'.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundle name is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
@ -503,7 +503,7 @@ declare namespace installer {
|
||||
* @returns { Promise<void> }
|
||||
* @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.RECOVER_BUNDLE'.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundle name is not found.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
@ -520,7 +520,7 @@ declare namespace installer {
|
||||
* @param { AsyncCallback<void> } callback - The callback of uninstalling shared bundle result.
|
||||
* @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.UNINSTALL_BUNDLE'.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700020 - The specified bundle is pre-installed bundle which cannot be uninstalled.
|
||||
* @throws { BusinessError } 17700037 - The version of shared bundle is dependent on other applications.
|
||||
* @throws { BusinessError } 17700038 - The specified shared bundle does not exist.
|
||||
@ -538,7 +538,7 @@ declare namespace installer {
|
||||
* @returns { Promise<void> }
|
||||
* @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.UNINSTALL_BUNDLE'.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700020 - The specified bundle is pre-installed bundle which cannot be uninstalled.
|
||||
* @throws { BusinessError } 17700037 - The version of shared bundle is dependent on other applications.
|
||||
* @throws { BusinessError } 17700038 - The specified shared bundle does not exist.
|
||||
@ -590,7 +590,7 @@ declare namespace installer {
|
||||
* @param { AsyncCallback<void> } callback - Indicates the callback used to return the HAP installation result.
|
||||
* @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_SELF_BUNDLE'.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700010 - Failed to install the HAP because the HAP fails to be parsed.
|
||||
* @throws { BusinessError } 17700011 - Failed to install the HAP because the HAP signature fails to be verified.
|
||||
* @throws { BusinessError } 17700012 - Failed to install the HAP because the HAP path is invalid or the HAP is too large.
|
||||
@ -657,7 +657,7 @@ declare namespace installer {
|
||||
* @returns { Promise<void> } Returns addExtResource result.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @throws { BusinessError } 17700301 - AddExtResource failed due to parse file failed.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
@ -675,7 +675,7 @@ declare namespace installer {
|
||||
* @returns { Promise<void> } Returns removeExtResource result.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
* @throws { BusinessError } 17700302 - RemoveExtResource failed due to module does not exist.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
@ -693,7 +693,7 @@ declare namespace installer {
|
||||
* @returns { Promise<void> }
|
||||
* @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.UNINSTALL_BUNDLE'.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 401 - Input parameters check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundle name is not found.
|
||||
* @throws { BusinessError } 17700045 - Failed to uninstall because enterprise device management disallow uninstall.
|
||||
* @throws { BusinessError } 17700057 - Failed to uninstall updates because the HAP is not pre-installed.
|
||||
|
18
api/@ohos.bundle.launcherBundleManager.d.ts
vendored
18
api/@ohos.bundle.launcherBundleManager.d.ts
vendored
@ -41,7 +41,7 @@ declare namespace launcherBundleManager {
|
||||
* @param { AsyncCallback<Array<LauncherAbilityInfo>> } 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.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not support.
|
||||
* @throws { BusinessError } 17700001 - The specified bundle name is not found.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
@ -61,7 +61,7 @@ declare namespace launcherBundleManager {
|
||||
* @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 } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not support.
|
||||
* @throws { BusinessError } 17700001 - The specified bundle name is not found.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
@ -80,7 +80,7 @@ declare namespace launcherBundleManager {
|
||||
* @returns { 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 } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not support.
|
||||
* @throws { BusinessError } 17700001 - The specified bundle name is not found.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
@ -98,7 +98,7 @@ declare namespace launcherBundleManager {
|
||||
* @param { AsyncCallback<Array<LauncherAbilityInfo>> } 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.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not support.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Launcher
|
||||
@ -115,7 +115,7 @@ declare namespace launcherBundleManager {
|
||||
* @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 } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not support.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Launcher
|
||||
@ -132,7 +132,7 @@ declare namespace launcherBundleManager {
|
||||
* @param { AsyncCallback<Array<ShortcutInfo>> } callback -The callback of the ShortcutInfo object result.
|
||||
* @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 } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not support.
|
||||
* @throws { BusinessError } 17700001 - The specified bundle name is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Launcher
|
||||
@ -149,7 +149,7 @@ declare namespace launcherBundleManager {
|
||||
* @returns { Promise<Array<ShortcutInfo>> } the LauncherShortcutInfo 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 } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not support.
|
||||
* @throws { BusinessError } 17700001 - The specified bundle name is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Launcher
|
||||
@ -166,7 +166,7 @@ declare namespace launcherBundleManager {
|
||||
* @returns { Array<ShortcutInfo> } the LauncherShortcutInfo 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 } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not support.
|
||||
* @throws { BusinessError } 17700001 - The specified bundle name is not found.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Launcher
|
||||
@ -184,7 +184,7 @@ declare namespace launcherBundleManager {
|
||||
* @returns { Promise<void> } the promise returned by the function.
|
||||
* @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 } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 801 - Capability not support.
|
||||
* @throws { BusinessError } 17700065 - The specified shortcut want in shortcut info is not supported to be started.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Launcher
|
||||
|
28
api/@ohos.bundle.overlay.d.ts
vendored
28
api/@ohos.bundle.overlay.d.ts
vendored
@ -35,7 +35,7 @@ declare namespace overlay {
|
||||
* @param { string } moduleName - Indicates the module name of the overlay module to be set.
|
||||
* @param { boolean } isEnabled - The value true means to enable overlay feature, and the value false means to disable overlay feature.
|
||||
* @param { AsyncCallback<void> } callback - The callback of setting specified overlay module enabled state result.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700002 - The specified module name is not found.
|
||||
* @throws { BusinessError } 17700033 - The specified module is not an overlay module.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Overlay
|
||||
@ -49,7 +49,7 @@ declare namespace overlay {
|
||||
* @param { string } moduleName - Indicates the module name of the overlay module to be set.
|
||||
* @param { boolean } isEnabled - The value true means to enable overlay feature, and the value false means to disable overlay feature.
|
||||
* @returns { Promise<void> }
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700002 - The specified module name is not found.
|
||||
* @throws { BusinessError } 17700033 - The specified module is not an overlay module.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Overlay
|
||||
@ -65,7 +65,7 @@ declare namespace overlay {
|
||||
* @param { string } moduleName - Indicates the module name of the overlay module to be set.
|
||||
* @param { boolean } isEnabled - The value true means to enable overlay feature, and the value false means to disable overlay feature.
|
||||
* @param { AsyncCallback<void> } callback - The callback of setting specified overlay module enabled state result.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
@ -87,7 +87,7 @@ declare namespace overlay {
|
||||
* @param { string } moduleName - Indicates the module name of the overlay module to be set.
|
||||
* @param { boolean } isEnabled - The value true means to enable overlay feature, and the value false means to disable overlay feature.
|
||||
* @returns { Promise<void> }
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
@ -105,7 +105,7 @@ declare namespace overlay {
|
||||
*
|
||||
* @param { string } moduleName - Indicates the module name of the overlay module to be queried.
|
||||
* @param { AsyncCallback<OverlayModuleInfo> } callback - The callback of getting OverlayModuleInfo object.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700002 - The specified module name is not found.
|
||||
* @throws { BusinessError } 17700032 - The specified bundle does not contain any overlay module.
|
||||
* @throws { BusinessError } 17700033 - The specified module is not an overlay module.
|
||||
@ -119,7 +119,7 @@ declare namespace overlay {
|
||||
*
|
||||
* @param { string } moduleName - Indicates the module name of the overlay module to be queried.
|
||||
* @returns { Promise<OverlayModuleInfo> }
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700002 - The specified module name is not found.
|
||||
* @throws { BusinessError } 17700032 - The specified bundle does not contain any overlay module.
|
||||
* @throws { BusinessError } 17700033 - The specified module is not an overlay module.
|
||||
@ -133,7 +133,7 @@ declare namespace overlay {
|
||||
*
|
||||
* @param { string } targetModuleName - Indicates the target module name of the target module to be queried.
|
||||
* @param { AsyncCallback<Array<OverlayModuleInfo>> } callback - The callback of getting a list of OverlayModuleInfo object.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700002 - The specified module name is not found.
|
||||
* @throws { BusinessError } 17700034 - The specified module is an overlay module.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Overlay
|
||||
@ -147,7 +147,7 @@ declare namespace overlay {
|
||||
*
|
||||
* @param { string } targetModuleName - Indicates the target module name of the target module to be queried.
|
||||
* @returns { Promise<Array<OverlayModuleInfo>> }
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700002 - The specified module name is not found.
|
||||
* @throws { BusinessError } 17700034 - The specified module is an overlay module.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Overlay
|
||||
@ -161,7 +161,7 @@ declare namespace overlay {
|
||||
* @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED
|
||||
* @param { string } bundleName - Indicates the application bundle name of the overlay bundle to be quired.
|
||||
* @param { AsyncCallback<Array<OverlayModuleInfo>> } callback - The callback of getting a list of OverlayModuleInfo object.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
@ -180,7 +180,7 @@ declare namespace overlay {
|
||||
* @param { string } bundleName - Indicates the application bundle name of the overlay bundle to be quired.
|
||||
* @param { string } moduleName - Indicates the module name of the overlay module to be queried.
|
||||
* @param { AsyncCallback<Array<OverlayModuleInfo>> } callback - The callback of getting a list of OverlayModuleInfo object.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
@ -201,7 +201,7 @@ declare namespace overlay {
|
||||
* @param { string } bundleName - Indicates the application bundle name of the overlay bundle to be quired.
|
||||
* @param { string } moduleName - Indicates the module name of the overlay module to be queried.
|
||||
* @returns { Promise<Array<OverlayModuleInfo>> } Returns a list of OverlayModuleInfo object.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
@ -221,7 +221,7 @@ declare namespace overlay {
|
||||
* @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED
|
||||
* @param { string } targetBundleName - Indicates the application target bundle name of the overlay bundle to be quired.
|
||||
* @param { AsyncCallback<Array<OverlayModuleInfo>> } callback - The callback of getting a list of OverlayModuleInfo object.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
@ -240,7 +240,7 @@ declare namespace overlay {
|
||||
* @param { string } targetBundleName - Indicates the application target bundle name of the overlay bundle to be quired.
|
||||
* @param { string } moduleName - Indicates the module name of the overlay module to be queried.
|
||||
* @param { AsyncCallback<Array<OverlayModuleInfo>> } callback - The callback of getting a list of OverlayModuleInfo object.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
@ -261,7 +261,7 @@ declare namespace overlay {
|
||||
* @param { string } targetBundleName - Indicates the application target bundle name of the overlay bundle to be quired.
|
||||
* @param { string } moduleName - Indicates the module name of the overlay module to be queried.
|
||||
* @returns { Promise<Array<OverlayModuleInfo>> } Returns a list of OverlayModuleInfo object.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
|
||||
|
34
api/@ohos.zlib.d.ts
vendored
34
api/@ohos.zlib.d.ts
vendored
@ -391,7 +391,7 @@ declare namespace zlib {
|
||||
* @param { string } outFile - Indicates the path of the output compressed file.
|
||||
* @param { Options } options - Indicates the options of compressing file.
|
||||
* @param { AsyncCallback<void> } callback - The callback of compressing file result.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 900001 - The input source file is invalid.
|
||||
* @throws { BusinessError } 900002 - The input destination file is invalid.
|
||||
* @syscap SystemCapability.BundleManager.Zlib
|
||||
@ -404,7 +404,7 @@ declare namespace zlib {
|
||||
* @param { string } outFile - Indicates the path of the output compressed file.
|
||||
* @param { Options } options - Indicates the options of compressing file.
|
||||
* @param { AsyncCallback<void> } callback - The callback of compressing file result.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 900001 - The input source file is invalid.
|
||||
* @throws { BusinessError } 900002 - The input destination file is invalid.
|
||||
* @syscap SystemCapability.BundleManager.Zlib
|
||||
@ -421,7 +421,7 @@ declare namespace zlib {
|
||||
* @param { string } outFile - Indicates the path of the output compressed file.
|
||||
* @param { Options } options - Indicates the options of compressing file.
|
||||
* @returns { Promise<void> } Returns the result of compressFile file.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 900001 - The input source file is invalid.
|
||||
* @throws { BusinessError } 900002 - The input destination file is invalid.
|
||||
* @syscap SystemCapability.BundleManager.Zlib
|
||||
@ -434,7 +434,7 @@ declare namespace zlib {
|
||||
* @param { string } outFile - Indicates the path of the output compressed file.
|
||||
* @param { Options } options - Indicates the options of compressing file.
|
||||
* @returns { Promise<void> } Returns the result of compressFile file.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 900001 - The input source file is invalid.
|
||||
* @throws { BusinessError } 900002 - The input destination file is invalid.
|
||||
* @syscap SystemCapability.BundleManager.Zlib
|
||||
@ -451,7 +451,7 @@ declare namespace zlib {
|
||||
* @param { string } outFile - Indicates the path of the output decompressed file.
|
||||
* @param { Options } options - Indicates the options of decompressing file.
|
||||
* @param { AsyncCallback<void> } callback - The callback of decompressing file result.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 900001 - The input source file is invalid.
|
||||
* @throws { BusinessError } 900002 - The input destination file is invalid.
|
||||
* @syscap SystemCapability.BundleManager.Zlib
|
||||
@ -464,7 +464,7 @@ declare namespace zlib {
|
||||
* @param { string } outFile - Indicates the path of the output decompressed file.
|
||||
* @param { Options } options - Indicates the options of decompressing file.
|
||||
* @param { AsyncCallback<void> } callback - The callback of decompressing file result.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 900001 - The input source file is invalid.
|
||||
* @throws { BusinessError } 900002 - The input destination file is invalid.
|
||||
* @throws { BusinessError } 900003 - The input source file is not ZIP format or damaged.
|
||||
@ -478,7 +478,7 @@ declare namespace zlib {
|
||||
* @param { string } outFile - Indicates the path of the output decompressed file.
|
||||
* @param { Options } options - Indicates the options of decompressing file.
|
||||
* @param { AsyncCallback<void> } callback - The callback of decompressing file result.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 900001 - The input source file is invalid.
|
||||
* @throws { BusinessError } 900002 - The input destination file is invalid.
|
||||
* @throws { BusinessError } 900003 - The input source file is not ZIP format or damaged.
|
||||
@ -495,7 +495,7 @@ declare namespace zlib {
|
||||
* @param { string } inFile - Indicates the path of the file to be decompressed.
|
||||
* @param { string } outFile - Indicates the path of the output decompressed file.
|
||||
* @param { AsyncCallback<void> } callback - The callback of decompressing file result.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 900001 - The input source file is invalid.
|
||||
* @throws { BusinessError } 900002 - The input destination file is invalid.
|
||||
* @throws { BusinessError } 900003 - The input source file is not ZIP format or damaged.
|
||||
@ -508,7 +508,7 @@ declare namespace zlib {
|
||||
* @param { string } inFile - Indicates the path of the file to be decompressed.
|
||||
* @param { string } outFile - Indicates the path of the output decompressed file.
|
||||
* @param { AsyncCallback<void> } callback - The callback of decompressing file result.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 900001 - The input source file is invalid.
|
||||
* @throws { BusinessError } 900002 - The input destination file is invalid.
|
||||
* @throws { BusinessError } 900003 - The input source file is not ZIP format or damaged.
|
||||
@ -526,7 +526,7 @@ declare namespace zlib {
|
||||
* @param { string } outFile - Indicates the path of the output decompressing file.
|
||||
* @param { Options } options - Indicates the options of decompressing file.
|
||||
* @returns { Promise<void> } Returns the result of decompressing file.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 900001 - The input source file is invalid.
|
||||
* @throws { BusinessError } 900002 - The input destination file is invalid.
|
||||
* @syscap SystemCapability.BundleManager.Zlib
|
||||
@ -539,7 +539,7 @@ declare namespace zlib {
|
||||
* @param { string } outFile - Indicates the path of the output decompressing file.
|
||||
* @param { Options } options - Indicates the options of decompressing file.
|
||||
* @returns { Promise<void> } Returns the result of decompressing file.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 900001 - The input source file is invalid.
|
||||
* @throws { BusinessError } 900002 - The input destination file is invalid.
|
||||
* @throws { BusinessError } 900003 - The input source file is not ZIP format or damaged.
|
||||
@ -553,7 +553,7 @@ declare namespace zlib {
|
||||
* @param { string } outFile - Indicates the path of the output decompressing file.
|
||||
* @param { Options } options - Indicates the options of decompressing file.
|
||||
* @returns { Promise<void> } Returns the result of decompressing file.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 900001 - The input source file is invalid.
|
||||
* @throws { BusinessError } 900002 - The input destination file is invalid.
|
||||
* @throws { BusinessError } 900003 - The input source file is not ZIP format or damaged.
|
||||
@ -599,7 +599,7 @@ declare namespace zlib {
|
||||
* @param { number } adler - Initial value of Adler32 checksum.
|
||||
* @param { ArrayBuffer } buf - Calculate checksum data buffer.
|
||||
* @returns { Promise<number> } Return the updated checksum.
|
||||
* @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
* @syscap SystemCapability.BundleManager.Zlib
|
||||
* @atomicservice
|
||||
@ -614,7 +614,7 @@ declare namespace zlib {
|
||||
* @param { number } adler2 - The second Adler32 checksum.
|
||||
* @param { number } len2 - The length of the data block associated with the second Adler32 checksum.
|
||||
* @returns { Promise<number> } Returns the Adler-32 checksum.
|
||||
* @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
* @syscap SystemCapability.BundleManager.Zlib
|
||||
* @atomicservice
|
||||
@ -628,7 +628,7 @@ declare namespace zlib {
|
||||
* @param { number } crc - Initial value of CRC-32 checksum.
|
||||
* @param { ArrayBuffer } buf - Calculate checksum data buffer.
|
||||
* @returns { Promise<number> } Return the updated CRC-32.
|
||||
* @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
* @syscap SystemCapability.BundleManager.Zlib
|
||||
* @atomicservice
|
||||
@ -643,7 +643,7 @@ declare namespace zlib {
|
||||
* @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<number> } Returns the CRC-32 check value.
|
||||
* @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
* @syscap SystemCapability.BundleManager.Zlib
|
||||
* @atomicservice
|
||||
@ -657,7 +657,7 @@ declare namespace zlib {
|
||||
* @param { number } crc - Initial value of CRC-64 checksum.
|
||||
* @param { ArrayBuffer } buf - Calculate checksum data buffer.
|
||||
* @returns { Promise<number> } Return the updated CRC-64.
|
||||
* @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
* @syscap SystemCapability.BundleManager.Zlib
|
||||
* @atomicservice
|
||||
|
Loading…
Reference in New Issue
Block a user