Builder
class Builder
A builder class for LocationOptions.
Functions
Link copied to clipboard
Build LocationOptions object.
Link copied to clipboard
fun defaultLocationProviderSource(locationProviderSource: LocationOptions.LocationProviderSource): LocationOptions.Builder
Sets the default location provider source of location data. It takes effect only when there is none locationProviderFactory set.
Link copied to clipboard
Sets an external HandlerThread to be used for delivering location updates. If not set, TripSessionLocationEngine will create and manage its own thread. The caller is responsible for the lifecycle of the provided thread.
Link copied to clipboard
fun locationProviderFactory(locationProviderFactory: DeviceLocationProviderFactory, locationProviderType: String): LocationOptions.Builder
Set custom location provider implementation.
Link copied to clipboard
Set LocationProviderRequest that will be used for creating LocationProvider. If not set, default request will be used (see DEFAULT_REQUEST).