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