Open Channel Fragment
Fragment that provides chat in OpenChannel
Types
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
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: OpenChannelModule, @NonNull viewModel: OpenChannelViewModel)
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
It will be called before sending message.
Link copied to clipboard
It will be called before updating message.
Link copied to clipboard
protected open fun onBindChannelHeaderComponent(@NonNull headerComponent: OpenChannelHeaderComponent, @NonNull viewModel: OpenChannelViewModel, @Nullable channel: OpenChannel)
Called to bind events to the OpenChannelHeaderComponent.
Link copied to clipboard
protected open fun onBindMessageInputComponent(@NonNull inputComponent: OpenChannelMessageInputComponent, @NonNull viewModel: OpenChannelViewModel, @Nullable channel: OpenChannel)
Called to bind events to the OpenChannelMessageInputComponent.
Link copied to clipboard
protected open fun onBindMessageListComponent(@NonNull messageListComponent: OpenChannelMessageListComponent, @NonNull viewModel: OpenChannelViewModel, @Nullable channel: OpenChannel)
Called to bind events to the OpenChannelMessageListComponent.
Link copied to clipboard
protected open fun onBindStatusComponent(@NonNull statusComponent: StatusComponent, @NonNull viewModel: OpenChannelViewModel, @Nullable channel: OpenChannel)
Called to bind events to the StatusComponent.
Link copied to clipboard
Link copied to clipboard
Called to initialize the module's params or components' params.
Link copied to clipboard
Called to do initial creation of a module.
Link copied to clipboard
Returns a OpenChannelViewModel.
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
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 onReady(@NonNull status: ReadyStatus, @NonNull module: OpenChannelModule, @NonNull viewModel: OpenChannelViewModel)
Called to start the operation of the fragment after authentication and module setup.
Link copied to clipboard
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
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
Enables or disables the input view with hint text.
Link copied to clipboard
Updates a
UserMessage
that was previously sent in the channel.