UsbDeviceConnection.SetInterface(UsbInterface) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the current android.hardware.usb.UsbInterface
.
[Android.Runtime.Register("setInterface", "(Landroid/hardware/usb/UsbInterface;)Z", "GetSetInterface_Landroid_hardware_usb_UsbInterface_Handler")]
public virtual bool SetInterface (Android.Hardware.Usb.UsbInterface? intf);
[<Android.Runtime.Register("setInterface", "(Landroid/hardware/usb/UsbInterface;)Z", "GetSetInterface_Landroid_hardware_usb_UsbInterface_Handler")>]
abstract member SetInterface : Android.Hardware.Usb.UsbInterface -> bool
override this.SetInterface : Android.Hardware.Usb.UsbInterface -> bool
Parameters
- intf
- UsbInterface
Returns
true if the interface was successfully selected
- Attributes
Remarks
Sets the current android.hardware.usb.UsbInterface
. Used to select between two interfaces with the same ID but different alternate setting.
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.