AutoPauseEngine class
Auto-Pause & Auto-Resume Engine.
Automatically detects when the user is stationary for a configurable duration, pauses high-frequency processing/heartbeats to save battery, and automatically resumes full tracking when movement is detected.
Constructors
- AutoPauseEngine({Duration stationaryThresholdDuration = const Duration(minutes: 2), MotionDetector? motionDetector})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isPaused → bool
-
Whether tracking is currently auto-paused.
no setter
-
onPauseStateChanged
→ Stream<
bool> -
Stream emitting auto-pause state changes (true = paused, false = resumed).
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stationaryThresholdDuration → Duration
-
final
Methods
-
dispose(
) → void - Dispose event controller.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
process(
AllInOneLocation location) → AllInOneLocation - Process an incoming location fix to evaluate auto-pause / auto-resume triggers.
-
reset(
) → void - Reset auto-pause engine state.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited