onSaveInstanceState
Called to ask the view model to save its current dynamic state, so it can later be reconstructed in a new instance if its process is restarted.
This corresponds to {@link Activity#onSaveInstanceState(Bundle) Activity.onSaveInstanceState(Bundle)} and most of the discussion there applies here as well. Note however: you must call this method, there is no automatic to save the state.
Parameters
outState
Bundle in which to place your saved state.