factory

fun factory(params: ChannelCreationViewModelParams = ChannelCreationViewModelParams()): ViewModelProvider.Factory

A factory for creating ChannelCreationViewModel.

Return

The ViewModelProvider.Factory to create the ChannelCreationViewModel.

Since

1.0.0-beta.1

Parameters

params

The ChannelCreationViewModelParams to create the ViewModel with.

See also


fun factory(repository: ChannelCreationScreenResourceRepository): ViewModelProvider.Factory

A factory for creating ChannelCreationViewModel.

Return

The ViewModelProvider.Factory to create the ChannelCreationViewModel.

Since

1.0.0-beta.2

Parameters

repository

The ChannelCreationScreenResourceRepository to create the ViewModel with.