Android Guides | Samples

Android.Hardware.Usb.UsbDeviceConnection.FileDescriptor Property

Returns the native file descriptor for the device, or -1 if the device is not opened.

Syntax

[get: Android.Runtime.Register("getFileDescriptor", "()I", "GetGetFileDescriptorHandler")]
public virtual Int32 FileDescriptor { get; }

Remarks

Returns the native file descriptor for the device, or -1 if the device is not opened. This is intended for passing to native code to access 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