-
- All Implemented Interfaces:
-
androidx.lifecycle.ViewModelProvider.Factory
public final class ChannelViewModelFactory implements ViewModelProvider.Factory
A ViewModel factory for MessageListViewModel, ChannelHeaderViewModel and MessageComposerViewModel.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChannelViewModelFactory.Builder
-
Constructor Summary
Constructors Constructor Description ChannelViewModelFactory(Context context, String cid, String messageId, String parentMessageId, ChatClient chatClient, ClientState clientState, StreamMediaRecorder mediaRecorder, UserLookupHandler userLookupHandler, Function1<File, String> fileToUri, Integer messageLimit, Boolean enforceUniqueReactions, Integer maxAttachmentCount, Boolean showSystemMessages, MessageFooterVisibility messageFooterVisibility, DateSeparatorHandler dateSeparatorHandler, DateSeparatorHandler threadDateSeparatorHandler, MessagePositionHandler messagePositionHandler, Boolean showDateSeparatorInEmptyThread, Boolean showThreadSeparatorInEmptyThread, Boolean threadLoadOlderToNewer, Boolean isComposerDraftMessagesEnabled)ChannelViewModelFactory(Context context, String cid, String messageId, String parentMessageId, ChatClient chatClient, ClientState clientState, StreamMediaRecorder mediaRecorder, UserLookupHandler userLookupHandler, Function1<File, String> fileToUri, Integer messageLimit, Boolean enforceUniqueReactions, Integer maxAttachmentCount, Boolean showSystemMessages, MessageFooterVisibility messageFooterVisibility, DateSeparatorHandler dateSeparatorHandler, DateSeparatorHandler threadDateSeparatorHandler, MessagePositionHandler messagePositionHandler, Boolean showDateSeparatorInEmptyThread, Boolean showThreadSeparatorInEmptyThread, Boolean threadLoadOlderToNewer)ChannelViewModelFactory(Context context, String cid, String messageId, String parentMessageId, ChatClient chatClient, ClientState clientState, StreamMediaRecorder mediaRecorder, UserLookupHandler userLookupHandler, Function1<File, String> fileToUri, Integer messageLimit, Boolean enforceUniqueReactions, Integer maxAttachmentCount, Boolean showSystemMessages, MessageFooterVisibility messageFooterVisibility, DateSeparatorHandler dateSeparatorHandler, DateSeparatorHandler threadDateSeparatorHandler, MessagePositionHandler messagePositionHandler, Boolean showDateSeparatorInEmptyThread, Boolean showThreadSeparatorInEmptyThread)ChannelViewModelFactory(Context context, String cid, String messageId, String parentMessageId, ChatClient chatClient, ClientState clientState, StreamMediaRecorder mediaRecorder, UserLookupHandler userLookupHandler, Function1<File, String> fileToUri, Integer messageLimit, Boolean enforceUniqueReactions, Integer maxAttachmentCount, Boolean showSystemMessages, MessageFooterVisibility messageFooterVisibility, DateSeparatorHandler dateSeparatorHandler, DateSeparatorHandler threadDateSeparatorHandler, MessagePositionHandler messagePositionHandler, Boolean showDateSeparatorInEmptyThread)ChannelViewModelFactory(Context context, String cid, String messageId, String parentMessageId, ChatClient chatClient, ClientState clientState, StreamMediaRecorder mediaRecorder, UserLookupHandler userLookupHandler, Function1<File, String> fileToUri, Integer messageLimit, Boolean enforceUniqueReactions, Integer maxAttachmentCount, Boolean showSystemMessages, MessageFooterVisibility messageFooterVisibility, DateSeparatorHandler dateSeparatorHandler, DateSeparatorHandler threadDateSeparatorHandler, MessagePositionHandler messagePositionHandler)ChannelViewModelFactory(Context context, String cid, String messageId, String parentMessageId, ChatClient chatClient, ClientState clientState, StreamMediaRecorder mediaRecorder, UserLookupHandler userLookupHandler, Function1<File, String> fileToUri, Integer messageLimit, Boolean enforceUniqueReactions, Integer maxAttachmentCount, Boolean showSystemMessages, MessageFooterVisibility messageFooterVisibility, DateSeparatorHandler dateSeparatorHandler, DateSeparatorHandler threadDateSeparatorHandler)ChannelViewModelFactory(Context context, String cid, String messageId, String parentMessageId, ChatClient chatClient, ClientState clientState, StreamMediaRecorder mediaRecorder, UserLookupHandler userLookupHandler, Function1<File, String> fileToUri, Integer messageLimit, Boolean enforceUniqueReactions, Integer maxAttachmentCount, Boolean showSystemMessages, MessageFooterVisibility messageFooterVisibility, DateSeparatorHandler dateSeparatorHandler)ChannelViewModelFactory(Context context, String cid, String messageId, String parentMessageId, ChatClient chatClient, ClientState clientState, StreamMediaRecorder mediaRecorder, UserLookupHandler userLookupHandler, Function1<File, String> fileToUri, Integer messageLimit, Boolean enforceUniqueReactions, Integer maxAttachmentCount, Boolean showSystemMessages, MessageFooterVisibility messageFooterVisibility)ChannelViewModelFactory(Context context, String cid, String messageId, String parentMessageId, ChatClient chatClient, ClientState clientState, StreamMediaRecorder mediaRecorder, UserLookupHandler userLookupHandler, Function1<File, String> fileToUri, Integer messageLimit, Boolean enforceUniqueReactions, Integer maxAttachmentCount, Boolean showSystemMessages)ChannelViewModelFactory(Context context, String cid, String messageId, String parentMessageId, ChatClient chatClient, ClientState clientState, StreamMediaRecorder mediaRecorder, UserLookupHandler userLookupHandler, Function1<File, String> fileToUri, Integer messageLimit, Boolean enforceUniqueReactions, Integer maxAttachmentCount)ChannelViewModelFactory(Context context, String cid, String messageId, String parentMessageId, ChatClient chatClient, ClientState clientState, StreamMediaRecorder mediaRecorder, UserLookupHandler userLookupHandler, Function1<File, String> fileToUri, Integer messageLimit, Boolean enforceUniqueReactions)ChannelViewModelFactory(Context context, String cid, String messageId, String parentMessageId, ChatClient chatClient, ClientState clientState, StreamMediaRecorder mediaRecorder, UserLookupHandler userLookupHandler, Function1<File, String> fileToUri, Integer messageLimit)ChannelViewModelFactory(Context context, String cid, String messageId, String parentMessageId, ChatClient chatClient, ClientState clientState, StreamMediaRecorder mediaRecorder, UserLookupHandler userLookupHandler, Function1<File, String> fileToUri)ChannelViewModelFactory(Context context, String cid, String messageId, String parentMessageId, ChatClient chatClient, ClientState clientState, StreamMediaRecorder mediaRecorder, UserLookupHandler userLookupHandler)ChannelViewModelFactory(Context context, String cid, String messageId, String parentMessageId, ChatClient chatClient, ClientState clientState, StreamMediaRecorder mediaRecorder)ChannelViewModelFactory(Context context, String cid, String messageId, String parentMessageId, ChatClient chatClient, ClientState clientState)ChannelViewModelFactory(Context context, String cid, String messageId, String parentMessageId, ChatClient chatClient)ChannelViewModelFactory(Context context, String cid, String messageId, String parentMessageId)ChannelViewModelFactory(Context context, String cid, String messageId)ChannelViewModelFactory(Context context, String cid)
-
Method Summary
-
-
Constructor Detail
-
ChannelViewModelFactory
ChannelViewModelFactory(Context context, String cid, String messageId, String parentMessageId, ChatClient chatClient, ClientState clientState, StreamMediaRecorder mediaRecorder, UserLookupHandler userLookupHandler, Function1<File, String> fileToUri, Integer messageLimit, Boolean enforceUniqueReactions, Integer maxAttachmentCount, Boolean showSystemMessages, MessageFooterVisibility messageFooterVisibility, DateSeparatorHandler dateSeparatorHandler, DateSeparatorHandler threadDateSeparatorHandler, MessagePositionHandler messagePositionHandler, Boolean showDateSeparatorInEmptyThread, Boolean showThreadSeparatorInEmptyThread, Boolean threadLoadOlderToNewer, Boolean isComposerDraftMessagesEnabled)
- Parameters:
cid- The current channel ID, to load the messages from.messageId- The message ID to which we want to scroll to when opening the message list.parentMessageId- The ID of the parent Message if the message we want to scroll to is in a thread.chatClient- The client to use for API calls.clientState- The current state of the SDK.mediaRecorder- The media recorder for async voice messages.messageLimit- The limit of the messages to load in a single page.enforceUniqueReactions- Flag to enforce unique reactions or enable multiple from the same user.maxAttachmentCount- The maximum number of attachments that can be sent in a single message.showSystemMessages- If we should show system message items in the list.messageFooterVisibility- The behavior of message footers in the list and their visibility.dateSeparatorHandler- Handler that determines when the date separators should be visible.threadDateSeparatorHandler- Handler that determines when the thread date separators should be visible.messagePositionHandler- Determines the position of the message inside a group.showDateSeparatorInEmptyThread- Configures if we show a date separator when threads are empty.showThreadSeparatorInEmptyThread- Configures if we show a thread separator when threads are empty.threadLoadOlderToNewer- Configures if the thread should be loaded from older to newer messages.isComposerDraftMessagesEnabled- Configures if the composer should support draft messages.
-
ChannelViewModelFactory
ChannelViewModelFactory(Context context, String cid, String messageId, String parentMessageId, ChatClient chatClient, ClientState clientState, StreamMediaRecorder mediaRecorder, UserLookupHandler userLookupHandler, Function1<File, String> fileToUri, Integer messageLimit, Boolean enforceUniqueReactions, Integer maxAttachmentCount, Boolean showSystemMessages, MessageFooterVisibility messageFooterVisibility, DateSeparatorHandler dateSeparatorHandler, DateSeparatorHandler threadDateSeparatorHandler, MessagePositionHandler messagePositionHandler, Boolean showDateSeparatorInEmptyThread, Boolean showThreadSeparatorInEmptyThread, Boolean threadLoadOlderToNewer)
- Parameters:
cid- The current channel ID, to load the messages from.messageId- The message ID to which we want to scroll to when opening the message list.parentMessageId- The ID of the parent Message if the message we want to scroll to is in a thread.chatClient- The client to use for API calls.clientState- The current state of the SDK.mediaRecorder- The media recorder for async voice messages.messageLimit- The limit of the messages to load in a single page.enforceUniqueReactions- Flag to enforce unique reactions or enable multiple from the same user.maxAttachmentCount- The maximum number of attachments that can be sent in a single message.showSystemMessages- If we should show system message items in the list.messageFooterVisibility- The behavior of message footers in the list and their visibility.dateSeparatorHandler- Handler that determines when the date separators should be visible.threadDateSeparatorHandler- Handler that determines when the thread date separators should be visible.messagePositionHandler- Determines the position of the message inside a group.showDateSeparatorInEmptyThread- Configures if we show a date separator when threads are empty.showThreadSeparatorInEmptyThread- Configures if we show a thread separator when threads are empty.threadLoadOlderToNewer- Configures if the thread should be loaded from older to newer messages.
-
ChannelViewModelFactory
ChannelViewModelFactory(Context context, String cid, String messageId, String parentMessageId, ChatClient chatClient, ClientState clientState, StreamMediaRecorder mediaRecorder, UserLookupHandler userLookupHandler, Function1<File, String> fileToUri, Integer messageLimit, Boolean enforceUniqueReactions, Integer maxAttachmentCount, Boolean showSystemMessages, MessageFooterVisibility messageFooterVisibility, DateSeparatorHandler dateSeparatorHandler, DateSeparatorHandler threadDateSeparatorHandler, MessagePositionHandler messagePositionHandler, Boolean showDateSeparatorInEmptyThread, Boolean showThreadSeparatorInEmptyThread)
- Parameters:
cid- The current channel ID, to load the messages from.messageId- The message ID to which we want to scroll to when opening the message list.parentMessageId- The ID of the parent Message if the message we want to scroll to is in a thread.chatClient- The client to use for API calls.clientState- The current state of the SDK.mediaRecorder- The media recorder for async voice messages.messageLimit- The limit of the messages to load in a single page.enforceUniqueReactions- Flag to enforce unique reactions or enable multiple from the same user.maxAttachmentCount- The maximum number of attachments that can be sent in a single message.showSystemMessages- If we should show system message items in the list.messageFooterVisibility- The behavior of message footers in the list and their visibility.dateSeparatorHandler- Handler that determines when the date separators should be visible.threadDateSeparatorHandler- Handler that determines when the thread date separators should be visible.messagePositionHandler- Determines the position of the message inside a group.showDateSeparatorInEmptyThread- Configures if we show a date separator when threads are empty.showThreadSeparatorInEmptyThread- Configures if we show a thread separator when threads are empty.
-
ChannelViewModelFactory
ChannelViewModelFactory(Context context, String cid, String messageId, String parentMessageId, ChatClient chatClient, ClientState clientState, StreamMediaRecorder mediaRecorder, UserLookupHandler userLookupHandler, Function1<File, String> fileToUri, Integer messageLimit, Boolean enforceUniqueReactions, Integer maxAttachmentCount, Boolean showSystemMessages, MessageFooterVisibility messageFooterVisibility, DateSeparatorHandler dateSeparatorHandler, DateSeparatorHandler threadDateSeparatorHandler, MessagePositionHandler messagePositionHandler, Boolean showDateSeparatorInEmptyThread)
- Parameters:
cid- The current channel ID, to load the messages from.messageId- The message ID to which we want to scroll to when opening the message list.parentMessageId- The ID of the parent Message if the message we want to scroll to is in a thread.chatClient- The client to use for API calls.clientState- The current state of the SDK.mediaRecorder- The media recorder for async voice messages.messageLimit- The limit of the messages to load in a single page.enforceUniqueReactions- Flag to enforce unique reactions or enable multiple from the same user.maxAttachmentCount- The maximum number of attachments that can be sent in a single message.showSystemMessages- If we should show system message items in the list.messageFooterVisibility- The behavior of message footers in the list and their visibility.dateSeparatorHandler- Handler that determines when the date separators should be visible.threadDateSeparatorHandler- Handler that determines when the thread date separators should be visible.messagePositionHandler- Determines the position of the message inside a group.showDateSeparatorInEmptyThread- Configures if we show a date separator when threads are empty.
-
ChannelViewModelFactory
ChannelViewModelFactory(Context context, String cid, String messageId, String parentMessageId, ChatClient chatClient, ClientState clientState, StreamMediaRecorder mediaRecorder, UserLookupHandler userLookupHandler, Function1<File, String> fileToUri, Integer messageLimit, Boolean enforceUniqueReactions, Integer maxAttachmentCount, Boolean showSystemMessages, MessageFooterVisibility messageFooterVisibility, DateSeparatorHandler dateSeparatorHandler, DateSeparatorHandler threadDateSeparatorHandler, MessagePositionHandler messagePositionHandler)
- Parameters:
cid- The current channel ID, to load the messages from.messageId- The message ID to which we want to scroll to when opening the message list.parentMessageId- The ID of the parent Message if the message we want to scroll to is in a thread.chatClient- The client to use for API calls.clientState- The current state of the SDK.mediaRecorder- The media recorder for async voice messages.messageLimit- The limit of the messages to load in a single page.enforceUniqueReactions- Flag to enforce unique reactions or enable multiple from the same user.maxAttachmentCount- The maximum number of attachments that can be sent in a single message.showSystemMessages- If we should show system message items in the list.messageFooterVisibility- The behavior of message footers in the list and their visibility.dateSeparatorHandler- Handler that determines when the date separators should be visible.threadDateSeparatorHandler- Handler that determines when the thread date separators should be visible.messagePositionHandler- Determines the position of the message inside a group.
-
ChannelViewModelFactory
ChannelViewModelFactory(Context context, String cid, String messageId, String parentMessageId, ChatClient chatClient, ClientState clientState, StreamMediaRecorder mediaRecorder, UserLookupHandler userLookupHandler, Function1<File, String> fileToUri, Integer messageLimit, Boolean enforceUniqueReactions, Integer maxAttachmentCount, Boolean showSystemMessages, MessageFooterVisibility messageFooterVisibility, DateSeparatorHandler dateSeparatorHandler, DateSeparatorHandler threadDateSeparatorHandler)
- Parameters:
cid- The current channel ID, to load the messages from.messageId- The message ID to which we want to scroll to when opening the message list.parentMessageId- The ID of the parent Message if the message we want to scroll to is in a thread.chatClient- The client to use for API calls.clientState- The current state of the SDK.mediaRecorder- The media recorder for async voice messages.messageLimit- The limit of the messages to load in a single page.enforceUniqueReactions- Flag to enforce unique reactions or enable multiple from the same user.maxAttachmentCount- The maximum number of attachments that can be sent in a single message.showSystemMessages- If we should show system message items in the list.messageFooterVisibility- The behavior of message footers in the list and their visibility.dateSeparatorHandler- Handler that determines when the date separators should be visible.threadDateSeparatorHandler- Handler that determines when the thread date separators should be visible.
-
ChannelViewModelFactory
ChannelViewModelFactory(Context context, String cid, String messageId, String parentMessageId, ChatClient chatClient, ClientState clientState, StreamMediaRecorder mediaRecorder, UserLookupHandler userLookupHandler, Function1<File, String> fileToUri, Integer messageLimit, Boolean enforceUniqueReactions, Integer maxAttachmentCount, Boolean showSystemMessages, MessageFooterVisibility messageFooterVisibility, DateSeparatorHandler dateSeparatorHandler)
- Parameters:
cid- The current channel ID, to load the messages from.messageId- The message ID to which we want to scroll to when opening the message list.parentMessageId- The ID of the parent Message if the message we want to scroll to is in a thread.chatClient- The client to use for API calls.clientState- The current state of the SDK.mediaRecorder- The media recorder for async voice messages.messageLimit- The limit of the messages to load in a single page.enforceUniqueReactions- Flag to enforce unique reactions or enable multiple from the same user.maxAttachmentCount- The maximum number of attachments that can be sent in a single message.showSystemMessages- If we should show system message items in the list.messageFooterVisibility- The behavior of message footers in the list and their visibility.dateSeparatorHandler- Handler that determines when the date separators should be visible.
-
ChannelViewModelFactory
ChannelViewModelFactory(Context context, String cid, String messageId, String parentMessageId, ChatClient chatClient, ClientState clientState, StreamMediaRecorder mediaRecorder, UserLookupHandler userLookupHandler, Function1<File, String> fileToUri, Integer messageLimit, Boolean enforceUniqueReactions, Integer maxAttachmentCount, Boolean showSystemMessages, MessageFooterVisibility messageFooterVisibility)
- Parameters:
cid- The current channel ID, to load the messages from.messageId- The message ID to which we want to scroll to when opening the message list.parentMessageId- The ID of the parent Message if the message we want to scroll to is in a thread.chatClient- The client to use for API calls.clientState- The current state of the SDK.mediaRecorder- The media recorder for async voice messages.messageLimit- The limit of the messages to load in a single page.enforceUniqueReactions- Flag to enforce unique reactions or enable multiple from the same user.maxAttachmentCount- The maximum number of attachments that can be sent in a single message.showSystemMessages- If we should show system message items in the list.messageFooterVisibility- The behavior of message footers in the list and their visibility.
-
ChannelViewModelFactory
ChannelViewModelFactory(Context context, String cid, String messageId, String parentMessageId, ChatClient chatClient, ClientState clientState, StreamMediaRecorder mediaRecorder, UserLookupHandler userLookupHandler, Function1<File, String> fileToUri, Integer messageLimit, Boolean enforceUniqueReactions, Integer maxAttachmentCount, Boolean showSystemMessages)
- Parameters:
cid- The current channel ID, to load the messages from.messageId- The message ID to which we want to scroll to when opening the message list.parentMessageId- The ID of the parent Message if the message we want to scroll to is in a thread.chatClient- The client to use for API calls.clientState- The current state of the SDK.mediaRecorder- The media recorder for async voice messages.messageLimit- The limit of the messages to load in a single page.enforceUniqueReactions- Flag to enforce unique reactions or enable multiple from the same user.maxAttachmentCount- The maximum number of attachments that can be sent in a single message.showSystemMessages- If we should show system message items in the list.
-
ChannelViewModelFactory
ChannelViewModelFactory(Context context, String cid, String messageId, String parentMessageId, ChatClient chatClient, ClientState clientState, StreamMediaRecorder mediaRecorder, UserLookupHandler userLookupHandler, Function1<File, String> fileToUri, Integer messageLimit, Boolean enforceUniqueReactions, Integer maxAttachmentCount)
- Parameters:
cid- The current channel ID, to load the messages from.messageId- The message ID to which we want to scroll to when opening the message list.parentMessageId- The ID of the parent Message if the message we want to scroll to is in a thread.chatClient- The client to use for API calls.clientState- The current state of the SDK.mediaRecorder- The media recorder for async voice messages.messageLimit- The limit of the messages to load in a single page.enforceUniqueReactions- Flag to enforce unique reactions or enable multiple from the same user.maxAttachmentCount- The maximum number of attachments that can be sent in a single message.
-
ChannelViewModelFactory
ChannelViewModelFactory(Context context, String cid, String messageId, String parentMessageId, ChatClient chatClient, ClientState clientState, StreamMediaRecorder mediaRecorder, UserLookupHandler userLookupHandler, Function1<File, String> fileToUri, Integer messageLimit, Boolean enforceUniqueReactions)
- Parameters:
cid- The current channel ID, to load the messages from.messageId- The message ID to which we want to scroll to when opening the message list.parentMessageId- The ID of the parent Message if the message we want to scroll to is in a thread.chatClient- The client to use for API calls.clientState- The current state of the SDK.mediaRecorder- The media recorder for async voice messages.messageLimit- The limit of the messages to load in a single page.enforceUniqueReactions- Flag to enforce unique reactions or enable multiple from the same user.
-
ChannelViewModelFactory
ChannelViewModelFactory(Context context, String cid, String messageId, String parentMessageId, ChatClient chatClient, ClientState clientState, StreamMediaRecorder mediaRecorder, UserLookupHandler userLookupHandler, Function1<File, String> fileToUri, Integer messageLimit)
- Parameters:
cid- The current channel ID, to load the messages from.messageId- The message ID to which we want to scroll to when opening the message list.parentMessageId- The ID of the parent Message if the message we want to scroll to is in a thread.chatClient- The client to use for API calls.clientState- The current state of the SDK.mediaRecorder- The media recorder for async voice messages.messageLimit- The limit of the messages to load in a single page.
-
ChannelViewModelFactory
ChannelViewModelFactory(Context context, String cid, String messageId, String parentMessageId, ChatClient chatClient, ClientState clientState, StreamMediaRecorder mediaRecorder, UserLookupHandler userLookupHandler, Function1<File, String> fileToUri)
- Parameters:
cid- The current channel ID, to load the messages from.messageId- The message ID to which we want to scroll to when opening the message list.parentMessageId- The ID of the parent Message if the message we want to scroll to is in a thread.chatClient- The client to use for API calls.clientState- The current state of the SDK.mediaRecorder- The media recorder for async voice messages.
-
ChannelViewModelFactory
ChannelViewModelFactory(Context context, String cid, String messageId, String parentMessageId, ChatClient chatClient, ClientState clientState, StreamMediaRecorder mediaRecorder, UserLookupHandler userLookupHandler)
- Parameters:
cid- The current channel ID, to load the messages from.messageId- The message ID to which we want to scroll to when opening the message list.parentMessageId- The ID of the parent Message if the message we want to scroll to is in a thread.chatClient- The client to use for API calls.clientState- The current state of the SDK.mediaRecorder- The media recorder for async voice messages.
-
ChannelViewModelFactory
ChannelViewModelFactory(Context context, String cid, String messageId, String parentMessageId, ChatClient chatClient, ClientState clientState, StreamMediaRecorder mediaRecorder)
- Parameters:
cid- The current channel ID, to load the messages from.messageId- The message ID to which we want to scroll to when opening the message list.parentMessageId- The ID of the parent Message if the message we want to scroll to is in a thread.chatClient- The client to use for API calls.clientState- The current state of the SDK.mediaRecorder- The media recorder for async voice messages.
-
ChannelViewModelFactory
ChannelViewModelFactory(Context context, String cid, String messageId, String parentMessageId, ChatClient chatClient, ClientState clientState)
- Parameters:
cid- The current channel ID, to load the messages from.messageId- The message ID to which we want to scroll to when opening the message list.parentMessageId- The ID of the parent Message if the message we want to scroll to is in a thread.chatClient- The client to use for API calls.clientState- The current state of the SDK.
-
ChannelViewModelFactory
ChannelViewModelFactory(Context context, String cid, String messageId, String parentMessageId, ChatClient chatClient)
- Parameters:
cid- The current channel ID, to load the messages from.messageId- The message ID to which we want to scroll to when opening the message list.parentMessageId- The ID of the parent Message if the message we want to scroll to is in a thread.chatClient- The client to use for API calls.
-
ChannelViewModelFactory
ChannelViewModelFactory(Context context, String cid, String messageId, String parentMessageId)
- Parameters:
cid- The current channel ID, to load the messages from.messageId- The message ID to which we want to scroll to when opening the message list.parentMessageId- The ID of the parent Message if the message we want to scroll to is in a thread.
-
ChannelViewModelFactory
ChannelViewModelFactory(Context context, String cid, String messageId)
- Parameters:
cid- The current channel ID, to load the messages from.messageId- The message ID to which we want to scroll to when opening the message list.
-
-
-
-