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

    • Method Summary

      Modifier and Type Method Description
      <T extends ViewModel> T create(Class<T> modelClass)
      • Methods inherited from class androidx.lifecycle.ViewModelProvider.Factory

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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