Android Guides | Samples

Android.Hardware.Usb.UsbDeviceConnection.SetInterface Method

Sets the current UsbInterface.

Syntax

[Android.Runtime.Register("setInterface", "(Landroid/hardware/usb/UsbInterface;)Z", "GetSetInterface_Landroid_hardware_usb_UsbInterface_Handler")]
public virtual Boolean SetInterface (UsbInterface intf)

Parameters

intf

Remarks

Sets the current UsbInterface. Used to select between two interfaces with the same ID but different alternate setting.

[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