UsbDeviceConnection.FileDescriptor Property

Definition

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

public virtual int FileDescriptor { [Android.Runtime.Register("getFileDescriptor", "()I", "GetGetFileDescriptorHandler")] get; }
[<get: Android.Runtime.Register("getFileDescriptor", "()I", "GetGetFileDescriptorHandler")>]
member this.FileDescriptor : int

Property Value

the native file descriptor

Attributes

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.

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

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