Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. USBInTransferResult

USBInTransferResult

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Experimental:This is anexperimental technology
Check theBrowser compatibility table carefully before using this in production.

Secure context: This feature is available only insecure contexts (HTTPS), in some or allsupporting browsers.

Note: This feature is available inWeb Workers.

TheUSBInTransferResult interface of theWebUSB API provides the result from a call to thetransferIn() andcontrolTransferIn() methods of theUSBDevice interface. It represents the result from requesting a transfer of data from the USB device to the USB host.

Constructor

USBInTransferResult()Experimental

Creates a newUSBInTransferResult object with the providedstatus anddata fields.

Instance properties

USBInTransferResult.dataRead onlyExperimental

Returns aDataView object containing the data received from the USB device, if any.

USBInTransferResult.statusRead onlyExperimental

Returns the status of the transfer request, one of:

Specifications

Specification
WebUSB API
# usbintransferresult

Browser compatibility

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp