Sdílet prostřednictvím


UsbDeviceConnection.SetConfiguration(UsbConfiguration) Method

Definition

Sets the device's current android.hardware.usb.UsbConfiguration.

[Android.Runtime.Register("setConfiguration", "(Landroid/hardware/usb/UsbConfiguration;)Z", "GetSetConfiguration_Landroid_hardware_usb_UsbConfiguration_Handler")]
public virtual bool SetConfiguration (Android.Hardware.Usb.UsbConfiguration? configuration);
[<Android.Runtime.Register("setConfiguration", "(Landroid/hardware/usb/UsbConfiguration;)Z", "GetSetConfiguration_Landroid_hardware_usb_UsbConfiguration_Handler")>]
abstract member SetConfiguration : Android.Hardware.Usb.UsbConfiguration -> bool
override this.SetConfiguration : Android.Hardware.Usb.UsbConfiguration -> bool

Parameters

configuration
UsbConfiguration

Returns

true if the configuration was successfully set

Attributes

Remarks

Sets the device's current android.hardware.usb.UsbConfiguration.

Java documentation for android.hardware.usb.UsbDeviceConnection.setConfiguration(android.hardware.usb.UsbConfiguration).

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