UsbDevice.GetInterface(Int32) Method

Definition

Returns the UsbInterface at the given index.

[Android.Runtime.Register("getInterface", "(I)Landroid/hardware/usb/UsbInterface;", "GetGetInterface_IHandler")]
public virtual Android.Hardware.Usb.UsbInterface GetInterface (int index);
[<Android.Runtime.Register("getInterface", "(I)Landroid/hardware/usb/UsbInterface;", "GetGetInterface_IHandler")>]
abstract member GetInterface : int -> Android.Hardware.Usb.UsbInterface
override this.GetInterface : int -> Android.Hardware.Usb.UsbInterface

Parameters

index
Int32

Returns

the interface

Attributes

Remarks

Returns the UsbInterface at the given index. For devices with multiple configurations, you will probably want to use UsbConfiguration#getInterface instead.

Java documentation for android.hardware.usb.UsbDevice.getInterface(int).

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