MapboxLifecyclePlugin

Defines interface of a MapViewPlugin.

Functions

Link copied to clipboard
open fun cleanup()

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

Link copied to clipboard
open fun initialize()

Called when the plugin is first added to the map.

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

Provides all map delegate instances.

Link copied to clipboard
abstract fun registerLifecycleObserver(mapView: View, observer: MapboxLifecycleObserver)

Register the MapboxLifecycleObserver to observe lifecycle events from LifecycleOwner