getUsbDevices

open override fun getUsbDevices(tree: Boolean): List<UsbDevice>

getUsbDevices Retrieves the USB devices connected to the system, with the option to represent them as a device tree.

Return

A list of UsbDevice objects representing the USB devices.

Parameters

tree

Whether to return a tree structure of connected devices.