MapboxLifecyclePluginImpl

class MapboxLifecyclePluginImpl : MapboxLifecyclePlugin

Concrete implementation of MapboxLifecyclePlugin.

Constructors

MapboxLifecyclePluginImpl
Link copied to clipboard
fun MapboxLifecyclePluginImpl()

Functions

cleanup
Link copied to clipboard
open override fun cleanup()

Called when the map is destroyed. Unregisters the ComponentCallbacks registered with the Application so that the MapView graph can be garbage-collected even if the hosting Activity has not yet been destroyed.

initialize
Link copied to clipboard
open fun initialize()
onDelegateProvider
Link copied to clipboard
open fun onDelegateProvider(delegateProvider: MapDelegateProvider)
registerLifecycleObserver
Link copied to clipboard
open override fun registerLifecycleObserver(mapView: View, observer: MapboxLifecycleObserver)

Register a MapboxLifecycleObserver to observe life cycle events from LifecycleOwner.