Builder
Constructors
Functions
Link copied to clipboard
Creates an MessageSearchFragment with the arguments supplied to this builder.
Link copied to clipboard
Sets the custom fragment.
Link copied to clipboard
open fun setEmptyIcon(@DrawableRes resId: Int, @Nullable tint: ColorStateList): MessageSearchFragment.Builder
Sets the icon when the data is not exists.
Link copied to clipboard
Sets the text when the data is not exists
Link copied to clipboard
Sets the text when error occurs
Link copied to clipboard
open fun setLoadingDialogHandler(@NonNull loadingDialogHandler: LoadingDialogHandler): MessageSearchFragment.Builder
Sets the custom loading dialog handler
Link copied to clipboard
open fun <T : MessageSearchAdapter?> setMessageSearchAdapter(adapter: T): MessageSearchFragment.Builder
Sets the message search adapter.
open fun <T : MessageSearchAdapter?> setMessageSearchAdapter(adapter: T, @Nullable provider: MessageDisplayDataProvider): MessageSearchFragment.Builder
Sets the message search adapter and the message display data provider.
Link copied to clipboard
Sets the query of custom message search.
Link copied to clipboard
open fun setOnClearButtonClickListener(@Nullable clearButtonClickListener: View.OnClickListener): MessageSearchFragment.Builder
Register a callback to be invoked when the clear button related to the input is clicked.
Link copied to clipboard
open fun setOnInputTextChangedListener(@Nullable textChangedListener: OnInputTextChangedListener): MessageSearchFragment.Builder
Register a callback to be invoked when the input text is changed.
Link copied to clipboard
open fun setOnItemClickListener(@NonNull itemClickListener: OnItemClickListener<BaseMessage>): MessageSearchFragment.Builder
Sets the click listener on the item of the message search result list.
Link copied to clipboard
open fun setOnSearchEventListener(@NonNull listener: OnSearchEventListener): MessageSearchFragment.Builder
Sets the search action event listener on the right button of the search bar.
Link copied to clipboard
Sets the text on the search bar's right side.
Link copied to clipboard
Sets whether the header is used.
Link copied to clipboard
Sets arguments to this fragment.