Bluetooth
The nearby Bluetooth devices found in one scan.
Collected by BluetoothProbe for the ConnectivitySamplingPackage.BLUETOOTH measure. Each device appears only once, keyed by its BluetoothDevice.bluetoothDeviceId.
- Inheritance
-
- Object
- Serializable
- Data
- Bluetooth
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
Bluetooth.fromJson
Bluetooth
Properties
endScan
Timestamp of scan end, if available.
fromJsonFunction
The function which can convert a JSON string to an object of this type.
scanResult
The list of BluetoothDevice found in a scan.
Setting it adds the devices to the existing result.
startScan
Timestamp of scan start.
Methods
addBluetoothDevice
- BluetoothDevice device
Adds device, replacing any device with the same id.
addBluetoothDevicesFromRangingResults
Adds a beacon found by ranging as a device named beaconName.
addBluetoothDevicesFromScanResults
- List<
ScanResult> results
Adds the devices in a list of flutter_blue_plus scan results.
toJson
Return a JSON encoding of this object.
toString
A string representation of this object.
Some classes have a default textual representation, often paired with a static parse function (like int.parse). These classes will provide the textual representation as their string representation.
Other classes have no meaningful textual representation that a program will care about. Such classes will typically override toString to provide useful information when inspecting the object, mainly for debugging or logging.