class Builder
Builder that is used to define a location update constraints eg., minimal time interval.
Builder()
Builder that is used to define a location update constraints eg., minimal time interval. |
fun build(): LocationRequest
Creates a new instance of the LocationRequest. |
|
fun distanceThreshold(minDistanceInMeters: Float): LocationRequest.Builder
Defines the minimal threshold for a distance between location updates in meters. If a location update distance difference is less than threshold, then it will be ignored and not passed to the location source. |
|
fun interval(minIntervalInMillis: Long): LocationRequest.Builder
Defines the minimal time between location updates in milliseconds. |