SpoofDetectionConfig constructor
- bool enabled = true,
- bool blockMockLocations = false,
- SpoofSensitivity sensitivity = SpoofSensitivity.balanced,
- double maxPossibleSpeedKph = kMaxPossibleSpeedKph,
- double maxAltitudeChangePerSecond = kMaxAltitudeChangePerSecondMeters,
- int minFactorsForDetection = kDefaultMinSpoofFactors,
- void onSpoofDetected(
- SpoofDetectionEvent event
- bool checkMockProvider = true,
- bool checkDeveloperOptions = false,
- bool checkMockMode = true,
- 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 [],
});