Android Guides | Samples

Android.Hardware.Usb.UsbDeviceConnection.Close Method

Releases all system resources related to the device.

Syntax

[Android.Runtime.Register("close", "()V", "GetCloseHandler")]
public virtual Void Close ()

Remarks

Releases all system resources related to the device. Once the object is closed it cannot be used again. The client must call UsbManager.OpenDevice(UsbDevice) again to retrieve a new instance to reestablish communication with the device.

[Android Documentation]

Requirements

Namespace: Android.Hardware.Usb
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 12