mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2025-03-04 15:27:44 +00:00
fix:deviceManager interface 201 error code missing
Signed-off-by: shenkang <shenkang6@huawei.com>
This commit is contained in:
parent
a45c85a0d1
commit
1ece51b8ce
12
api/@ohos.driver.deviceManager.d.ts
vendored
12
api/@ohos.driver.deviceManager.d.ts
vendored
@ -35,6 +35,7 @@ declare namespace deviceManager {
|
||||
* @permission ohos.permission.ACCESS_EXTENSIONAL_DEVICE_DRIVER
|
||||
* @param { number } busType - The bus type of device to be queried.
|
||||
* @returns { Array<Readonly<Device>> } External device list.
|
||||
* @throws { BusinessError } 201 - The permission check failed.
|
||||
* @throws { BusinessError } 401 - The parameter check failed.
|
||||
* @throws { BusinessError } 22900001 - ExternalDeviceManager service exception.
|
||||
* @syscap SystemCapability.Driver.ExternalDevice
|
||||
@ -51,6 +52,7 @@ declare namespace deviceManager {
|
||||
* success.
|
||||
* @param { AsyncCallback<{deviceId: number; remote: rpc.IRemoteObject;}> } callback - Indicates the bind result
|
||||
* including device ID and remote object.
|
||||
* @throws { BusinessError } 201 - The permission check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.
|
||||
* 3.Parameter verification failed.
|
||||
* @throws { BusinessError } 22900001 - ExternalDeviceManager service exception.
|
||||
@ -69,6 +71,7 @@ declare namespace deviceManager {
|
||||
* success.
|
||||
* @param { AsyncCallback<RemoteDeviceDriver> } callback - Indicates the bind result including device ID and
|
||||
* remote object.
|
||||
* @throws { BusinessError } 201 - The permission check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.
|
||||
* 3.Parameter verification failed.
|
||||
* @throws { BusinessError } 22900001 - ExternalDeviceManager service exception.
|
||||
@ -87,6 +90,7 @@ declare namespace deviceManager {
|
||||
* success.
|
||||
* @returns { Promise<{deviceId: number; remote: rpc.IRemoteObject;}> } Indicates the bind result including device
|
||||
* ID and remote object.
|
||||
* @throws { BusinessError } 201 - The permission check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.
|
||||
* 3.Parameter verification failed.
|
||||
* @throws { BusinessError } 22900001 - ExternalDeviceManager service exception.
|
||||
@ -104,6 +108,7 @@ declare namespace deviceManager {
|
||||
* @param { AsyncCallback<number> } onDisconnect - Callback is invoked when device is disconnected after bind
|
||||
* success.
|
||||
* @returns { Promise<RemoteDeviceDriver> } Indicates the bind result including device ID and remote object.
|
||||
* @throws { BusinessError } 201 - The permission check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.
|
||||
* 3.Parameter verification failed.
|
||||
* @throws { BusinessError } 22900001 - ExternalDeviceManager service exception.
|
||||
@ -118,6 +123,7 @@ declare namespace deviceManager {
|
||||
* @permission ohos.permission.ACCESS_EXTENSIONAL_DEVICE_DRIVER
|
||||
* @param { number } deviceId - Device id on the device list returned by queryDevices().
|
||||
* @param { AsyncCallback<number> } callback - Indicates the unbind result invoked when unbind is finished.
|
||||
* @throws { BusinessError } 201 - The permission check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.
|
||||
* @throws { BusinessError } 22900001 - ExternalDeviceManager service exception.
|
||||
* @syscap SystemCapability.Driver.ExternalDevice
|
||||
@ -131,7 +137,8 @@ declare namespace deviceManager {
|
||||
* @permission ohos.permission.ACCESS_EXTENSIONAL_DEVICE_DRIVER
|
||||
* @param { number } deviceId - Device id on the device list returned by queryDevices().
|
||||
* @returns { Promise<number> } - Indicates the unbind result invoked when unbind is finished.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.
|
||||
* @throws { BusinessError } 201 - The permission check failed.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.
|
||||
* 3.Parameter verification failed.
|
||||
* @throws { BusinessError } 22900001 - ExternalDeviceManager service exception.
|
||||
* @syscap SystemCapability.Driver.ExternalDevice
|
||||
@ -225,6 +232,7 @@ declare namespace deviceManager {
|
||||
* Represents a USB device.
|
||||
*
|
||||
* @typedef USBDevice
|
||||
* @extends Device
|
||||
* @syscap SystemCapability.Driver.ExternalDevice
|
||||
* @since 10
|
||||
*/
|
||||
@ -359,6 +367,7 @@ declare namespace deviceManager {
|
||||
* Represents the USB device information.
|
||||
*
|
||||
* @typedef USBDeviceInfo
|
||||
* @extends DeviceInfo
|
||||
* @syscap SystemCapability.Driver.ExternalDevice
|
||||
* @systemapi
|
||||
* @since 12
|
||||
@ -460,6 +469,7 @@ declare namespace deviceManager {
|
||||
* Represents the USB driver information.
|
||||
*
|
||||
* @typedef USBDriverInfo
|
||||
* @extends DriverInfo
|
||||
* @syscap SystemCapability.Driver.ExternalDevice
|
||||
* @systemapi
|
||||
* @since 12
|
||||
|
Loading…
x
Reference in New Issue
Block a user