Builder

open class Builder

Constructors

Link copied to clipboard
open fun Builder(@NonNull channelUrl: String)
Constructor
Link copied to clipboard
open fun Builder(@NonNull channelUrl: String, @NonNull themeMode: SendbirdUIKit.ThemeMode)
Constructor
Link copied to clipboard
open fun Builder(@NonNull channelUrl: String, @StyleRes customThemeResId: Int)
Constructor

Functions

Link copied to clipboard
open fun build(): MessageSearchFragment
Creates an MessageSearchFragment with the arguments supplied to this builder.
Link copied to clipboard
open fun <T : MessageSearchFragment?> setCustomFragment(fragment: T): MessageSearchFragment.Builder
Sets the custom fragment.
Link copied to clipboard
open fun setEmptyIcon(@DrawableRes resId: Int): MessageSearchFragment.Builder
open fun setEmptyIcon(@DrawableRes resId: Int, @Nullable tint: ColorStateList): MessageSearchFragment.Builder
Sets the icon when the data is not exists.
Link copied to clipboard
open fun setEmptyText(@StringRes resId: Int): MessageSearchFragment.Builder
Sets the text when the data is not exists
Link copied to clipboard
open fun setErrorText(@StringRes resId: Int): MessageSearchFragment.Builder
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.
Sets the message search adapter and the message display data provider.
Link copied to clipboard
open fun setMessageSearchQuery(@NonNull query: MessageSearchQuery): MessageSearchFragment.Builder
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
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
Sets the search action event listener on the right button of the search bar.
Link copied to clipboard
open fun setSearchBarButtonText(@NonNull text: String): MessageSearchFragment.Builder
Sets the text on the search bar's right side.
Link copied to clipboard
open fun setUseSearchBar(useSearchBar: Boolean): MessageSearchFragment.Builder
Sets whether the header is used.
Link copied to clipboard
open fun withArguments(@NonNull args: Bundle): MessageSearchFragment.Builder
Sets arguments to this fragment.