getUsbDevices

abstract fun getUsbDevices(tree: Boolean): List<UsbDevice>

Returns the list of USB devices connected to the system. If tree is true, the devices are returned in a hierarchical tree structure.

Return

A list of USB devices connected to the system.

Parameters

tree

Whether to return the USB devices in a hierarchical tree structure.