GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

Search e01

One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.

6 results across 6 corpora for USBDevice.

Developer library 6

USBInTransferResult

Result` interface of the [WebUSB API](/docs/Web/API/WebUSB_API) provides the result from a call to the `transferIn()` and `controlTransferIn()` methods of the `USBDevice` interface. It represents the result from requesting a transfer of data from the USB device to the USB host. ## Constructor - USBInTransferResult() - : Creates a new `USBInTransferResult` object with the provided `status` and `data` fields. ##

USBInterface

uration of this interface. By default this is the `USBAlternateInterface` from `alternates` with `alternateSetting` equal to `0`. It can be changed by calling `USBDevice.selectAlternateInterface()` with any other value found in `alternates`. - USBInterface.alternates - : Returns an array containing instances of the `USBAlternateInterface` interface describing each of the alternative configurations possible for th

MDN Web Docs mirror · CC BY-SA 2.5 (MDN) · https://developer.mozilla.org/en-US/docs/Web/API/USBInterface

USBConnectionEvent

## Constructor - USBConnectionEvent() - : Returns a `USBConnectionEvent` object. ## Instance properties - USBConnectionEvent.device - : Returns a USBDevice object representing the current device. ## Examples In the following example listening for connect and disconnect events is used to add and remove the devices from the user interface of an application. ```js navigator.usb.addEventListener("connect

MDN Web Docs mirror · CC BY-SA 2.5 (MDN) · https://developer.mozilla.org/en-US/docs/Web/API/USBConnectionEvent

USBConnectionEvent: USBConnectionEvent() constructor

isconnect`. - `options` - : An object that, _in addition of the properties defined in Event()_, can have the following properties: - `device` - : A USBDevice representing the USB device being connected or disconnected. ### Return value A new USBConnectionEvent object. ## Specifications ## Browser compatibility

USBConnectionEvent: device property

WebUSB API The **`device`** read-only property of the USBConnectionEvent interface returns a USBDevice object representing the device being connected or disconnected. ## Value A USBDevice object. ## Examples Connecting a USB device fires the `connect` event. The current USBDevice is returned by calling `event.device`. ```js navigator.usb.addEventListener("connect", (event) => { console.log(event.device); });

USB

ce inherits from EventTarget. ## Instance properties None. ## Instance methods - USB.getDevices() - : Returns a Promise that resolves with an array of USBDevice objects for paired attached devices. - USB.requestDevice() - : Returns a Promise that resolves with an instance of USBDevice if the specified device is found. Calling this function triggers the user agent's pairing flow. ## Events - connect -

MDN Web Docs mirror · CC BY-SA 2.5 (MDN) · https://developer.mozilla.org/en-US/docs/Web/API/USB

JSON results · Services directory