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