MessageSearchModule

open class MessageSearchModule : BaseModule

A module for searching for messages. This module is composed of a header, list, and status. All composed components are created when the module is created. After than those components can replace.

since 3.0.0

Constructors

Link copied to clipboard
open fun MessageSearchModule(@NonNull context: Context)
Constructor
Link copied to clipboard
open fun MessageSearchModule(@NonNull context: Context, @NonNull params: MessageSearchModule.Params)
Constructor

Types

Link copied to clipboard
open class Params : BaseModule.Params

Functions

Link copied to clipboard
open fun onCreateView(    @NonNull context: Context,     @NonNull inflater: LayoutInflater,     @Nullable args: Bundle): View
Called after the module was created to make views to use in the Fragment or Activity.
Link copied to clipboard
open fun <T : MessageSearchHeaderComponent?> setHeaderComponent(@NonNull component: T)
Sets the message search header component.
Link copied to clipboard
open fun <T : MessageSearchListComponent?> setMessageListComponent(@NonNull component: T)
Sets the list of the message search result component.
Link copied to clipboard
open fun setOnLoadingDialogHandler(@Nullable loadingDialogHandler: LoadingDialogHandler)
Sets the handler for the loading dialog.
Link copied to clipboard
open fun <T : StatusComponent?> setStatusComponent(@NonNull component: T)
Sets a custom status component.
Link copied to clipboard
open fun shouldDismissLoadingDialog()
It will be called when the loading dialog needs dismissing.
Link copied to clipboard
open fun shouldShowLoadingDialog(@NonNull context: Context): Boolean
It will be called when the loading dialog needs displaying.

Properties

Link copied to clipboard
open val headerComponent: MessageSearchHeaderComponent
Link copied to clipboard
open val loadingDialogHandler: LoadingDialogHandler
Link copied to clipboard
open val messageListComponent: MessageSearchListComponent
Link copied to clipboard
val params: MessageSearchModule.Params
Link copied to clipboard
open val statusComponent: StatusComponent