ScanResult class

A scan result emitted by the scanning operation, containing Peripheral and AdvertisementData.

Annotations
  • @JsonSerializable()

Constructors

ScanResult({BluetoothDevice? device, int? eventType, int? primaryPhy, int? secondaryPhy, int? advertisingSid, int? txPower, int? rssi, int? periodicAdvertisingInterval, ScanRecord? scanRecord, int? timestampNanos, bool? connectable, int? queue})
ScanResult.fromJson(Map<String, dynamic> json)
factory

Properties

advertisingSid int?
final
connectable bool?
final
device BluetoothDevice?
final
eventType int?
final
hashCode int
The hash code for this object.
no setterinherited
periodicAdvertisingInterval int?
final
primaryPhy int?
final
queue int?
final
rssi int?
Signal strength of the peripheral in dBm.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scanRecord ScanRecord?
final
secondaryPhy int?
final
timestampNanos int?
final
txPower int?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited