Android Guides | Samples

Android.Hardware.Usb.UsbManager.OpenAccessory Method

Opens a file descriptor for reading and writing data to the USB accessory.

Syntax

[Android.Runtime.Register("openAccessory", "(Landroid/hardware/usb/UsbAccessory;)Landroid/os/ParcelFileDescriptor;", "GetOpenAccessory_Landroid_hardware_usb_UsbAccessory_Handler")]
public virtual ParcelFileDescriptor OpenAccessory (UsbAccessory accessory)

Parameters

accessory
the USB accessory to open

Remarks

Opens a file descriptor for reading and writing data to the USB accessory.

[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