Base Message List Fragment
abstract class BaseMessageListFragment<LA : BaseMessageListAdapter?, LC : BaseMessageListComponent<LA>?, MT : BaseMessageListModule<LC>?, VM : BaseMessageListViewModel?> : BaseModuleFragment<MT, VM>
Functions
Link copied to clipboard
Delete a message
Link copied to clipboard
Returns the URL of the channel with the required data to use this fragment.
Link copied to clipboard
Returns whether the multiple media is enabled or not.
Link copied to clipboard
Make context menu items that are shown when the message is long clicked.
Link copied to clipboard
protected open fun onBeforeReady(@NonNull status: ReadyStatus, @NonNull module: MT, @NonNull viewModel: VM)
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
It will be called before sending message.
Link copied to clipboard
protected open fun onBeforeSendMultipleFilesMessage(@NonNull params: MultipleFilesMessageCreateParams)
It will be called before sending multiple files message.
Link copied to clipboard
It will be called before sending message.
Link copied to clipboard
It will be called before updating message.
Link copied to clipboard
Called to initialize the module's params or components' params.
Link copied to clipboard
protected open fun onEmojiReactionUserListProfileClicked(@NonNull view: View, position: Int, @NonNull user: User)
Called when the emoji reaction user list profile view is clicked.
Link copied to clipboard
protected open fun onMessageClicked(@NonNull view: View, position: Int, @NonNull message: BaseMessage)
Called when the item of the message list 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 onMessageLongClicked(@NonNull view: View, position: Int, @NonNull message: BaseMessage)
Called when the item of the message list is long-clicked.
Link copied to clipboard
Called when the mentioned user of the message is clicked.
Link copied to clipboard
protected open fun onMessageProfileClicked(@NonNull view: View, position: Int, @NonNull message: BaseMessage)
Called when the profile view of the message is clicked.
Link copied to clipboard
protected open fun onMessageProfileLongClicked(@NonNull view: View, position: Int, @NonNull message: BaseMessage)
Called when the profile view of the message is long-clicked.
Link copied to clipboard
Resends a failed message.
Link copied to clipboard
Download FileMessage into external storage.
Link copied to clipboard
Sends a file with given file information.
Link copied to clipboard
Sends a user message.
Link copied to clipboard
Sends a voice message with given file information.
Link copied to clipboard
It will be called when the loading dialog needs dismissing.
Link copied to clipboard
It will be called when the loading dialog needs displaying.
Link copied to clipboard
It will be called when the input message's left button is clicked.
Link copied to clipboard
Call taking camera application.
Link copied to clipboard
Call taking voice recorder.
Link copied to clipboard
Enables or disables the input view with hint text.
Link copied to clipboard
Updates a
UserMessage
that was previously sent in the channel.