ChannelFragment

open class ChannelFragment : BaseMessageListFragment<LA, LC, MT, VM>

Fragment that provides chat in GroupChannel

Types

Link copied to clipboard
open class Builder

Functions

Link copied to clipboard
protected open fun makeMessageContextMenu(@NonNull message: BaseMessage): List<DialogListItem>
Make context menu items that are shown when the message is long clicked.
Link copied to clipboard
open fun moveToMessage(messageId: Long, withAnimation: Boolean): Boolean
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)
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)
Called to bind events to the ChannelHeaderComponent.
Link copied to clipboard
protected open fun onBindMessageInputComponent(    @NonNull inputComponent: MessageInputComponent,     @NonNull viewModel: ChannelViewModel,     @Nullable channel: GroupChannel)
Called to bind events to the MessageInputComponent.
Link copied to clipboard
protected open fun onBindMessageListComponent(    @NonNull messageListComponent: MessageListComponent,     @NonNull viewModel: ChannelViewModel,     @Nullable channel: GroupChannel)
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)
Called to bind events to the StatusComponent.
Link copied to clipboard
open fun onCreate(@Nullable savedInstanceState: Bundle)
Create a module and a view model, and proceed with the authentication process in the view model.
Link copied to clipboard
protected open fun onCreateModule(@NonNull args: Bundle): ChannelModule
Called to do initial creation of a module.
Link copied to clipboard
protected open fun onCreateViewModel(): ChannelViewModel
Called to do initial creation of a view model.
Link copied to clipboard
open fun onDestroy()
Link copied to clipboard
protected open fun onFeedbackRatingClicked(@NonNull message: BaseMessage, @NonNull feedbackRating: FeedbackRating)
Called when the feedback rating of the message is clicked.
Link copied to clipboard
protected open fun onFormSubmitButtonClicked(@NonNull message: BaseMessage, @NonNull form: Form)
Called when the Form submit button is clicked.
Link copied to clipboard
protected open fun onMessageContextMenuItemClicked(    @NonNull message: BaseMessage,     @NonNull view: View,     position: Int,     @NonNull item: DialogListItem): Boolean
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)
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)
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)
Called to start the operation of the fragment after authentication and module setup.
Link copied to clipboard
protected open fun onSuggestedRepliesClicked(@NonNull suggestedReply: String)
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)
Called when the thread info of the message is clicked.
Link copied to clipboard
open fun onViewCreated(@NonNull view: View, @Nullable savedInstanceState: Bundle)