Builder
Constructors
Functions
Link copied to clipboard
Creates an MessageThreadFragment with the arguments supplied to this builder.
Link copied to clipboard
Sets channel configuration for this fragment.
Link copied to clipboard
Sets the custom fragment.
Link copied to clipboard
open fun setEditedTextMarkUIConfig(@Nullable configSentFromMe: TextUIConfig, @Nullable configSentFromOthers: TextUIConfig): MessageThreadFragment.Builder
Sets the UI configuration of edited text mark.
Link copied to clipboard
open fun setEmojiReactionClickListener(@NonNull emojiReactionClickListener: OnEmojiReactionClickListener): MessageThreadFragment.Builder
Sets the click listener on the emoji reaction of the message.
Link copied to clipboard
open fun setEmojiReactionLongClickListener(@NonNull emojiReactionLongClickListener: OnEmojiReactionLongClickListener): MessageThreadFragment.Builder
Sets the long click listener on the emoji reaction of the message.
Link copied to clipboard
open fun setEmojiReactionMoreButtonClickListener(@NonNull emojiReactionMoreButtonClickListener: OnItemClickListener<BaseMessage>): MessageThreadFragment.Builder
Sets the click listener on the emoji reaction more button.
Link copied to clipboard
open fun setEmptyIcon(@DrawableRes resId: Int, @Nullable tint: ColorStateList): MessageThreadFragment.Builder
Sets the icon when the data is not exists.
Link copied to clipboard
Sets the text when the data is not exists
Link copied to clipboard
Sets the text when error occurs
Link copied to clipboard
open fun setHeaderLeftButtonIcon(@DrawableRes resId: Int, @Nullable tint: ColorStateList): MessageThreadFragment.Builder
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
open fun setHeaderRightButtonIcon(@DrawableRes resId: Int, @Nullable tint: ColorStateList): MessageThreadFragment.Builder
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
Sets the title of the header.
Link copied to clipboard
Sets the hint of the input text.
Link copied to clipboard
open fun setInputLeftButtonIcon(@DrawableRes resId: Int, @Nullable tint: ColorStateList): MessageThreadFragment.Builder
Sets the icon on the left button of the input.
Link copied to clipboard
Sets the icon on the left button of the input.
Link copied to clipboard
open fun setInputRightButtonIcon(@DrawableRes resId: Int, @Nullable tint: ColorStateList): MessageThreadFragment.Builder
Sets the icon on the right button of the input.
Link copied to clipboard
Sets the icon on the right button of the input.
Link copied to clipboard
Sets the input text
Link copied to clipboard
The message input displays as a dialog type.
Link copied to clipboard
Sets the UI configuration of the linked text color in the message text.
Link copied to clipboard
open fun setLoadingDialogHandler(@NonNull loadingDialogHandler: LoadingDialogHandler): MessageThreadFragment.Builder
Sets the custom loading dialog handler
Link copied to clipboard
open fun setMentionUIConfig(@Nullable configSentFromMe: TextUIConfig, @Nullable configSentFromOthers: TextUIConfig): MessageThreadFragment.Builder
Sets the UI configuration of mentioned text.
Link copied to clipboard
open fun setMessageBackground(@DrawableRes drawableResSentFromMe: Int, @DrawableRes drawableResSentFromOthers: Int): MessageThreadFragment.Builder
Sets the UI configuration of message background drawable.
Link copied to clipboard
open fun setMessageInputTextUIConfig(@NonNull textUIConfig: TextUIConfig): MessageThreadFragment.Builder
Sets the UI configuration of message input text.
Link copied to clipboard
open fun setMessageTextUIConfig(@Nullable configSentFromMe: TextUIConfig, @Nullable configSentFromOthers: TextUIConfig): MessageThreadFragment.Builder
Sets the UI configuration of message text.
Link copied to clipboard
open fun setNicknameTextUIConfig(@NonNull configSentFromOthers: TextUIConfig): MessageThreadFragment.Builder
Sets the UI configuration of sender nickname text.
Link copied to clipboard
open fun setOgtagBackground(@DrawableRes drawableResSentFromMe: Int, @DrawableRes drawableResSentFromOthers: Int): MessageThreadFragment.Builder
Sets the UI configuration of ogtag message background drawable.
Link copied to clipboard
open fun setOnEditModeCancelButtonClickListener(@Nullable editModeCancelButtonClickListener: View.OnClickListener): MessageThreadFragment.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): MessageThreadFragment.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): MessageThreadFragment.Builder
Sets the listener invoked when a text of message input is edited.
Link copied to clipboard
open fun setOnEmojiReactionUserListProfileClickListener(@NonNull emojiReactionUserListProfileClickListener: OnItemClickListener<User>): MessageThreadFragment.Builder
Sets the click listener on the profile of emoji reaction user list.
Link copied to clipboard
open fun setOnHeaderDescriptionClickListener(@NonNull listener: View.OnClickListener): MessageThreadFragment.Builder
Sets the click listener on the description of the header.
Link copied to clipboard
open fun setOnHeaderLeftButtonClickListener(@NonNull listener: View.OnClickListener): MessageThreadFragment.Builder
Sets the click listener on the left button of the header.
Link copied to clipboard
open fun setOnHeaderRightButtonClickListener(@NonNull listener: View.OnClickListener): MessageThreadFragment.Builder
Sets the click listener on the right button of the header.
Link copied to clipboard
open fun setOnInputLeftButtonClickListener(@NonNull listener: View.OnClickListener): MessageThreadFragment.Builder
Sets the click listener on the left button of the input.
Link copied to clipboard
open fun setOnInputModeChangedListener(@Nullable inputModeChangedListener: OnInputModeChangedListener): MessageThreadFragment.Builder
Register a callback to be invoked when the input mode is changed.
Link copied to clipboard
open fun setOnInputRightButtonClickListener(@Nullable inputRightButtonClickListener: View.OnClickListener): MessageThreadFragment.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): MessageThreadFragment.Builder
Sets the listener invoked when a text of message input is changed..
Link copied to clipboard
open fun setOnMessageClickListener(@NonNull itemClickListener: OnItemClickListener<BaseMessage>): MessageThreadFragment.Builder
Sets the click listener on the item of message list.
Link copied to clipboard
open fun setOnMessageLongClickListener(@NonNull itemLongClickListener: OnItemLongClickListener<BaseMessage>): MessageThreadFragment.Builder
Sets the long click listener on the item of message list.
Link copied to clipboard
open fun setOnMessageMentionClickListener(@NonNull mentionClickListener: OnItemClickListener<User>): MessageThreadFragment.Builder
Sets the click listener on the mentioned user of message.
Link copied to clipboard
open fun setOnMessageProfileClickListener(@NonNull profileClickListener: OnItemClickListener<BaseMessage>): MessageThreadFragment.Builder
Sets the click listener on the profile of message.
Link copied to clipboard
open fun setOnMessageProfileLongClickListener(@NonNull messageProfileLongClickListener: OnItemLongClickListener<BaseMessage>): MessageThreadFragment.Builder
Sets the long click listener on the profile of message.
Link copied to clipboard
open fun setOnParentMessageMenuClickListener(@NonNull parentMessageMenuClickListener: OnItemClickListener<BaseMessage>): MessageThreadFragment.Builder
Sets the click listener on the parent message menu.
Link copied to clipboard
open fun setOnVoiceRecorderButtonClickListener(@Nullable voiceRecorderButtonClickListener: View.OnClickListener): MessageThreadFragment.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): MessageThreadFragment.Builder
Sets the UI configuration of message reaction list background drawable.
Link copied to clipboard
open fun setSentAtTextUIConfig(@Nullable configSentFromMe: TextUIConfig, @Nullable configSentFromOthers: TextUIConfig): MessageThreadFragment.Builder
Sets the UI configuration of message sentAt text.
Link copied to clipboard
Sets the timestamp to load the messages with.
Link copied to clipboard
open fun setSuggestedMentionListAdapter(@Nullable adapter: SuggestedMentionListAdapter): MessageThreadFragment.Builder
Sets the suggested mention list adapter.
Link copied to clipboard
Sets the thread list adapter.
open fun setThreadListAdapter(@Nullable adapter: ThreadListAdapter, @Nullable provider: MessageDisplayDataProvider): MessageThreadFragment.Builder
Sets the thread list adapter and the message display data provider.
Link copied to clipboard
open fun setThreadMessageListParams(@NonNull params: ThreadMessageListParams): MessageThreadFragment.Builder
Sets the thread message list params for this channel.
Link copied to clipboard
Sets whether the header is used.
Link copied to clipboard
Sets whether the left button of the header is used.
Link copied to clipboard
Sets whether the right button of the header is used.
Link copied to clipboard
Sets whether the left button of the input is used.
Link copied to clipboard
Sets whether the message group UI is used.
Link copied to clipboard
Sets whether the message list banner is used.
Link copied to clipboard
Sets whether to use divider in suggested mention list.
Link copied to clipboard
Sets whether the user profile uses.
Link copied to clipboard
Sets whether showing the right button of the input always.
Link copied to clipboard
Sets arguments to this fragment.