registerLifecycleObserver

abstract fun registerLifecycleObserver(mapView: View, observer: MapboxLifecycleObserver)

Register the MapboxLifecycleObserver to observe lifecycle events from LifecycleOwner

Parameters

mapView

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

observer

observer listening to lifecycle events