LocationOptionsAndroid class

Android specific options for location request.

Documentation: developers.google.com/android/reference/com/google/android/gms/location/LocationRequest.html

Constructors

LocationOptionsAndroid({int interval, int fastestInterval, int expirationTime, int expirationDuration, int maxWaitTime, int numUpdates})
const

Properties

expirationDuration int
final
expirationTime int
final
fastestInterval int
final
hashCode int
The hash code for this object. [...]
read-only, inherited
interval int
final
maxWaitTime int
final
numUpdates int
Always 1 in single location request
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map
toString() String
Returns a string representation of this object.
inherited

Operators

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

Constants

defaultContinuous → const LocationOptionsAndroid
Default options for continuous location request
const LocationOptionsAndroid(interval: 5000, fastestInterval: 2500)
defaultSingle → const LocationOptionsAndroid
Default options for single (one-shot) location request
const LocationOptionsAndroid(interval: 5000, fastestInterval: 2500, expirationDuration: 30000)