Language

HidManager.Devices Property

Definition

Returns a list of all currently connected HID devices.

public System.Collections.Generic.IList<Android.Hardware.Hid.HidDevice> Devices { [Android.Runtime.Register("getDevices", "()Ljava/util/List;", "", ApiSince=37)] [Android.Runtime.RequiresPermission("android.permission.ACCESS_HID")] get; }
[<get: Android.Runtime.Register("getDevices", "()Ljava/util/List;", "", ApiSince=37)>]
[<get: Android.Runtime.RequiresPermission("android.permission.ACCESS_HID")>]
member this.Devices : System.Collections.Generic.IList<Android.Hardware.Hid.HidDevice>

Property Value

a list of connected HID devices, or an empty list if no devices are connected.

Attributes

Remarks

Returns a list of all currently connected HID devices.

The returned list contains HidDevice objects representing each connected HID node that the system has detected and made available.

It is recommended to call canEnumerateDevices() before calling this method. This method may take several seconds to complete, so it should only be called from a worker thread. Requires Manifest.permission.ACCESS_HID

Android reference for android.hardware.hid.HidManager.getDevices.

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