handleOnDestroyed

fun handleOnDestroyed(map: MapView? = null, activity: Activity? = null, action: () -> Unit): Cancelable

INTERNAL function to handle lifecycle events

Runs action when activity is destroyed. Cancelling the returned Cancelable unregisters it.