SpoofDetectionConfig constructor

const SpoofDetectionConfig({
  1. bool enabled = true,
  2. bool blockMockLocations = false,
  3. SpoofSensitivity sensitivity = SpoofSensitivity.balanced,
  4. double maxPossibleSpeedKph = kMaxPossibleSpeedKph,
  5. double maxAltitudeChangePerSecond = kMaxAltitudeChangePerSecondMeters,
  6. int minFactorsForDetection = kDefaultMinSpoofFactors,
  7. void onSpoofDetected(
    1. SpoofDetectionEvent event
    )?,
  8. bool checkMockProvider = true,
  9. bool checkDeveloperOptions = false,
  10. bool checkMockMode = true,
  11. List<String> trustedMockProviders = const [],
})

Creates spoof detection configuration.

Implementation

const SpoofDetectionConfig({
  this.enabled = true,
  this.blockMockLocations = false,
  this.sensitivity = SpoofSensitivity.balanced,
  this.maxPossibleSpeedKph = kMaxPossibleSpeedKph,
  this.maxAltitudeChangePerSecond = kMaxAltitudeChangePerSecondMeters,
  this.minFactorsForDetection = kDefaultMinSpoofFactors,
  this.onSpoofDetected,
  this.checkMockProvider = true,
  this.checkDeveloperOptions = false,
  this.checkMockMode = true,
  this.trustedMockProviders = const [],
});