Android Guides | Samples

Android.Hardware.Usb.UsbConfiguration Class

A class representing a configuration on a UsbDevice.

See Also: UsbConfiguration

Syntax

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

Remarks

A class representing a configuration on a UsbDevice. A USB configuration 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

The members of Android.Hardware.Usb.UsbConfiguration 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]
static
CreatorIParcelableCreator.
[read-only]
IdInt32. Returns the configuration's ID field.
[read-only]
InterfaceCountInt32. Returns the number of UsbInterfaces this configuration contains.
[read-only]
IsRemoteWakeupBoolean. Returns the remote-wakeup attribute value configuration's attributes field.
[read-only]
IsSelfPoweredBoolean. Returns the self-powered attribute value configuration's attributes field.
[read-only]
MaxPowerInt32. Returns the configuration's max power consumption, in milliamps.
[read-only]
NameString. Returns the configuration'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.
GetInterface(Int32) : UsbInterface
Returns the UsbInterface at the given index.
WriteToParcel(Parcel, ParcelableWriteFlags)
Flatten this object in to a Parcel.