Event generated when a device is added to the system. Events are only
broadcast to apps and extensions that have permission to access the
device. Permission may have been granted at install time, when the user
accepted an optional permission (see permissions.request), or
through getUserSelectedDevices.
Claims an interface on a USB device.
Before data can be transfered to an interface or associated endpoints the
interface must be claimed. Only one connection handle can claim an
interface at any given time. If the interface is already claimed, this
call will fail.
Closes a connection handle. Invoking operations on a handle after it
has been closed is a safe operation but causes no action to be taken.
|handle|: The ConnectionHandle to close.
Presents a device picker to the user and returns the Devices
selected.
If the user cancels the picker devices will be empty. A user gesture
is required for the dialog to display. Without a user gesture, the
callback will run as though the user cancelled.
|options|: Configuration of the device picker dialog box.
|callback|: Invoked with a list of chosen Devices.
Tries to reset the USB device.
If the reset fails, the given connection handle will be closed and the
USB device will appear to be disconnected then reconnected.
In this case getDevices or findDevices must be called again
to acquire the device.
Selects an alternate setting on a previously claimed interface.
|handle|: An open connection to the device where this interface has been
claimed.
|interfaceNumber|: The interface to configure.
|alternateSetting|: The alternate setting to configure.