registerLifecycleObserver

open override fun registerLifecycleObserver(mapView: View, observer: MapboxLifecycleObserver)

Register a MapboxLifecycleObserver to observe life cycle events from LifecycleOwner

Parameters

mapView

the instance of mapView, will get the LifecycleOwner from mapview's parent

observer

the observer that listen to the life cycle events