Builder

open class Builder

Constructors

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

Functions

Link copied to clipboard
open fun build(): ChannelListFragment
Creates an ChannelListFragment with the arguments supplied to this builder.
Link copied to clipboard
Sets the channel list adapter.
Sets the channel list adapter and the message display data provider.
Link copied to clipboard
open fun setChannelListConfig(@NonNull channelListConfig: ChannelListConfig): ChannelListFragment.Builder
Sets the channel list configuration for this fragment.
Link copied to clipboard
open fun <T : ChannelListFragment?> setCustomFragment(fragment: T): ChannelListFragment.Builder
Sets the custom fragment.
Link copied to clipboard
open fun setEmptyIcon(@DrawableRes resId: Int): ChannelListFragment.Builder
open fun setEmptyIcon(@DrawableRes resId: Int, @Nullable tint: ColorStateList): ChannelListFragment.Builder
Sets the icon when the data is not exists.
Link copied to clipboard
open fun setEmptyText(@StringRes resId: Int): ChannelListFragment.Builder
Sets the text when the data is not exists
Link copied to clipboard
open fun setErrorText(@StringRes resId: Int): ChannelListFragment.Builder
Sets the text when error occurs
Link copied to clipboard
open fun setGroupChannelListQuery(@NonNull query: GroupChannelListQuery): ChannelListFragment.Builder
Sets the query instance to get GroupChannels the current User has joined.
Link copied to clipboard
open fun setHeaderLeftButtonIcon(@DrawableRes resId: Int, @Nullable tint: ColorStateList): ChannelListFragment.Builder
Sets the icon on the left button of the header.
Link copied to clipboard
open fun setHeaderLeftButtonIconResId(@DrawableRes resId: Int): ChannelListFragment.Builder
Sets the icon on the left button of the header.
Link copied to clipboard
Sets the icon on the right button of the header.
Link copied to clipboard
Sets the icon on the right button of the header.
Link copied to clipboard
open fun setHeaderTitle(@NonNull title: String): ChannelListFragment.Builder
Sets the title of the header.
Link copied to clipboard
Sets the click listener on the left button of the header.
Link copied to clipboard
Sets the click listener on the right button of the header.
Link copied to clipboard
open fun setOnItemClickListener(@NonNull itemClickListener: OnItemClickListener<GroupChannel>): ChannelListFragment.Builder
Sets the click listener on the item of channel list.
Link copied to clipboard
open fun setOnItemLongClickListener(@NonNull itemLongClickListener: OnItemLongClickListener<GroupChannel>): ChannelListFragment.Builder
Sets the long click listener on the item of channel list.
Link copied to clipboard
open fun setUseHeader(useHeader: Boolean): ChannelListFragment.Builder
Sets whether the header is used.
Link copied to clipboard
open fun setUseHeaderLeftButton(useHeaderLeftButton: Boolean): ChannelListFragment.Builder
Sets whether the left button of the header is used.
Link copied to clipboard
open fun setUseHeaderRightButton(useHeaderRightButton: Boolean): ChannelListFragment.Builder
Sets whether the right button of the header is used.
Link copied to clipboard
open fun withArguments(@NonNull args: Bundle): ChannelListFragment.Builder
Sets arguments to this fragment.