LocationPlugin

Define the interfaces for the Location plugin.

interface LocationPlugin : MapStyleObserverPlugin, LifecyclePlugin, MapCameraPlugin

Functions

cleanup
Link copied to clipboard

Called when the map is destroyed. Should be used to cleanup plugin resources for that map.

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

Called when the plugin is first added to the map.

open override fun initialize()
onCameraMove
Link copied to clipboard

Called whenever camera position changes.

abstract override fun onCameraMove(lat: Double, lon: Double, zoom: Double, pitch: Double, bearing: Double, padding: Array<Double>?, anchor: Pair<Double, Double>?)
onDelegateProvider
Link copied to clipboard

Provides all map delegate instances.

open override fun onDelegateProvider(delegateProvider: MapDelegateProvider)
onStart
Link copied to clipboard

Called whenever activity's/fragment's lifecycle is entering a "started" state.

open override fun onStart()
onStop
Link copied to clipboard

Called whenever activity's/fragment's lifecycle is entering a "stopped" state.

open override fun onStop()
onStyleChanged
Link copied to clipboard

Called when a new Style is loaded.

abstract override fun onStyleChanged(styleDelegate: StyleManagerInterface)
onStyleLoading
Link copied to clipboard

Called when a new Style is being loaded.

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

Inheritors

LocationPluginImpl
Link copied to clipboard