語言

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 裝置的雜湊圖。

屬性

備註

回傳包含目前所有 USB 裝置的 HashMap。 USB 裝置名稱是回傳 HashMap 的金鑰。 如果沒有連接裝置,或 USB 主機模式是非啟用或不支援,結果會是空的。

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

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於