tracelet_platform_interface 0.8.0
tracelet_platform_interface: ^0.8.0 copied to clipboard
A common platform interface for the Tracelet background geolocation plugin. Used by tracelet_android and tracelet_ios implementations.
tracelet_platform_interface #
A common platform interface for the Tracelet background geolocation plugin.
This package provides the abstract classes and types that the platform-specific implementations (tracelet_android, tracelet_ios, tracelet_web) implement.
It also contains shared Dart algorithms used by all platforms: LocationProcessor (distance/accuracy/speed/mock filtering), KalmanLocationFilter (GPS smoothing), GeofenceEvaluator, TripManager, ScheduleParser, PersistDecider, and GeoUtils. See MockDetectionLevel enum and LocationProcessor mock detection for cross-platform spoof rejection.
The OEM Compatibility API (getSettingsHealth(), openOemSettings()) is defined here as abstract methods, with platform implementations providing manufacturer-specific behavior.
Usage #
You should not depend on this package directly. Instead, depend on tracelet which automatically includes the correct platform implementation.
This package is only relevant if you are writing a custom platform implementation for Tracelet.
Related Packages #
| Package | Description |
|---|---|
tracelet |
App-facing Dart API — the only package you depend on |
tracelet_android |
Android implementation |
tracelet_ios |
iOS implementation |
tracelet_web |
Web implementation |