Builder

class Builder

A builder class for LocationOptions.

Constructors

Link copied to clipboard
fun Builder()

Functions

Link copied to clipboard
fun build(): LocationOptions

Build LocationOptions object.

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).