Package-level declarations
Functions
Adds a view model key to the arguments of the fragment. You can use it like this: childFragmentManager.beginTransaction() .add( fragmentContainerId, ChildFragment::class.java, Bundle().addViewModelKey(childViewModelKey), CHILD_FRAGMENT_TAG ) )
Creates a ViewModel with the given owner (default is this@Fragment) and registers it.
You should not need to call this directly. It is called by scopedInterface and scopedViewModel. If you have added a key to the arguments of the fragment, it will use that key to retrieve the ViewModelStoreOwner. Otherwise it will use the default key.
You shouldn't need to call this directly.
Provides an interface that has been registered via createViewModelScope by any parent of this Fragment. This will fail if no ViewModel implementing the Interface was registered.
Provides a ViewModel that has benn registered via createViewModelScope by any parent of this Fragment.