onFragmentInject

var onFragmentInject: (Fragment) -> Unit? = null

Callback invoked when Fragment class is being injected. It should be used in tests for manual dependency injection of Fragment class.

The most common use case is to replace ViewModelCreator.viewModelFactory with the factory that provides a view model with mocked use cases