factory

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

The factory for creating a ChannelsViewModel.

Return

The ViewModelProvider.Factory to create the ViewModel.

Since

1.0.0-beta.1

Parameters

params

The ChannelsViewModelParams to create the ViewModel.

See also


fun factory(repository: ChannelsScreenResourceRepository): ViewModelProvider.Factory

The factory for creating a ChannelsViewModel.

Return

The ViewModelProvider.Factory to create the ViewModel.

Since

1.0.0-beta.2

Parameters

repository

The ChannelsScreenResourceRepository to create the ViewModel.