add On Config Provided Listener
fun addOnConfigProvidedListener(callback: (MavericksViewModel<*>, MavericksViewModelConfig<*>) -> Unit)
Content copied to clipboard
Add a listener that will be called every time a MavericksViewModelConfig is created for a new view model. This will happen each time a new ViewModel is created.
The callback includes a reference to the ViewModel that the config was created for, as well as the configuration itself.