BluetoothScanPeriodicSamplingConfiguration
A sampling configuration specifying how to scan for Bluetooth devices on a regular basis for a specific period.
Used with the ConnectivitySamplingPackage.BLUETOOTH measure. A scan starts every interval and runs for duration. The scan is filtered on withServices and withRemoteIds to only collect data from specific services and remote ids. Empty lists mean no filtering.
Filtering on remoteIds allows Android to scan for devices in the background without needing to be in the foreground. This is not possible on iOS.
- Inheritance
-
- Object
- Serializable
- SamplingConfiguration
- IntervalSamplingConfiguration
- PeriodicSamplingConfiguration
- BluetoothScanPeriodicSamplingConfiguration
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
BluetoothScanPeriodicSamplingConfiguration.fromJson
BluetoothScanPeriodicSamplingConfiguration
Properties
fromJsonFunction
The function which can convert a JSON string to an object of this type.
withRemoteIds
List of remote device IDs to filter the scan results.
withServices
List of Bluetooth service UUIDs to filter the scan results.
Methods
toJson
Return a JSON encoding of this object.