Builder

open class Builder

This is a Builder that is able to create the fragment of participants list. The builder provides options how the channel is showing and working. Also you can set the event handler what you want to override. since 2.0.0

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(): ParticipantListFragment
Creates an ParticipantListFragment with the arguments supplied to this builder.
Link copied to clipboard
open fun <T : ParticipantListFragment?> setCustomFragment(fragment: T): ParticipantListFragment.Builder
Sets the custom fragment.
Link copied to clipboard
open fun setEmptyIcon(@DrawableRes resId: Int): ParticipantListFragment.Builder
open fun setEmptyIcon(@DrawableRes resId: Int, @Nullable tint: ColorStateList): ParticipantListFragment.Builder
Sets the icon when the data is not exists.
Link copied to clipboard
open fun setEmptyText(@StringRes resId: Int): ParticipantListFragment.Builder
Sets the text when the data is not exists
Link copied to clipboard
open fun setErrorText(@StringRes resId: Int): ParticipantListFragment.Builder
Sets the text when error occurs
Link copied to clipboard
Sets the icon on the left button of the header.
Link copied to clipboard
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): ParticipantListFragment.Builder
Sets the title of the header.
Link copied to clipboard
open fun setOnActionItemClickListener(@Nullable actionItemClickListener: OnItemClickListener<User>): ParticipantListFragment.Builder
Register a callback to be invoked when the action button of the item is clicked.
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<User>): ParticipantListFragment.Builder
Sets the click listener on the item of participants list.
Link copied to clipboard
open fun setOnItemLongClickListener(@NonNull itemLongClickListener: OnItemLongClickListener<User>): ParticipantListFragment.Builder
Sets the long click listener on the item of participants list.
Link copied to clipboard
open fun setOnProfileClickListener(@NonNull profileClickListener: OnItemClickListener<User>): ParticipantListFragment.Builder
Sets the click listener on the profile of message.
Link copied to clipboard
Sets the participants list adapter.
Link copied to clipboard
open fun setUseHeader(useHeader: Boolean): ParticipantListFragment.Builder
Sets whether the header is used.
Link copied to clipboard
open fun setUseHeaderLeftButton(useHeaderLeftButton: Boolean): ParticipantListFragment.Builder
Sets whether the left button of the header is used.
Link copied to clipboard
open fun setUseHeaderRightButton(useHeaderRightButton: Boolean): ParticipantListFragment.Builder
Sets whether the right button of the header is used.
Link copied to clipboard
open fun setUseUserProfile(useUserProfile: Boolean): ParticipantListFragment.Builder
Sets whether the user profile uses.
Link copied to clipboard
open fun withArguments(@NonNull args: Bundle): ParticipantListFragment.Builder
Sets arguments to this fragment.