addViewModelKey

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 ) )