Observing and reading data · FieldTrack360
FieldTrack360

Observing and reading data

01 Sept 2026 · FieldTrack360

``` trackIt.state // StateFlow<TrackItState> trackIt.events // SharedFlow<TrackItEvent> trackIt.liveTrack() // Flow<LiveTrackUpdate> ```

Events cover Location, LocationRejected, MotionChange, ActivityChange, EnabledChange, ProviderChange, Heartbeat, PowerSaveChange, GeofenceAdded, GeofenceRemoved, GeofenceEntered, GeofenceExited, SessionInterrupted, Diagnostic and Error.

Handling every case is the point - a handler covering four of fifteen makes silence meaningless.

Reading stored data

getPoints() and getSessions() query what was captured. buildTrack() and exportGeoJson() turn it into something you can render or send onward. addGeofence() manages up to 19 system fences.