diff --git a/api/@ohos.distributedDeviceManager.d.ts b/api/@ohos.distributedDeviceManager.d.ts index a5d528ad187116b8a700476845cf8ff6e996c588..398cde7139b52ce339feb73839f1646ae4ca4e52 100644 --- a/api/@ohos.distributedDeviceManager.d.ts +++ b/api/@ohos.distributedDeviceManager.d.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Huawei Device Co., Ltd. + * Copyright (c) 2023-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -18,8 +18,7 @@ * @kit DistributedServiceKit */ -import type { AsyncCallback } from './@ohos.base'; -import type { Callback } from './@ohos.base'; +import type { AsyncCallback, Callback } from './@ohos.base'; /** * Providers interfaces to create a {@link deviceManager} instances. @@ -55,8 +54,8 @@ declare namespace distributedDeviceManager { /** * Obtains the device type represented by a string, * which can be {@code phone}, {@code tablet}, {@code tv}, {@code smartVision}, {@code car}. - * @syscap SystemCapability.DistributedHardware.DeviceManager * @type { string } + * @syscap SystemCapability.DistributedHardware.DeviceManager * @since 10 */ deviceType: string; @@ -107,7 +106,7 @@ declare namespace distributedDeviceManager { * * @param { string } bundleName - Indicates the bundle name of the application. * @returns { DeviceManager } - Return the DeviceManager object. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3.Parameter verification failed. * @syscap SystemCapability.DistributedHardware.DeviceManager * @since 10 */ @@ -119,7 +118,7 @@ declare namespace distributedDeviceManager { * @permission ohos.permission.DISTRIBUTED_DATASYNC * @param { DeviceManager } deviceManager - Indicates the {@code DeviceManager} instance. * @throws { BusinessError } 201 - User permission verify failed. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3.Parameter verification failed. * @throws { BusinessError } 11600101 - Failed to execute the function. * @syscap SystemCapability.DistributedHardware.DeviceManager * @since 10 @@ -141,7 +140,7 @@ declare namespace distributedDeviceManager { * @permission ohos.permission.DISTRIBUTED_DATASYNC * @returns { Array } - Returns a list of available devices. * @throws { BusinessError } 201 - User permission verify failed. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3.Parameter verification failed. * @throws { BusinessError } 11600101 - Failed to execute the function. * @syscap SystemCapability.DistributedHardware.DeviceManager * @since 10 @@ -228,7 +227,7 @@ declare namespace distributedDeviceManager { * @param { string } networkId - Device network id. * @returns { string } - Returns device name. * @throws { BusinessError } 201 - User permission verify failed. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed; 4. The size of specified networkId is greater than 255. * @throws { BusinessError } 11600101 - Failed to execute the function. * @syscap SystemCapability.DistributedHardware.DeviceManager * @since 10 @@ -242,7 +241,7 @@ declare namespace distributedDeviceManager { * @param { string } networkId - Device network id. * @returns { number } - Returns device type. * @throws { BusinessError } 201 - User permission verify failed. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed; 4. The size of specified networkId is greater than 255. * @throws { BusinessError } 11600101 - Failed to execute the function. * @syscap SystemCapability.DistributedHardware.DeviceManager * @since 10 @@ -269,7 +268,7 @@ declare namespace distributedDeviceManager { * 0: Devices authenticated based on temporary negotiated session key. * 1: Devices authenticated based on the same account credential key. * 2: Devices authenticated based on different account credential keys. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed. * @throws { BusinessError } 201 - Permission verify failed. * @throws { BusinessError } 11600104 - Discovery repeats. * @throws { BusinessError } 11600101 - Failed to execute the function. @@ -282,7 +281,7 @@ declare namespace distributedDeviceManager { * Stop discovering nearby devices. * * @permission ohos.permission.DISTRIBUTED_DATASYNC - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed. * @throws { BusinessError } 201 - Permission verify failed. * @throws { BusinessError } 11600104 - Stop discovery repeats. * @throws { BusinessError } 11600101 - Failed to execute the function. @@ -308,7 +307,7 @@ declare namespace distributedDeviceManager { * "appOperation" : "xxxx" - The reason why the app want to bind the target package. * "customDescription" : "xxxx" - The detail description of the operation. * @param { AsyncCallback<{deviceId: string}> } callback - indicates the callback to be invoked upon bindDevice. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed; 4. The size of specified deviceId is greater than 255. * @throws { BusinessError } 201 - Permission verify failed. * @throws { BusinessError } 11600101 - Failed to execute the function. * @throws { BusinessError } 11600103 - Bind invalid. @@ -322,7 +321,7 @@ declare namespace distributedDeviceManager { * * @permission ohos.permission.DISTRIBUTED_DATASYNC * @param { string } deviceId - id of device to unbind - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed; 4. The size of specified deviceId is greater than 255. * @throws { BusinessError } 201 - Permission verify failed. * @throws { BusinessError } 11600101 - Failed to execute the function. * @syscap SystemCapability.DistributedHardware.DeviceManager @@ -338,7 +337,7 @@ declare namespace distributedDeviceManager { * @param { string } actionResult - Indicates the user operation result. * @throws { BusinessError } 201 - Permission verify failed. * @throws { BusinessError } 202 - The caller is not a system application. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed; 4. The size of specified actionResult is greater than 255. * @syscap SystemCapability.DistributedHardware.DeviceManager * @systemapi this method can be used only by system applications. * @since 10 @@ -354,7 +353,7 @@ declare namespace distributedDeviceManager { * @param { Callback<{ action: DeviceStateChange, device: DeviceBasicInfo }> } callback * Indicates the device state callback to register. * @throws { BusinessError } 201 - Permission verify failed. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed; 4. The size of specified type is greater than 255. * @syscap SystemCapability.DistributedHardware.DeviceManager * @since 10 */ @@ -368,7 +367,7 @@ declare namespace distributedDeviceManager { * @param { Callback<{ action: DeviceStateChange, device: DeviceBasicInfo }> } callback * Indicates the device state callback to unregister. * @throws { BusinessError } 201 - Permission verify failed. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed; 4. The size of specified type is greater than 255. * @syscap SystemCapability.DistributedHardware.DeviceManager * @since 10 */ @@ -381,7 +380,7 @@ declare namespace distributedDeviceManager { * @param { 'discoverSuccess' } type - Successfully discovered device. * @param { Callback<{ device: DeviceBasicInfo }> } callback - Indicates the device discovery callback to register. * @throws { BusinessError } 201 - Permission verify failed. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed; 4. The size of specified type is greater than 255. * @syscap SystemCapability.DistributedHardware.DeviceManager * @since 10 */ @@ -394,7 +393,7 @@ declare namespace distributedDeviceManager { * @param { 'discoverSuccess' } type - Successfully discovered device. * @param { Callback<{ device: DeviceBasicInfo }> } callback - Indicates the device discovery callback to unregister. * @throws { BusinessError } 201 - Permission verify failed. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed; 4. The size of specified type is greater than 255. * @syscap SystemCapability.DistributedHardware.DeviceManager * @since 10 */ @@ -407,7 +406,7 @@ declare namespace distributedDeviceManager { * @param { 'deviceNameChange' } type - Changed device name. * @param { Callback<{ deviceName: string }> } callback - Indicates the device name change callback to register. * @throws { BusinessError } 201 - Permission verify failed. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed; 4. The size of specified type is greater than 255. * @syscap SystemCapability.DistributedHardware.DeviceManager * @since 10 */ @@ -420,7 +419,7 @@ declare namespace distributedDeviceManager { * @param { 'deviceNameChange' } type - Changed device name. * @param { Callback<{ deviceName: string }> } callback - Indicates the device name change callback to unregister. * @throws { BusinessError } 201 - Permission verify failed. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed; 4. The size of specified type is greater than 255. * @syscap SystemCapability.DistributedHardware.DeviceManager * @since 10 */ @@ -434,7 +433,7 @@ declare namespace distributedDeviceManager { * @param { Callback<{ reason: number }> } callback * Indicates the device found result callback to register. * @throws { BusinessError } 201 - Permission verify failed. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed; 4. The size of specified type is greater than 255. * @syscap SystemCapability.DistributedHardware.DeviceManager * @since 10 */ @@ -448,7 +447,7 @@ declare namespace distributedDeviceManager { * @param { Callback<{ reason: number }> } callback * Indicates the device found result callback to unregister. * @throws { BusinessError } 201 - Permission verify failed. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed; 4. The size of specified type is greater than 255. * @syscap SystemCapability.DistributedHardware.DeviceManager * @since 10 */ @@ -461,7 +460,7 @@ declare namespace distributedDeviceManager { * @param { 'serviceDie' } type - Service death. * @param { Callback<{}> } callback - Indicates the service error callback to register. * @throws { BusinessError } 201 - Permission verify failed. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed; 4. The size of specified type is greater than 255. * @syscap SystemCapability.DistributedHardware.DeviceManager * @since 10 */ @@ -474,7 +473,7 @@ declare namespace distributedDeviceManager { * @param { 'serviceDie' } type - Service death. * @param { Callback<{}> } callback - Indicates the service error callback to unregister. * @throws { BusinessError } 201 - Permission verify failed. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed; 4. The size of specified type is greater than 255. * @syscap SystemCapability.DistributedHardware.DeviceManager * @since 10 */ @@ -486,7 +485,7 @@ declare namespace distributedDeviceManager { * @permission ohos.permission.ACCESS_SERVICE_DM * @param { 'replyResult' } type - Ui reply result to register. * @param { Callback<{ param: string }> } callback - Indicates the devicemanager ui state to register. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed; 4. The size of specified type is greater than 255. * @throws { BusinessError } 202 - The caller is not a system application. * @syscap SystemCapability.DistributedHardware.DeviceManager * @systemapi this method can be used only by system applications. @@ -500,7 +499,7 @@ declare namespace distributedDeviceManager { * @permission ohos.permission.ACCESS_SERVICE_DM * @param { 'replyResult' } type - Ui reply result to unregister. * @param { Callback<{ param: string }> } callback - Indicates the devicemanager ui state to unregister. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed; 4. The size of specified type is greater than 255. * @throws { BusinessError } 202 - The caller is not a system application. * @syscap SystemCapability.DistributedHardware.DeviceManager * @systemapi this method can be used only by system applications. diff --git a/api/@ohos.distributedHardware.deviceManager.d.ts b/api/@ohos.distributedHardware.deviceManager.d.ts index 7947f11b13de15dac60955e8f01d9a2bf690fda4..f76891752548c530dedcb8d4718ada4d479bc9c4 100644 --- a/api/@ohos.distributedHardware.deviceManager.d.ts +++ b/api/@ohos.distributedHardware.deviceManager.d.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020-2022 Huawei Device Co., Ltd. + * Copyright (c) 2020-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -18,8 +18,7 @@ * @kit DistributedServiceKit */ -import type { AsyncCallback } from './@ohos.base'; -import type { Callback } from './@ohos.base'; +import type { AsyncCallback, Callback } from './@ohos.base'; /** * Providers interfaces to create a {@link deviceManager} instances. @@ -674,7 +673,7 @@ declare namespace deviceManager { * * @param { string } bundleName Indicates the bundle name of the application. * @param { AsyncCallback } callback Indicates the callback to be invoked upon {@code DeviceManager} instance creation. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3.Parameter verification failed. * @throws { BusinessError } 202 - The caller is not a system application. * @syscap SystemCapability.DistributedHardware.DeviceManager * @systemapi this method can be used only by system applications. @@ -733,7 +732,7 @@ declare namespace deviceManager { * @returns { Array } Returns a list of trusted devices. * @throws { BusinessError } 202 - The caller is not a system application. * @throws { BusinessError } 201 - Permission verify failed. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3.Parameter verification failed. * @throws { BusinessError } 11600101 - Failed to execute the function. * @syscap SystemCapability.DistributedHardware.DeviceManager * @systemapi this method can be used only by system applications. @@ -748,7 +747,7 @@ declare namespace deviceManager { * @permission ohos.permission.ACCESS_SERVICE_DM * @param { AsyncCallback> } callback Indicates the callback to be invoked upon getTrustedDeviceList * @throws { BusinessError } 202 - The caller is not a system application. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3.Parameter verification failed. * @syscap SystemCapability.DistributedHardware.DeviceManager * @systemapi this method can be used only by system applications. * @since 8 @@ -792,7 +791,7 @@ declare namespace deviceManager { * * @permission ohos.permission.ACCESS_SERVICE_DM * @param { AsyncCallback } callback Indicates the callback to be invoked upon getLocalDeviceInfo - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3.Parameter verification failed. * @throws { BusinessError } 202 - The caller is not a system application. * @syscap SystemCapability.DistributedHardware.DeviceManager * @systemapi this method can be used only by system applications. @@ -822,7 +821,7 @@ declare namespace deviceManager { * @permission ohos.permission.ACCESS_SERVICE_DM * @param { string } networkId - device network id. * @param { AsyncCallback } callback - Indicates the callback to be invoked upon getDeviceInfo. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed; 4. The size of specified networkId is greater than 255. * @throws { BusinessError } 202 - The caller is not a system application. * @syscap SystemCapability.DistributedHardware.DeviceManager * @systemapi this method can be used only by system applications. @@ -838,7 +837,7 @@ declare namespace deviceManager { * @permission ohos.permission.ACCESS_SERVICE_DM * @param { string } networkId - device network id. * @returns { Promise } Returns device info. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed; 4. The size of specified networkId is greater than 255. * @throws { BusinessError } 202 - The caller is not a system application. * @syscap SystemCapability.DistributedHardware.DeviceManager * @systemapi this method can be used only by system applications. @@ -853,7 +852,7 @@ declare namespace deviceManager { * * @permission ohos.permission.ACCESS_SERVICE_DM * @param { SubscribeInfo } subscribeInfo subscribe info to discovery device - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3.Parameter verification failed; 4.The size of specified param is greater than 255. * @throws { BusinessError } 202 - The caller is not a system application. * @throws { BusinessError } 201 - Permission verify failed. * @throws { BusinessError } 11600104 - Discovery invalid. @@ -872,7 +871,7 @@ declare namespace deviceManager { * @permission ohos.permission.ACCESS_SERVICE_DM * @param { SubscribeInfo } subscribeInfo subscribe info to discovery device * @param { string } filterOptions filterOptions to filter discovery device - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3.Parameter verification failed; 4.The size of specified param is greater than 255. * @throws { BusinessError } 202 - The caller is not a system application. * @throws { BusinessError } 201 - Permission verify failed. * @throws { BusinessError } 11600104 - Discovery invalid. @@ -890,7 +889,7 @@ declare namespace deviceManager { * * @permission ohos.permission.ACCESS_SERVICE_DM * @param { number } subscribeId Service subscribe ID - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3.Parameter verification failed; 4.The size of specified param is greater than 255. * @throws { BusinessError } 202 - The caller is not a system application. * @throws { BusinessError } 201 - Permission verify failed. * @throws { BusinessError } 11600101 - Failed to execute the function. @@ -907,7 +906,7 @@ declare namespace deviceManager { * * @permission ohos.permission.ACCESS_SERVICE_DM * @param { PublishInfo } publishInfo publish info to Publish discovery device - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3.Parameter verification failed. * @throws { BusinessError } 202 - The caller is not a system application. * @throws { BusinessError } 201 - Permission verify failed. * @throws { BusinessError } 11600105 - Publish invalid. @@ -924,7 +923,7 @@ declare namespace deviceManager { * * @permission ohos.permission.ACCESS_SERVICE_DM * @param { number } publishId Service publish ID, identify a publish operation, should be a unique id in package range - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3.Parameter verification failed. * @throws { BusinessError } 202 - The caller is not a system application. * @throws { BusinessError } 201 - Permission verify failed. * @throws { BusinessError } 11600101 - Failed to execute the function. @@ -942,7 +941,7 @@ declare namespace deviceManager { * @param { DeviceInfo } deviceInfo deviceInfo of device to authenticate * @param { AuthParam } authParam authParam of device to authenticate * @param { AsyncCallback<{ deviceId: string, pinToken?: number }> } callback Indicates the callback to be invoked upon authenticateDevice - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3.Parameter verification failed. * @throws { BusinessError } 202 - The caller is not a system application. * @syscap SystemCapability.DistributedHardware.DeviceManager * @systemapi this method can be used only by system applications. @@ -961,7 +960,7 @@ declare namespace deviceManager { * * @permission ohos.permission.ACCESS_SERVICE_DM * @param { DeviceInfo } deviceInfo deviceInfo of device to unAuthenticate - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3.Parameter verification failed. * @throws { BusinessError } 202 - The caller is not a system application. * @throws { BusinessError } 201 - Permission verify failed. * @throws { BusinessError } 11600101 - Failed to execute the function. @@ -979,7 +978,7 @@ declare namespace deviceManager { * @permission ohos.permission.ACCESS_SERVICE_DM * @param { AuthInfo } authInfo device auth info o verify * @param { AsyncCallback<{ deviceId: string, level: number }> } callback Indicates the callback to be invoked upon verifyAuthInfo - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3.Parameter verification failed. * @throws { BusinessError } 202 - The caller is not a system application. * @syscap SystemCapability.DistributedHardware.DeviceManager * @systemapi this method can be used only by system applications. @@ -994,7 +993,7 @@ declare namespace deviceManager { * @permission ohos.permission.ACCESS_SERVICE_DM * @param { number } operateAction User Operation Actions. * @param { string } params Indicates the input param of the user. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed; 4. The size of specified params is greater than 255. * @throws { BusinessError } 202 - The caller is not a system application. * @throws { BusinessError } 201 - Permission verify failed. * @syscap SystemCapability.DistributedHardware.DeviceManager @@ -1011,7 +1010,7 @@ declare namespace deviceManager { * @permission ohos.permission.ACCESS_SERVICE_DM * @param { string } requestInfo - Request credential params, the params is json string, it includes version and userId. * @param { AsyncCallback<{ registerInfo: string }> } callback Indicates the callback to be invoked upon requestCredential - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed; 4. The size of specified requestInfo is greater than 255. * @throws { BusinessError } 202 - The caller is not a system application. * @syscap SystemCapability.DistributedHardware.DeviceManager * @systemapi this method can be used only by system applications. @@ -1028,7 +1027,7 @@ declare namespace deviceManager { * userId, deviceId, version, devicePk and credentialData, the credentialData is array, each array element * include credentialType, credentialId, serverPk, pkInfoSignature, pkInfo, authCode, peerDeviceId. * @param { AsyncCallback<{ resultInfo: string }> } callback Indicates the callback to be invoked upon importCredential. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed; 4. The size of specified credentialInfo is greater than 5999. * @throws { BusinessError } 202 - The caller is not a system application. * @syscap SystemCapability.DistributedHardware.DeviceManager * @systemapi this method can be used only by system applications. @@ -1043,7 +1042,7 @@ declare namespace deviceManager { * @permission ohos.permission.ACCESS_SERVICE_DM * @param { string } queryInfo - delete credential params. the params is json string, it includes processType, authType, userId. * @param { AsyncCallback<{ resultInfo: string }> } callback Indicates the callback to be invoked upon deleteCredential - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed; 4. The size of specified queryInfo is greater than 5999. * @throws { BusinessError } 202 - The caller is not a system application. * @syscap SystemCapability.DistributedHardware.DeviceManager * @systemapi this method can be used only by system applications. @@ -1059,7 +1058,7 @@ declare namespace deviceManager { * @permission ohos.permission.ACCESS_SERVICE_DM * @param { 'uiStateChange' } type Ui state to unregister. * @param { Callback<{ param: string }> } callback Indicates the devicemanager ui state to register. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed; 4. The size of specified eventType is greater than 255. * @throws { BusinessError } 202 - The caller is not a system application. * @syscap SystemCapability.DistributedHardware.DeviceManager * @systemapi this method can be used only by system applications. @@ -1076,7 +1075,7 @@ declare namespace deviceManager { * @permission ohos.permission.ACCESS_SERVICE_DM * @param { 'uiStateChange' } type Ui state to unregister. * @param { Callback<{ param: string }> } callback Indicates the devicemanager ui state to unregister. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed; 4. The size of specified eventType is greater than 255. * @throws { BusinessError } 202 - The caller is not a system application. * @syscap SystemCapability.DistributedHardware.DeviceManager * @systemapi this method can be used only by system applications. @@ -1094,7 +1093,7 @@ declare namespace deviceManager { * @param { 'deviceStateChange' } type Device status change. * @param { Callback<{ action: DeviceStateChangeAction, device: DeviceInfo }> } callback * Indicates the device state callback to register. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed; 4. The size of specified eventType is greater than 255. * @throws { BusinessError } 202 - The caller is not a system application. * @syscap SystemCapability.DistributedHardware.DeviceManager * @systemapi this method can be used only by system applications. @@ -1110,7 +1109,7 @@ declare namespace deviceManager { * @permission ohos.permission.ACCESS_SERVICE_DM * @param { 'deviceStateChange' } type Device status change. * @param { Callback<{ action: DeviceStateChangeAction, device: DeviceInfo }> } callback Indicates the device state callback to register. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed; 4. The size of specified eventType is greater than 255. * @throws { BusinessError } 202 - The caller is not a system application. * @syscap SystemCapability.DistributedHardware.DeviceManager * @systemapi this method can be used only by system applications. @@ -1126,7 +1125,7 @@ declare namespace deviceManager { * @permission ohos.permission.ACCESS_SERVICE_DM * @param { 'deviceFound' } type Successfully discovered device. * @param { Callback<{ subscribeId: number, device: DeviceInfo }> } callback Indicates the device found callback to register. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed; 4. The size of specified eventType is greater than 255. * @throws { BusinessError } 202 - The caller is not a system application. * @syscap SystemCapability.DistributedHardware.DeviceManager * @systemapi this method can be used only by system applications. @@ -1142,7 +1141,7 @@ declare namespace deviceManager { * @permission ohos.permission.ACCESS_SERVICE_DM * @param { 'deviceFound' } type Successfully discovered device. * @param { Callback<{ subscribeId: number, device: DeviceInfo }> } callback Indicates the device found callback to register. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed; 4. The size of specified eventType is greater than 255. * @throws { BusinessError } 202 - The caller is not a system application. * @syscap SystemCapability.DistributedHardware.DeviceManager * @systemapi this method can be used only by system applications. @@ -1158,7 +1157,7 @@ declare namespace deviceManager { * @permission ohos.permission.ACCESS_SERVICE_DM * @param { 'discoverFail' } type Discovery Device Failure. * @param { Callback<{ subscribeId: number, reason: number }> } callback Indicates the device found result callback to register. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed; 4. The size of specified eventType is greater than 255. * @throws { BusinessError } 202 - The caller is not a system application. * @syscap SystemCapability.DistributedHardware.DeviceManager * @systemapi this method can be used only by system applications. @@ -1174,7 +1173,7 @@ declare namespace deviceManager { * @permission ohos.permission.ACCESS_SERVICE_DM * @param { 'discoverFail' } type Discovery Device Failure. * @param { Callback<{ subscribeId: number, reason: number }> } callback Indicates the device found result callback to register. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed; 4. The size of specified eventType is greater than 255. * @throws { BusinessError } 202 - The caller is not a system application. * @syscap SystemCapability.DistributedHardware.DeviceManager * @systemapi this method can be used only by system applications. @@ -1190,7 +1189,7 @@ declare namespace deviceManager { * @permission ohos.permission.ACCESS_SERVICE_DM * @param { 'publishSuccess' } type Successfully published device. * @param { Callback<{ publishId: number }> } callback Indicates the device publish result callback to register. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed; 4. The size of specified eventType is greater than 255. * @throws { BusinessError } 202 - The caller is not a system application. * @syscap SystemCapability.DistributedHardware.DeviceManager * @systemapi this method can be used only by system applications. @@ -1205,7 +1204,7 @@ declare namespace deviceManager { * @permission ohos.permission.ACCESS_SERVICE_DM * @param { 'publishSuccess' } type Successfully published device. * @param { Callback<{ publishId: number }> } callback Indicates the device publish result callback to register. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed; 4. The size of specified eventType is greater than 255. * @throws { BusinessError } 202 - The caller is not a system application. * @syscap SystemCapability.DistributedHardware.DeviceManager * @systemapi this method can be used only by system applications. @@ -1220,7 +1219,7 @@ declare namespace deviceManager { * @permission ohos.permission.ACCESS_SERVICE_DM * @param { 'publishFail' } type Failed to publish device. * @param { Callback<{ publishId: number, reason: number }> } callback Indicates the device publish result callback to register. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed; 4. The size of specified eventType is greater than 255. * @throws { BusinessError } 202 - The caller is not a system application. * @syscap SystemCapability.DistributedHardware.DeviceManager * @systemapi this method can be used only by system applications. @@ -1235,7 +1234,7 @@ declare namespace deviceManager { * @permission ohos.permission.ACCESS_SERVICE_DM * @param { 'publishFail' } type Failed to publish device. * @param { Callback<{ publishId: number, reason: number }> } callback Indicates the device publish result callback to register. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed; 4. The size of specified eventType is greater than 255. * @throws { BusinessError } 202 - The caller is not a system application. * @syscap SystemCapability.DistributedHardware.DeviceManager * @systemapi this method can be used only by system applications. @@ -1250,7 +1249,7 @@ declare namespace deviceManager { * @permission ohos.permission.ACCESS_SERVICE_DM * @param { 'serviceDie' } type Service death. * @param { function } callback Indicates the service error callback to register. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed; 4. The size of specified eventType is greater than 255. * @throws { BusinessError } 202 - The caller is not a system application. * @syscap SystemCapability.DistributedHardware.DeviceManager * @systemapi this method can be used only by system applications. @@ -1266,7 +1265,7 @@ declare namespace deviceManager { * @permission ohos.permission.ACCESS_SERVICE_DM * @param { 'serviceDie' } type Service death. * @param { function } callback Indicates the service error callback to register. - * @throws { BusinessError } 401 - Input parameter error. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter type; 3. Parameter verification failed; 4. The size of specified eventType is greater than 255. * @throws { BusinessError } 202 - The caller is not a system application. * @syscap SystemCapability.DistributedHardware.DeviceManager * @systemapi this method can be used only by system applications.