MapboxLifecyclePlugin

Defines interface of a MapViewPlugin.

fun fun interface MapboxLifecyclePlugin : MapPlugin

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()
onDelegateProvider
Link copied to clipboard

Provides all map delegate instances.

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

Register the MapboxLifecycleObserver to observe lifecycle events from LifecycleOwner

abstract fun registerLifecycleObserver(mapView: View, observer: MapboxLifecycleObserver)
toString
Link copied to clipboard
open override fun toString(): String

Inheritors

MapboxLifecyclePluginImpl
Link copied to clipboard