UsbDeviceConnection.SetConfiguration(UsbConfiguration) 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 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
.
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.