WebUSB class
Wraps around WebUSB APIs from browsers to provide low-level interfaces such as poll for FlutterNfcKitWeb.
Note: you should NEVER use this class directly, but instead use the FlutterNfcKit class in your project.
Constructors
- WebUSB()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- customProbeData ↔ String
-
getter/setter pair
- onDisconnect ↔ Function?
-
getter/setter pair
Static Methods
-
finish(
bool closeWebUSB) → Future< void> - Finish this session, also end WebUSB session if explicitly asked by user.
-
poll(
int timeout, bool probeMagic) → Future< String> - Try to poll a WebUSB device according to our protocol.
-
transceive(
String capdu) → Future< String> - Transceive data with polled WebUSB device according to our protocol.
Constants
- USB_PROBE_MAGIC → const String