Android Guides | Samples

Android.Hardware.Usb.UsbManager.OpenDevice Method

Opens the device so it can be used to send and receive data using UsbRequest.

Syntax

[Android.Runtime.Register("openDevice", "(Landroid/hardware/usb/UsbDevice;)Landroid/hardware/usb/UsbDeviceConnection;", "GetOpenDevice_Landroid_hardware_usb_UsbDevice_Handler")]
public virtual UsbDeviceConnection OpenDevice (UsbDevice device)

Parameters

device
the device to open

Remarks

Opens the device so it can be used to send and receive data using UsbRequest.

[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