DeviceHandle class final
A stable description of one hardware device.
id is platform-specific: a USB device name on Android, a BLE address, or a browser-assigned id on the web. The other fields are filled in where the platform exposes them.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
Platform-specific identifier, unique among currently known devices.
final
-
interfaceClasses
→ List<
int> -
USB interface class codes, for example
0x0Efor video.final - name → String?
-
Human-readable name reported by the device, if any.
final
- productId → int?
-
USB product ID.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serialNumber → String?
-
Serial number, when the platform and permissions allow reading it.
final
-
serviceUuids
→ List<
String> -
Advertised BLE service UUIDs, lower case.
final
- vendorId → int?
-
USB vendor ID.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override