LocationRequest

class LocationRequest(val priority: Priority = Priority.Balanced, val interval: Long = 5000, val maximumAge: Long = 0)

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.

Constructors

Link copied to clipboard
constructor(priority: Priority = Priority.Balanced, interval: Long = 5000, maximumAge: Long = 0)

Properties

Link copied to clipboard
val interval: Long = 5000
Link copied to clipboard
val maximumAge: Long = 0
Link copied to clipboard