register Lifecycle Observer
open override fun registerLifecycleObserver(mapView: View, observer: MapboxLifecycleObserver)
Content copied to clipboard
Register a MapboxLifecycleObserver to observe life cycle events from LifecycleOwner
Parameters
map View
the instance of mapView, will get the LifecycleOwner from mapview's parent
observer
the observer that listen to the life cycle events