LocationManager class abstract
Handles location updates and changes.
- Implemented types
- Implementers
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.
-
resume(
) → void - Resumes updates stopped by a suspend() call.
-
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.
-
suspend(
) → void - Stops updates for all subscriptions until resume() is called.
-
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.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited