Channel Fragment
Fragment that provides chat in GroupChannel
Types
Functions
Link copied to clipboard
protected open fun makeMessageContextMenu(@NonNull message: BaseMessage): List<DialogListItem>
Content copied to clipboard
Make context menu items that are shown when the message is long clicked.
Link copied to clipboard
Find the same message as the message ID and move it to the matching message.
Link copied to clipboard
protected open fun onBeforeReady( @NonNull status: ReadyStatus, @NonNull module: ChannelModule, @NonNull viewModel: ChannelViewModel)
Content copied to clipboard
After authenticate ()} is finished, onReady will be called with the result of authentication and all preparations will be ready to use.
Link copied to clipboard
protected open fun onBindChannelHeaderComponent( @NonNull headerComponent: ChannelHeaderComponent, @NonNull viewModel: ChannelViewModel, @Nullable channel: GroupChannel)
Content copied to clipboard
Called to bind events to the ChannelHeaderComponent.
Link copied to clipboard
protected open fun onBindMessageInputComponent( @NonNull inputComponent: MessageInputComponent, @NonNull viewModel: ChannelViewModel, @Nullable channel: GroupChannel)
Content copied to clipboard
Called to bind events to the MessageInputComponent.
Link copied to clipboard
protected open fun onBindMessageListComponent( @NonNull messageListComponent: MessageListComponent, @NonNull viewModel: ChannelViewModel, @Nullable channel: GroupChannel)
Content copied to clipboard
Called to bind events to the MessageListComponent and also bind ChannelViewModel.
Link copied to clipboard
protected open fun onBindStatusComponent( @NonNull statusComponent: StatusComponent, @NonNull viewModel: ChannelViewModel, @Nullable channel: GroupChannel)
Content copied to clipboard
Called to bind events to the StatusComponent.
Link copied to clipboard
Called to do initial creation of a module.
Link copied to clipboard
Called to do initial creation of a view model.
Link copied to clipboard
protected open fun onMessageContextMenuItemClicked( @NonNull message: BaseMessage, @NonNull view: View, position: Int, @NonNull item: DialogListItem): Boolean
Content copied to clipboard
It will be called when the message context menu was clicked.
Link copied to clipboard
protected open fun onQuoteReplyMessageClicked( @NonNull view: View, position: Int, @NonNull message: BaseMessage)
Content copied to clipboard
Called when the quoted message of the message is clicked.
Link copied to clipboard
protected open fun onQuoteReplyMessageLongClicked( @NonNull view: View, position: Int, @NonNull message: BaseMessage)
Content copied to clipboard
Called when the quoted message of the message is long-clicked.
Link copied to clipboard
protected open fun onReady( @NonNull status: ReadyStatus, @NonNull module: ChannelModule, @NonNull viewModel: ChannelViewModel)
Content copied to clipboard
Called to start the operation of the fragment after authentication and module setup.
Link copied to clipboard
protected open fun onSuggestedRepliesClicked(@NonNull suggestedReply: String)
Content copied to clipboard
Called when the a suggested replies view is clicked
Link copied to clipboard
protected open fun onThreadInfoClicked( @NonNull view: View, position: Int, @NonNull message: BaseMessage)
Content copied to clipboard
Called when the thread info of the message is clicked.
Link copied to clipboard
open fun onViewCreated(@NonNull view: View, @Nullable savedInstanceState: Bundle)
Content copied to clipboard