Mavericks View Model Config
abstract class MavericksViewModelConfig<S : Any>(debugMode: Boolean, stateStore: MavericksStateStore<S>, coroutineScope: CoroutineScope)
Content copied to clipboard
Provides configuration for a MavericksViewModel.
Constructors
MavericksViewModelConfig
Link copied to clipboard
fun <S : Any> MavericksViewModelConfig(debugMode: Boolean, stateStore: MavericksStateStore<S>, coroutineScope: CoroutineScope)
Content copied to clipboard
Types
Block Executions
Link copied to clipboard
Defines whether a MavericksViewModel.execute invocation should not be run.
Functions
on Execute
Link copied to clipboard
abstract fun <S : MavericksState> onExecute(viewModel: MavericksViewModel<S>): MavericksViewModelConfig.BlockExecutions
Content copied to clipboard
Called each time a MavericksViewModel.execute function is invoked. This allows the execute function to be skipped, based on the returned BlockExecutions value.