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(): ChannelFragment
Creates an ChannelFragment with the arguments supplied to this builder.
Link copied to clipboard
open fun setChannelConfig(@NonNull channelConfig: ChannelConfig): ChannelFragment.Builder
Sets channel configuration for this fragment.
Link copied to clipboard
open fun <T : ChannelFragment?> setCustomFragment(fragment: T): ChannelFragment.Builder
Sets the custom fragment.
Link copied to clipboard
open fun setEditedTextMarkUIConfig(@Nullable configSentFromMe: TextUIConfig, @Nullable configSentFromOthers: TextUIConfig): ChannelFragment.Builder
Sets the UI configuration of edited text mark.
Link copied to clipboard
open fun setEmojiReactionClickListener(@NonNull emojiReactionClickListener: OnEmojiReactionClickListener): ChannelFragment.Builder
Sets the click listener on the emoji reaction of the message.
Link copied to clipboard
open fun setEmojiReactionLongClickListener(@NonNull emojiReactionLongClickListener: OnEmojiReactionLongClickListener): ChannelFragment.Builder
Sets the long click listener on the emoji reaction of the message.
Link copied to clipboard
open fun setEmojiReactionMoreButtonClickListener(@NonNull emojiReactionMoreButtonClickListener: OnItemClickListener<BaseMessage>): ChannelFragment.Builder
Sets the click listener on the emoji reaction more button.
Link copied to clipboard
open fun setEmptyIcon(@DrawableRes resId: Int): ChannelFragment.Builder
open fun setEmptyIcon(@DrawableRes resId: Int, @Nullable tint: ColorStateList): ChannelFragment.Builder
Sets the icon when the data is not exists.
Link copied to clipboard
open fun setEmptyText(@StringRes resId: Int): ChannelFragment.Builder
Sets the text when the data is not exists
Link copied to clipboard
open fun setErrorText(@StringRes resId: Int): ChannelFragment.Builder
Sets the text when error occurs
Link copied to clipboard
open fun setHeaderLeftButtonIcon(@DrawableRes resId: Int, @Nullable tint: ColorStateList): ChannelFragment.Builder
Sets the icon on the left button of the header.
Link copied to clipboard
open fun setHeaderLeftButtonIconResId(@DrawableRes resId: Int): ChannelFragment.Builder
Sets the icon on the left button of the header.
Link copied to clipboard
open fun setHeaderRightButtonIcon(@DrawableRes resId: Int, @Nullable tint: ColorStateList): ChannelFragment.Builder
Sets the icon on the right button of the header.
Link copied to clipboard
open fun setHeaderRightButtonIconResId(@DrawableRes resId: Int): ChannelFragment.Builder
Sets the icon on the right button of the header.
Link copied to clipboard
open fun setHeaderTitle(@NonNull title: String): ChannelFragment.Builder
Sets the title of the header.
Link copied to clipboard
open fun setInputHint(@NonNull hint: String): ChannelFragment.Builder
Sets the hint of the input text.
Link copied to clipboard
open fun setInputLeftButtonIcon(@DrawableRes resId: Int, @Nullable tint: ColorStateList): ChannelFragment.Builder
Sets the icon on the left button of the input.
Link copied to clipboard
open fun setInputLeftButtonIconResId(@DrawableRes resId: Int): ChannelFragment.Builder
Sets the icon on the left button of the input.
Link copied to clipboard
open fun setInputRightButtonIcon(@DrawableRes resId: Int, @Nullable tint: ColorStateList): ChannelFragment.Builder
Sets the icon on the right button of the input.
Link copied to clipboard
open fun setInputRightButtonIconResId(@DrawableRes resId: Int): ChannelFragment.Builder
Sets the icon on the right button of the input.
Link copied to clipboard
open fun setInputText(@NonNull inputText: String): ChannelFragment.Builder
Sets the input text
Link copied to clipboard
The message input displays as a dialog type.
Link copied to clipboard
open fun setLinkedTextColor(@ColorRes colorRes: Int): ChannelFragment.Builder
Sets the UI configuration of the linked text color in the message text.
Link copied to clipboard
open fun setLoadingDialogHandler(@NonNull loadingDialogHandler: LoadingDialogHandler): ChannelFragment.Builder
Sets the custom loading dialog handler
Link copied to clipboard
open fun setMentionUIConfig(@Nullable configSentFromMe: TextUIConfig, @Nullable configSentFromOthers: TextUIConfig): ChannelFragment.Builder
Sets the UI configuration of mentioned text.
Link copied to clipboard
open fun setMessageBackground(@DrawableRes drawableResSentFromMe: Int, @DrawableRes drawableResSentFromOthers: Int): ChannelFragment.Builder
Sets the UI configuration of message background drawable.
Link copied to clipboard
open fun setMessageInputTextUIConfig(@NonNull textUIConfig: TextUIConfig): ChannelFragment.Builder
Sets the UI configuration of message input text.
Link copied to clipboard
open fun setMessageListAdapter(@Nullable adapter: MessageListAdapter): ChannelFragment.Builder
Sets the message list adapter.
Sets the message list adapter and the message display data provider.
Link copied to clipboard
open fun setMessageListParams(@NonNull params: MessageListParams): ChannelFragment.Builder
Sets the message list params for this channel.
Link copied to clipboard
open fun setMessageTextUIConfig(@Nullable configSentFromMe: TextUIConfig, @Nullable configSentFromOthers: TextUIConfig): ChannelFragment.Builder
Sets the UI configuration of message text.
Link copied to clipboard
open fun setNicknameTextUIConfig(@NonNull configSentFromOthers: TextUIConfig): ChannelFragment.Builder
Sets the UI configuration of sender nickname text.
Link copied to clipboard
open fun setOgtagBackground(@DrawableRes drawableResSentFromMe: Int, @DrawableRes drawableResSentFromOthers: Int): ChannelFragment.Builder
Sets the UI configuration of ogtag message background drawable.
Link copied to clipboard
open fun setOnEditModeCancelButtonClickListener(@Nullable editModeCancelButtonClickListener: View.OnClickListener): ChannelFragment.Builder
Register a callback to be invoked when the cancel button is clicked, when the input is the edited mode.
Link copied to clipboard
open fun setOnEditModeSaveButtonClickListener(@Nullable editModeSaveButtonClickListener: View.OnClickListener): ChannelFragment.Builder
Register a callback to be invoked when the save button is clicked, when the input is the edited mode.
Link copied to clipboard
open fun setOnEditModeTextChangedListener(@NonNull editModeTextChangedListener: OnInputTextChangedListener): ChannelFragment.Builder
Sets the listener invoked when a text of message input is edited.
open fun setOnEmojiReactionUserListProfileClickListener(@NonNull emojiReactionUserListProfileClickListener: OnItemClickListener<User>): ChannelFragment.Builder
Sets the click listener on the profile of emoji reaction user list.
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
Sets the click listener on the left button of the input.
Link copied to clipboard
open fun setOnInputModeChangedListener(@Nullable inputModeChangedListener: OnInputModeChangedListener): ChannelFragment.Builder
Register a callback to be invoked when the input mode is changed.
Link copied to clipboard
open fun setOnInputRightButtonClickListener(@Nullable inputRightButtonClickListener: View.OnClickListener): ChannelFragment.Builder
Register a callback to be invoked when the right button of the input is clicked.
Link copied to clipboard
open fun setOnInputTextChangedListener(@NonNull inputTextChangedListener: OnInputTextChangedListener): ChannelFragment.Builder
Sets the listener invoked when a text of message input is changed..
Link copied to clipboard
open fun setOnMessageClickListener(@NonNull itemClickListener: OnItemClickListener<BaseMessage>): ChannelFragment.Builder
Sets the click listener on the item of message list.
Link copied to clipboard
open fun setOnMessageLongClickListener(@NonNull itemLongClickListener: OnItemLongClickListener<BaseMessage>): ChannelFragment.Builder
Sets the long click listener on the item of message list.
Link copied to clipboard
open fun setOnMessageMentionClickListener(@NonNull mentionClickListener: OnItemClickListener<User>): ChannelFragment.Builder
Sets the click listener on the mentioned user of message.
Link copied to clipboard
open fun setOnMessageProfileClickListener(@NonNull profileClickListener: OnItemClickListener<BaseMessage>): ChannelFragment.Builder
Sets the click listener on the profile of message.
Link copied to clipboard
open fun setOnMessageProfileLongClickListener(@NonNull messageProfileLongClickListener: OnItemLongClickListener<BaseMessage>): ChannelFragment.Builder
Sets the long click listener on the profile of message.
Link copied to clipboard
open fun setOnQuoteReplyMessageClickListener(@NonNull quoteReplyMessageClickListener: OnItemClickListener<BaseMessage>): ChannelFragment.Builder
Sets the click listener on the item of message list.
Link copied to clipboard
open fun setOnQuoteReplyMessageLongClickListener(@NonNull quoteReplyMessageLongClickListener: OnItemLongClickListener<BaseMessage>): ChannelFragment.Builder
Sets the long click listener on the item of message list.
open fun setOnQuoteReplyModeCloseButtonClickListener(@Nullable replyModeCloseButtonClickListener: View.OnClickListener): ChannelFragment.Builder
Register a callback to be invoked when the close button is clicked, when the input is the quote reply mode.
Link copied to clipboard
open fun setOnScrollBottomButtonClickListener(@Nullable scrollBottomButtonClickListener: View.OnClickListener): ChannelFragment.Builder
Register a callback to be invoked when the button to scroll to the bottom is clicked.
Link copied to clipboard
open fun setOnScrollFirstButtonClickListener(@Nullable scrollFirstButtonClickListener: OnConsumableClickListener): ChannelFragment.Builder
Register a callback to be invoked when the button to scroll to the first position is clicked.
Link copied to clipboard
open fun setOnThreadInfoClickListener(@NonNull threadInfoClickListener: OnItemClickListener<BaseMessage>): ChannelFragment.Builder
Sets the click listener on the item of message list.
Link copied to clipboard
open fun setOnTooltipClickListener(@Nullable tooltipClickListener: View.OnClickListener): ChannelFragment.Builder
Register a callback to be invoked when the tooltip view is clicked.
Link copied to clipboard
open fun setOnVoiceRecorderButtonClickListener(@Nullable voiceRecorderButtonClickListener: View.OnClickListener): ChannelFragment.Builder
Register a callback to be invoked when the button to show voice recorder is clicked.
Link copied to clipboard
open fun setReactionListBackground(@DrawableRes drawableResSentFromMe: Int, @DrawableRes drawableResSentFromOthers: Int): ChannelFragment.Builder
Sets the UI configuration of message reaction list background drawable.
Link copied to clipboard
open fun setRepliedMessageTextUIConfig(@NonNull configRepliedMessage: TextUIConfig): ChannelFragment.Builder
Sets the UI configuration of the replied parent message text.
Link copied to clipboard
open fun setSentAtTextUIConfig(@Nullable configSentFromMe: TextUIConfig, @Nullable configSentFromOthers: TextUIConfig): ChannelFragment.Builder
Sets the UI configuration of message sentAt text.
Link copied to clipboard
open fun setStartingPoint(startTimemillis: Long): ChannelFragment.Builder
Sets the timestamp to load the messages with.
Link copied to clipboard
Sets the suggested mention list adapter.
Link copied to clipboard
open fun setUseHeader(useHeader: Boolean): ChannelFragment.Builder
Sets whether the header is used.
Link copied to clipboard
open fun setUseHeaderLeftButton(useHeaderLeftButton: Boolean): ChannelFragment.Builder
Sets whether the left button of the header is used.
Link copied to clipboard
open fun setUseHeaderProfileImage(useHeaderProfileImage: Boolean): ChannelFragment.Builder
Sets whether the profile image of the header is used.
Link copied to clipboard
open fun setUseHeaderRightButton(useHeaderRightButton: Boolean): ChannelFragment.Builder
Sets whether the right button of the header is used.
Link copied to clipboard
open fun setUseInputLeftButton(useInputLeftButton: Boolean): ChannelFragment.Builder
Sets whether the left button of the input is used.
Link copied to clipboard
open fun setUseMessageGroupUI(useMessageGroupUI: Boolean): ChannelFragment.Builder
Sets whether the message group UI is used.
Link copied to clipboard
open fun setUseMessageListBanner(useBanner: Boolean): ChannelFragment.Builder
Sets whether the message list banner is used.
Link copied to clipboard
open fun setUseSuggestedMentionListDivider(useDivider: Boolean): ChannelFragment.Builder
Sets whether to use divider in suggested mention list.
Link copied to clipboard
open fun setUseTypingIndicator(useTypingIndicator: Boolean): ChannelFragment.Builder
Sets whether the typing indicator is used.
Link copied to clipboard
open fun setUseUserProfile(useUserProfile: Boolean): ChannelFragment.Builder
Sets whether the user profile uses.
Link copied to clipboard
open fun showInputRightButtonAlways(): ChannelFragment.Builder
Sets whether showing the right button of the input always.
Link copied to clipboard
open fun withArguments(@NonNull args: Bundle): ChannelFragment.Builder
Sets arguments to this fragment.