Android Guides | Samples

Android.Hardware.Usb.UsbInterface Class

A class representing an interface on a UsbDevice.

See Also: UsbInterface

Syntax

[Android.Runtime.Register("android/hardware/usb/UsbInterface", DoNotGenerateAcw=true)]
public class UsbInterface : Object, IParcelable, IDisposable

Remarks

A class representing an interface on a UsbDevice. USB devices can have one or more interfaces, each one providing a different piece of functionality, separate from the other interfaces. An interface will have one or more UsbEndpoints, which are the channels by which the host transfers data with the device.

Developer Guides

For more information about communicating with USB hardware, read the USB developer guide.

[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

The members of Android.Hardware.Usb.UsbInterface are listed below.

See Also: Object

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

[read-only]
AlternateSettingInt32. Returns the interface's bAlternateSetting field.
[read-only]
static
CreatorIParcelableCreator.
[read-only]
EndpointCountInt32. Returns the number of UsbEndpoints this interface contains.
[read-only]
IdInt32. Returns the interface's bInterfaceNumber field.
[read-only]
InterfaceClassUsbClass. Returns the interface's class field.
[read-only]
InterfaceProtocolInt32. Returns the interface's protocol field.
[read-only]
InterfaceSubclassUsbClass. Returns the interface's subclass field.
[read-only]
NameString. Returns the interface's name.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

DescribeContents() : Int32
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
GetEndpoint(Int32) : UsbEndpoint
Returns the UsbEndpoint at the given index.
WriteToParcel(Parcel, ParcelableWriteFlags)
Flatten this object in to a Parcel.