Share via


UsbDeviceConnection.Close Method

Definition

Releases all system resources related to the device.

[Android.Runtime.Register("close", "()V", "GetCloseHandler")]
public virtual void Close ();
[<Android.Runtime.Register("close", "()V", "GetCloseHandler")>]
abstract member Close : unit -> unit
override this.Close : unit -> unit
Attributes

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 again to retrieve a new instance to reestablish communication with the device.

Java documentation for android.hardware.usb.UsbDeviceConnection.close().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to