HIDDevice class
Secure context: This feature is available only in secure
contexts (HTTPS), in some or all supporting browsers.
The interface of the WebHID API
represents a HID Device. It
provides properties for accessing information about the device,
methods for opening and closing the connection, and the sending
and receiving of reports.
EventTarget
HIDDevice
- Implemented types
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- HIDDevice()
-
factory
Properties
-
collections
→ Iterable<
HIDCollectionInfo> -
Available on HIDDevice, provided by the PropsHIDDevice extension
no setter - hashCode → int
-
The hash code for this object.
no setterinherited
-
oninputreport
↔ EventHandlerNonNull<
Event> ? -
Available on HIDDevice, provided by the PropsHIDDevice extension
getter/setter pair - opened → bool
-
Available on HIDDevice, provided by the PropsHIDDevice extension
no setter - productId → int
-
Available on HIDDevice, provided by the PropsHIDDevice extension
no setter - productName → String
-
Available on HIDDevice, provided by the PropsHIDDevice extension
no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- vendorId → int
-
Available on HIDDevice, provided by the PropsHIDDevice extension
no setter
Methods
-
addEventListener(
String type, EventListener? callback, [dynamic options]) → void -
Available on EventTarget, provided by the PropsEventTarget extension
-
close(
) → Future< void> -
Available on HIDDevice, provided by the PropsHIDDevice extension
-
dispatchEvent(
Event event) → bool -
Available on EventTarget, provided by the PropsEventTarget extension
-
forget(
) → Future< void> -
Available on HIDDevice, provided by the PropsHIDDevice extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
open(
) → Future< void> -
Available on HIDDevice, provided by the PropsHIDDevice extension
-
receiveFeatureReport(
int reportId) → Future< ByteData> -
Available on HIDDevice, provided by the PropsHIDDevice extension
-
removeEventListener(
String type, EventListener? callback, [dynamic options]) → void -
Available on EventTarget, provided by the PropsEventTarget extension
-
sendFeatureReport(
int reportId, dynamic data) → Future< void> -
Available on HIDDevice, provided by the PropsHIDDevice extension
-
sendReport(
int reportId, dynamic data) → Future< void> -
Available on HIDDevice, provided by the PropsHIDDevice extension
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited