open fun onHostSaveInstanceState(): Unit
You must call this method from the method responsible for the saving of the stated hosting components, e.g., android.app.Activity#onSaveInstanceState(Bundle)
or androidx.fragment.app.Fragment#onSaveInstanceState(Bundle)
. It's determined when MapView
will be recreated and the native part will be not destroyed when onDestroy()
will be called.