USBDevice class

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.

Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

USBDevice()
factory

Properties

configuration USBConfiguration?

Available on USBDevice, provided by the PropsUSBDevice extension

no setter
configurations Iterable<USBConfiguration>

Available on USBDevice, provided by the PropsUSBDevice extension

no setter
deviceClass int

Available on USBDevice, provided by the PropsUSBDevice extension

no setter
deviceProtocol int

Available on USBDevice, provided by the PropsUSBDevice extension

no setter
deviceSubclass int

Available on USBDevice, provided by the PropsUSBDevice extension

no setter
deviceVersionMajor int

Available on USBDevice, provided by the PropsUSBDevice extension

no setter
deviceVersionMinor int

Available on USBDevice, provided by the PropsUSBDevice extension

no setter
deviceVersionSubminor int

Available on USBDevice, provided by the PropsUSBDevice extension

no setter
hashCode int
The hash code for this object.
no setterinherited
manufacturerName String?

Available on USBDevice, provided by the PropsUSBDevice extension

no setter
opened bool

Available on USBDevice, provided by the PropsUSBDevice extension

no setter
productId int

Available on USBDevice, provided by the PropsUSBDevice extension

no setter
productName String?

Available on USBDevice, provided by the PropsUSBDevice extension

no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serialNumber String?

Available on USBDevice, provided by the PropsUSBDevice extension

no setter
usbVersionMajor int

Available on USBDevice, provided by the PropsUSBDevice extension

no setter
usbVersionMinor int

Available on USBDevice, provided by the PropsUSBDevice extension

no setter
usbVersionSubminor int

Available on USBDevice, provided by the PropsUSBDevice extension

no setter
vendorId int

Available on USBDevice, provided by the PropsUSBDevice extension

no setter

Methods

claimInterface(int interfaceNumber) Future<void>

Available on USBDevice, provided by the PropsUSBDevice extension

clearHalt(USBDirection direction, int endpointNumber) Future<void>

Available on USBDevice, provided by the PropsUSBDevice extension

close() Future<void>

Available on USBDevice, provided by the PropsUSBDevice extension

controlTransferIn(USBControlTransferParameters setup, int length) Future<USBInTransferResult>

Available on USBDevice, provided by the PropsUSBDevice extension

controlTransferOut(USBControlTransferParameters setup, [dynamic data]) Future<USBOutTransferResult>

Available on USBDevice, provided by the PropsUSBDevice extension

forget() Future<void>

Available on USBDevice, provided by the PropsUSBDevice extension

isochronousTransferIn(int endpointNumber, Iterable<int> packetLengths) Future<USBIsochronousInTransferResult>

Available on USBDevice, provided by the PropsUSBDevice extension

isochronousTransferOut(int endpointNumber, dynamic data, Iterable<int> packetLengths) Future<USBIsochronousOutTransferResult>

Available on USBDevice, provided by the PropsUSBDevice extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open() Future<void>

Available on USBDevice, provided by the PropsUSBDevice extension

releaseInterface(int interfaceNumber) Future<void>

Available on USBDevice, provided by the PropsUSBDevice extension

reset() Future<void>

Available on USBDevice, provided by the PropsUSBDevice extension

selectAlternateInterface(int interfaceNumber, int alternateSetting) Future<void>

Available on USBDevice, provided by the PropsUSBDevice extension

selectConfiguration(int configurationValue) Future<void>

Available on USBDevice, provided by the PropsUSBDevice extension

toString() String
A string representation of this object.
inherited
transferIn(int endpointNumber, int length) Future<USBInTransferResult>

Available on USBDevice, provided by the PropsUSBDevice extension

transferOut(int endpointNumber, dynamic data) Future<USBOutTransferResult>

Available on USBDevice, provided by the PropsUSBDevice extension

Operators

operator ==(Object other) bool
The equality operator.
inherited