DummyLocationManager class abstract
Provides the ability to set any location and notify all consumers of this location.
This is a very simple location manager that is responsible for passing any locations via setLocation method and notifying all consumers.
@attention The main reason why we need this class is to allow the user to set this LocationManager to Guide via setLocationManager, just to correct any desirable location via Guide.
- Implemented types
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
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
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
-
setLocation(
Location location) → void - Sets a location and notifies all consumers of this location.
-
subscribeForLocationUpdates(
LocationSubscriptionSettings subscriptionSettings, LocationListener locationListener) → void -
Subscribe for location update events. If the listener was already
subscribed to updates from the LocationManager, subscription settings
will be updated.
inherited
-
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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited