LocationRequest
class LocationRequest(val priority: Priority = Priority.Balanced, val interval: Long = 5000, val maximumAge: Long = 0, val ignoreAvailableCheck: Boolean = false)
Represents a request for location updates.
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.