Builder

class Builder(val locationProviderFactory: LocationProviderFactory, val locationProviderType: String)

A builder class for CustomLocationFactoryProviderConfig.

Parameters

locationProviderFactory

a LocationProviderFactory implementation that creates custom location provider based on a request. Note that locationProviderFactory can only be set together with an explicit locationProviderType. Important: locations emitted by a custom location provider must set a valid value for isMock extra flag: real locations must have it set to false or not set at all, while mocked/simulated locations must have it set to true. Every location object specifies this flag, so if your location provider's type is LocationProviderType.MIXED, emitted locations will just have different flag values, depending on whether they are real or mocked. To set this flag, use:

Location.Builder#extra(Value.valueOf(hashMapOf(LocationExtraKeys.IS_MOCK to Value.valueOf(true/false))))
locationProviderType

set together with custom locationProviderFactory. This parameters tells the SDK what is the nature of locations that custom location provider will emit. Can be one of the values listed in LocationProviderType.Type.

Constructors

Link copied to clipboard
constructor(locationProviderFactory: LocationProviderFactory, locationProviderType: String)

Properties

Functions