samplingSchema property

  1. @override
SamplingSchema get samplingSchema
override

Default samplings schema for:

  • BLUETOOTH - scanning every 10 minutes, sampling for 5 seconds
  • WIFI - collecting every 10 minutes

Implementation

@override
SamplingSchema get samplingSchema => SamplingSchema()
  ..addConfiguration(
      BLUETOOTH,
      PeriodicSamplingConfiguration(
        interval: const Duration(minutes: 10),
        duration: const Duration(seconds: 5),
      ))
  ..addConfiguration(
      WIFI,
      IntervalSamplingConfiguration(
        interval: const Duration(minutes: 10),
      ));