LocationModule class
Module for high-accuracy GPS tracking and Geofencing.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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.
-
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(
) → Future< bool> - Starts real-time location updates. Coordinates are delivered via the stream.
-
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