LocationSimulator class abstract

Simulates the device location.

Implemented types

Constructors

LocationSimulator()

Properties

active bool
True if simulator is not suspended.
no setter
geometry Polyline?
The polyline describing the location.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
speed double
Movement speed.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
polylinePosition() PolylinePosition
The position of the polyline.
requestSingleUpdate(LocationListener locationListener) → void
Subscribe to a single location update. If the listener was already subscribed to location updates, the previous subscription will be removed.
inherited
resume() → void
Resumes updates stopped by a suspend() call.
inherited
setLocationSpeedProviding(bool provide) → void
Fill location::Location::speed.
startSimulation(SimulationAccuracy simulationAccuracy) → void
Start simulation.
stopSimulation() → void
Stop simulation.
subscribeForLocationUpdates(LocationFilteringMode filteringMode, Purpose purpose, LocationListener locationListener, {required double desiredAccuracy, required int minTime, required double minDistance, required bool allowUseInBackground}) → void
Subscribe for location update events. If the listener was already subscribed to updates from the LocationManager, subscription settings will be updated. Use desiredAccuracy = 0 to obtain best possible accuracy, minTime = 0 to ignore minTime and use minDistance instead, minDistance = 0 to use only minTime. If both minTime and minDistance are set to zero, the subscription will use the same settings as other LocationManager clients.
inherited
subscribeForSimulatorEvents(LocationSimulatorListener simulatorListener) → void
Subscribes to simulation events.
suspend() → void
Stops updates for all subscriptions until resume() is called.
inherited
toString() String
A string representation of this object.
inherited
unsubscribe(LocationListener locationListener) → void
Unsubscribe from location update events. Can be called for either LocationManager.subscribeForLocationUpdates or LocationManager.requestSingleUpdate. For LocationManager.requestSingleUpdate, if an event was already received, LocationManager.unsubscribe does not have any effect. If the listener is already unsubscribed, the method call is ignored.
inherited
unsubscribeFromSimulatorEvents(LocationSimulatorListener simulatorListener) → void
Unsubscribes from simulation events.

Operators

operator ==(Object other) bool
The equality operator.
inherited