title: How do I use the new Saved State Module of ViewModel
body: <p>I'm using lifecycle version 2.2.0-rc03 and the <a href="https://developer.android.com/topic/libraries/architecture/viewmodel-savedstate" rel="noreferrer">official docs</a> and articles found don't even list the correct class name or constructor arguments. I think I have to get the ViewModel instance through something like this</p>
  
  <pre><code>viewModel = ViewModelProvider(this, SavedStateViewModelFactory(requireActivity().application, savedStateRegistryOwner))
              .get(SelectedTracksViewModel::class.java)
  </code></pre>
  
  <p>but I can't figure out the SavedStateRegistryOwner.</p>
  
  <p>Can someone give a simple example of how to create the saved state ViewModel instance and the correct way to save and restore a value in the ViewModel?</p>