Android Guides | Samples

Android.Hardware.Usb.UsbEndpoint Class

A class representing an endpoint on a UsbInterface.

See Also: UsbEndpoint

Syntax

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

Remarks

A class representing an endpoint on a UsbInterface. Endpoints are the channels for sending and receiving data over USB. Typically bulk endpoints are used for sending non-trivial amounts of data. Interrupt endpoints are used for sending small amounts of data, typically events, separately from the main data streams. The endpoint zero is a special endpoint for control messages sent from the host to device. Isochronous endpoints are currently unsupported.

[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.UsbEndpoint 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]
AddressUsbAddressing. Returns the endpoint's address field.
[read-only]
AttributesInt32. Returns the endpoint's attributes field.
[read-only]
static
CreatorIParcelableCreator.
[read-only]
DirectionUsbAddressing. Returns the endpoint's direction.
[read-only]
EndpointNumberInt32. Extracts the endpoint's endpoint number from its address
[read-only]
IntervalInt32. Returns the endpoint's interval field.
[read-only]
MaxPacketSizeInt32. Returns the endpoint's maximum packet size.
[read-only]
TypeUsbAddressing. Returns the endpoint's type.

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.
WriteToParcel(Parcel, ParcelableWriteFlags)
Flatten this object in to a Parcel.