CustomLocationFactoryProviderConfig

A configuration class used to set a custom location provider implementation.

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.

Types

Link copied to clipboard
class Builder(val locationProviderFactory: LocationProviderFactory, val locationProviderType: String)

Properties

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Indicates whether some other object is "equal to" this one.

Link copied to clipboard
open override fun hashCode(): Int

Returns a hash code value for the object.

Link copied to clipboard
open override fun toString(): String

Returns a string representation of the object.