语言

UsbManager.DeviceList 属性

定义

返回包含当前附加的所有 USB 设备的 HashMap。

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>

属性值

包含所有连接的 USB 设备的 HashMap。

特性

注解

返回包含当前附加的所有 USB 设备的 HashMap。 USB 设备名称是返回的 HashMap 的密钥。 如果未连接任何设备,或者 USB 主机模式处于非活动状态或不受支持,则结果将为空。

Java文档android.hardware.usb.UsbManager.getDeviceList()。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于