Builder

open class Builder

This is a Builder that is able to create the OpenChannel fragment. 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
Creates an OpenChannelFragment with the arguments supplied to this builder.
Link copied to clipboard
Sets the custom fragment.
Link copied to clipboard
Sets the UI configuration of edited text mark.
Link copied to clipboard
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
Sets the description 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 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
Sets the title of the header.
Link copied to clipboard
Sets the hint of the input text.
Link copied to clipboard
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
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
Sets the custom loading dialog handler
Link copied to clipboard
open fun setMessageBackground(@DrawableRes drawableResSentFromMe: Int, @DrawableRes drawableResSentFromOthers: Int): OpenChannelFragment.Builder
Sets the UI configuration of message background drawable.
Link copied to clipboard
Sets the UI configuration of message input text.
Link copied to clipboard
open fun setMessageListParams(@NonNull params: MessageListParams): OpenChannelFragment.Builder
Sets the message list params for this channel.
Link copied to clipboard
Sets the UI configuration of message text.
Link copied to clipboard
open fun setNicknameTextUIConfig(@Nullable configSentFromMe: TextUIConfig, @Nullable configSentFromOthers: TextUIConfig, @Nullable configSentFromOperator: TextUIConfig): OpenChannelFragment.Builder
Sets the UI configuration of sender nickname text.
Link copied to clipboard
open fun setOgtagBackground(@DrawableRes drawableResSentFromMe: Int, @DrawableRes drawableResSentFromOthers: Int): OpenChannelFragment.Builder
Sets the UI configuration of ogtag message background drawable.
Link copied to clipboard
Register a callback to be invoked when the cancel button is clicked, when the input is the edited mode.
Link copied to clipboard
Register a callback to be invoked when the save button is clicked, when the input is the edited mode.
Link copied to clipboard
Sets the listener invoked when a text of message input is edited.
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
Register a callback to be invoked when the input mode is changed.
Link copied to clipboard
Register a callback to be invoked when the right button of the input is clicked.
Link copied to clipboard
Sets the listener invoked when a text of message input is changed..
Link copied to clipboard
Sets the click listener on the item of message list.
Link copied to clipboard
Register a callback to be invoked when the message is inserted.
Link copied to clipboard
Sets the long click listener on the item of message list.
Link copied to clipboard
Register a callback to be invoked when the profile view of the message is long-clicked.
Link copied to clipboard
open fun setOnProfileClickListener(@NonNull messageProfileClickListener: OnItemClickListener<BaseMessage>): OpenChannelFragment.Builder
Sets the click listener on the profile of message.
Link copied to clipboard
Register a callback to be invoked when the button to scroll to the bottom is clicked.
Link copied to clipboard
Register a callback to be invoked when the button to scroll to the first position is clicked.
Link copied to clipboard
Sets open channel configuration for this fragment.
Link copied to clipboard
Sets the UI configuration of message sentAt text.
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 profile image 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 user profile uses.
Link copied to clipboard
Sets whether showing the right button of the input always.
Link copied to clipboard
The channel displays as a overlay mode.
Link copied to clipboard
Sets arguments to this fragment.