LocationModule class
Module for high-accuracy GPS tracking and Geofencing.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isRunning → bool
-
Returns whether location updates are active.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stream
→ Stream<
LocationData> -
A stream of real-time LocationData telemetry.
no setter
Methods
-
addGeofence(
String id, double lat, double lon, double radius) → Future< bool> - Adds a virtual circular boundary trigger at the specified coordinates.
-
enableDeadReckoning(
bool enabled) → Future< bool> - Enables or disables real-time Kalman Filter Dead Reckoning Sensor Fusion.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setBackgroundEnabled(
bool enabled) → Future< bool> - Enables or disables background location support where the platform allows it.
-
start(
{bool autoRequestPermission = true}) → Future< bool> - Starts real-time location updates. Coordinates are delivered via the stream.
-
startWithOptions(
LocationOptions options, {bool autoRequestPermission = true}) → Future< bool> - Starts real-time location updates with granular native options.
-
stop(
) → Future< bool> - Stops all location updates and releases the GPS hardware.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited