sdk-common / com.tomtom.online.sdk.location / LocationRequest / Builder

Builder

class Builder

Builder that is used to define a location update constraints eg., minimal time interval.

Constructors

<init>

Builder()

Builder that is used to define a location update constraints eg., minimal time interval.

Functions

build

fun build(): LocationRequest

Creates a new instance of the LocationRequest.

distanceThreshold

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.

interval

fun interval(minIntervalInMillis: Long): LocationRequest.Builder

Defines the minimal time between location updates in milliseconds.