sdk-maps / com.tomtom.online.sdk.map / MapView / onDestroy

onDestroy

open fun onDestroy(): Unit

You must call this method from the parent Activity/Fragment's corresponding method. When the map is going to be recreated (e.g., onSaveInstanceState was called), there will be no action executed. Otherwise, the native part will be removed and map state will be removed.