MessageSearchFragment

Fragment that provides message search

Types

Link copied to clipboard
open class Builder

Functions

Link copied to clipboard
protected open fun getChannelUrl(): String
Returns the URL of the channel with the required data to use this fragment.
Link copied to clipboard
protected open fun onBeforeReady(@NonNull status: ReadyStatus, @NonNull module: MessageSearchModule, @NonNull viewModel: MessageSearchViewModel)
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 onBindHeaderComponent(@NonNull headerComponent: MessageSearchHeaderComponent, @NonNull viewModel: MessageSearchViewModel, @Nullable channel: GroupChannel)
Called to bind events to the MessageSearchHeaderComponent.
Link copied to clipboard
protected open fun onBindMessageSearchListComponent(@NonNull listComponent: MessageSearchListComponent, @NonNull viewModel: MessageSearchViewModel, @Nullable channel: GroupChannel)
Called to bind events to the MessageSearchListComponent.
Link copied to clipboard
protected open fun onBindStatusComponent(@NonNull statusComponent: StatusComponent, @NonNull viewModel: MessageSearchViewModel, @Nullable channel: GroupChannel)
Called to bind events to the StatusComponent.
Link copied to clipboard
protected open fun onConfigureParams(@NonNull module: MessageSearchModule, @NonNull args: Bundle)
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
Called to do initial creation of a view model.
Link copied to clipboard
protected open fun onItemClicked(@NonNull view: View, position: Int, @NonNull message: BaseMessage)
Called when a message item has been clicked.
Link copied to clipboard
protected open fun onReady(@NonNull status: ReadyStatus, @NonNull module: MessageSearchModule, @NonNull viewModel: MessageSearchViewModel)
Called to start the operation of the fragment after authentication and module setup.
Link copied to clipboard
protected open fun onSearchResultReceived(@NonNull searchResults: List<BaseMessage>)
It called when the search results exists.
Link copied to clipboard
protected open fun search(@NonNull keyword: String)
It called when the search request occurs with the written keyword.
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.