bindings/webusb library
WebUSB API
Classes
- AllowedUSBDevice
- Usb
-
Experimental: This is an experimental technologyCheck the
Browser compatibility table carefully before using this in
production.Secure context: This feature is available only in
secure contexts (HTTPS), in some or all supporting browsers.
The interface of the WebUSB API provides attributes and methods
for finding and connecting USB devices from a web page.
Use
navigator.usb
to get access to the object. The USB interface inherits from EventTarget. - USBAlternateInterface
- Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers. The interface of the WebUSB API provides information about a particular configuration of an interface provided by the USB device. An interface includes one or more alternate settings which can configure a set of endpoints based on the operating mode of the device.
- USBConfiguration
- Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers. The interface of the WebUSB API provides information about a particular configuration of a USB device and the interfaces that it supports.
- USBConnectionEvent
-
Secure context: This feature is available only in secure
contexts (HTTPS), in some or all supporting browsers.
The interface of the WebUSB API is the event type passed to
USB.onconnect
andUSB.ondisconnect
when the user agent detects that a new USB device has been connected or disconnected. - USBConnectionEventInit
- USBControlTransferParameters
- USBDevice
- Experimental: This is an experimental technologyCheck the Browser compatibility table carefully before using this in production. The interface of the WebUSB API provides access to metadata about a paired USB device and methods for controlling it.
- USBDeviceFilter
- USBDeviceRequestOptions
- USBEndpoint
- Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers. The interface of the WebUSB API provides information about an endpoint provided by the USB device. An endpoint represents a unidirectional data stream into or out of a device.
- USBInterface
- Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers. The interface of the WebUSB API provides information about an interface provided by the USB device. An interface represents a feature of the device which implements a particular protocol and may contain endpoints for bidirectional communication.
- USBInTransferResult
-
Secure context: This feature is available only in secure
contexts (HTTPS), in some or all supporting browsers.
The interface of the WebUSB API provides the result from a call
to the
transferIn()
andcontrolTransferIn()
methods of the USBDevice interface. It represents the result from requesting a transfer of data from the USB device to the USB host. - USBIsochronousInTransferPacket
-
Secure context: This feature is available only in secure
contexts (HTTPS), in some or all supporting browsers.
The interface of the WebUSB API is part of the response from a
call to the
isochronousTransferIn()
method of the USBDevice interface. It represents the status of an individual packet from a request to transfer data from the USB device to the USB host over an isochronous endpoint. - USBIsochronousInTransferResult
-
Secure context: This feature is available only in secure
contexts (HTTPS), in some or all supporting browsers.
The interface of the WebUSB API provides the result from a call
to the
isochronousTransferIn()
method of the USBDevice interface. It represents the result from requesting a transfer of data from the USB device to the USB host. - USBIsochronousOutTransferPacket
-
Secure context: This feature is available only in secure
contexts (HTTPS), in some or all supporting browsers.
The interface of the WebUSB API is part of the response from a
call to the
isochronousTransferOut()
method of the USBDevice interface. It represents the status of an individual packet from a request to transfer data from the USB host to the USB device over an isochronous endpoint. - USBIsochronousOutTransferResult
-
Secure context: This feature is available only in secure
contexts (HTTPS), in some or all supporting browsers.
The interface of the WebUSB API provides the result from a call
to the
isochronousTransferOut()
method of the USBDevice interface. It represents the result from requesting a transfer of data from the USB host to the USB device. - USBOutTransferResult
-
Secure context: This feature is available only in secure
contexts (HTTPS), in some or all supporting browsers.
The interface of the WebUSB API provides the result from a call
to the
transferOut()
andcontrolTransferOut()
methods of the USBDevice interface. It represents the result from requesting a transfer of data from the USB host to the USB device. - USBPermissionDescriptor
- USBPermissionResult
- USBPermissionStorage
Extensions
- PropsAllowedUSBDevice on AllowedUSBDevice
- PropsUsb on Usb
- PropsUSBAlternateInterface on USBAlternateInterface
- PropsUSBConfiguration on USBConfiguration
- PropsUSBConnectionEvent on USBConnectionEvent
- PropsUSBConnectionEventInit on USBConnectionEventInit
- PropsUSBControlTransferParameters on USBControlTransferParameters
- PropsUSBDevice on USBDevice
- PropsUSBDeviceFilter on USBDeviceFilter
- PropsUSBDeviceRequestOptions on USBDeviceRequestOptions
- PropsUSBEndpoint on USBEndpoint
- PropsUSBInterface on USBInterface
- PropsUSBInTransferResult on USBInTransferResult
- PropsUSBIsochronousInTransferPacket on USBIsochronousInTransferPacket
- PropsUSBIsochronousInTransferResult on USBIsochronousInTransferResult
- PropsUSBIsochronousOutTransferPacket on USBIsochronousOutTransferPacket
- PropsUSBIsochronousOutTransferResult on USBIsochronousOutTransferResult
- PropsUSBOutTransferResult on USBOutTransferResult
- PropsUSBPermissionDescriptor on USBPermissionDescriptor
- PropsUSBPermissionResult on USBPermissionResult
- PropsUSBPermissionStorage on USBPermissionStorage