Package 

Class ChannelViewModelFactory

  • All Implemented Interfaces:
    androidx.lifecycle.ViewModelProvider.Factory

    
    public final class ChannelViewModelFactory
     implements ViewModelProvider.Factory
                        

    A ViewModel factory for MessageListViewModel, ChannelHeaderViewModel and MessageInputViewModel.

    • Constructor Detail

      • ChannelViewModelFactory

        ChannelViewModelFactory(String cid, String messageId)
        Parameters:
        cid - The channel id in the format messaging:123.
        messageId - The id of the target message to displayed.
      • ChannelViewModelFactory

        ChannelViewModelFactory(String cid)
        Parameters:
        cid - The channel id in the format messaging:123.