mvrx-mocking / com.airbnb.mvrx.mocking / MockViewModelDelegateFactory / <init>

<init>

MockViewModelDelegateFactory(configFactory: MockMavericksViewModelConfigFactory)

This delegate factory creates ViewModels that are optionally mockable, as configured by MockMavericksViewModelConfigFactory.mockBehavior.

If a mock behavior is enabled, then when a ViewModel is created this will look for a mock state in MockableMavericks.mockStateHolder, and if one exists it will be forced onto the ViewModel.