Builder

class Builder

A builder class for LocationOptions.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Link copied to clipboard

Sets the default location provider source of location data. It takes effect only when there is none locationProviderFactory set.

Link copied to clipboard
fun locationProviderFactory(locationProviderFactory: DeviceLocationProviderFactory, locationProviderType: String): LocationOptions.Builder

Set custom location provider implementation.

Link copied to clipboard
fun request(request: LocationProviderRequest): LocationOptions.Builder

Set LocationProviderRequest that will be used for creating LocationProvider. If not set, default request will be used (see DEFAULT_REQUEST).