Aracılığıyla paylaş


UsbManager.DeviceList Property

Definition

Returns a HashMap containing all USB devices currently attached.

public virtual System.Collections.Generic.IDictionary<string,Android.Hardware.Usb.UsbDevice>? DeviceList { [Android.Runtime.Register("getDeviceList", "()Ljava/util/HashMap;", "GetGetDeviceListHandler")] get; }
[<get: Android.Runtime.Register("getDeviceList", "()Ljava/util/HashMap;", "GetGetDeviceListHandler")>]
member this.DeviceList : System.Collections.Generic.IDictionary<string, Android.Hardware.Usb.UsbDevice>

Property Value

HashMap containing all connected USB devices.

Attributes

Remarks

Returns a HashMap containing all USB devices currently attached. USB device name is the key for the returned HashMap. The result will be empty if no devices are attached, or if USB host mode is inactive or unsupported.

Java documentation for android.hardware.usb.UsbManager.getDeviceList().

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