ScanSettings class

Model of the data to be advertised.

Annotations
  • @JsonSerializable()

Constructors

ScanSettings({ScanMode? scanMode, int? reportDelay, int? numOfMatches, bool? legacyMode, Phy? phy})
ScanSettings.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
legacyMode bool?
Android Oreo (SDK >= 26) only Set whether only legacy advertisments should be returned in scan results. Legacy advertisements include advertisements as specified by the Bluetooth core specification 4.2 and below. This is true by default for compatibility with older apps.
final
numOfMatches int?
Set the number of matches for Bluetooth LE scan filters hardware match.
final
phy Phy?
Android Oreo (SDK >= 26) only
final
reportDelay int?
Set report delay timestamp for Bluetooth LE scan. If set to 0, you will be notified of scan results immediately. If > 0, scan results are queued up and delivered after the requested delay or 5000 milliseconds (whichever is higher). Note scan results may be delivered sooner if the internal buffers fill up.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scanMode ScanMode?
Android only
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