LocationProviderType

object LocationProviderType

Type of a location provider.

Types

Link copied to clipboard
annotation class Type

Possible values of location provider type.

Properties

Link copied to clipboard
const val MIXED: String

Location provider emits both mocked and real locations. Used for cases when you need to switch location providers in runtime, for example, if you have a toggle that enables/disables location simulation. Note that mocked locations emitted by a location provider with type "mixed" must have isMock extra set to true, while real locations must have it set to false or not set at all. To set this flag, use:

Link copied to clipboard
const val MOCKED: String

Location provider emits only mocked locations. Used for cases with location simulations, replay, etc. Note that the locations emitted by a location provider with type "mocked" must have isMock extra set to true. To set this flag, use:

Link copied to clipboard
const val REAL: String

Location provider emits only real locations, where the device actually is.