LocationRequest
constructor(priority: Priority = Priority.Balanced, interval: Long = 5000, maximumAge: Long = 0, ignoreAvailableCheck: Boolean = false)
Parameters
priority
The priority of the request.
interval
The interval at which to receive location updates, in milliseconds.
maximumAge
The maximum age of a cached location that can be used before a new location is requested, in milliseconds.
ignoreAvailableCheck
Whether to ignore the availability of location services when requesting a location. If true
, the request will be made regardless of whether location services are available, potentially resulting in an error if they are not.