Package com.sendbird.uikit.model
Class MessageUIConfig
- java.lang.Object
-
- com.sendbird.uikit.model.MessageUIConfig
-
public class MessageUIConfig extends java.lang.Object
Configurations of Message.
-
-
Constructor Summary
Constructors Constructor Description MessageUIConfig()
Constructor
-
Method Summary
Modifier and Type Method Description ColorStateList
getLinkedTextColor()
Returns the UI configuration of the linked text color in the message text.TextUIConfig
getMyEditedTextMarkUIConfig()
Returns UI configuration of edited message that I sent.TextUIConfig
getMyMentionUIConfig()
Returns UI configuration of mentioned message that I sent.Drawable
getMyMessageBackground()
Returns UI configuration of message background that the I sent.TextUIConfig
getMyMessageTextUIConfig()
Returns UI configuration of message text that I sent.TextUIConfig
getMyNicknameTextUIConfig()
Returns UI configuration of sender nickname that the I sent.Drawable
getMyOgtagBackground()
Returns UI configuration of ogtag message background that the I sent.Drawable
getMyReactionListBackground()
Returns UI configuration of message reaction list background that the I sent.TextUIConfig
getMySentAtTextUIConfig()
Returns UI configuration of message sentAt text that the I sent.TextUIConfig
getOperatorNicknameTextUIConfig()
Returns UI configuration of sender nickname that the operator sent.TextUIConfig
getOtherEditedTextMarkUIConfig()
Returns UI configuration of edited message that the others sent.TextUIConfig
getOtherMentionUIConfig()
Returns UI configuration of mentioned message that the others sent.Drawable
getOtherMessageBackground()
Returns UI configuration of message background that the others sent.TextUIConfig
getOtherMessageTextUIConfig()
Returns UI configuration of message text that the others sent.TextUIConfig
getOtherNicknameTextUIConfig()
Returns UI configuration of sender nickname that the others sent.Drawable
getOtherOgtagBackground()
Returns UI configuration of ogtag message background that the others sent.Drawable
getOtherReactionListBackground()
Returns UI configuration of message reaction list background that the others sent.TextUIConfig
getOtherSentAtTextUIConfig()
Returns UI configuration of message sentAt text that the others sent.TextUIConfig
getRepliedMessageTextUIConfig()
Returns UI configuration of replied parent message.void
setLinkedTextColor(ColorStateList linkedTextColor)
Sets the UI configuration of the linked text color in the message text.void
setMyMessageBackground(Drawable myMessageBackground)
Sets UI configuration of message background that the I sent.void
setMyOgtagBackground(Drawable myOgtagBackground)
Sets UI configuration of ogtag message background that the I sent.void
setMyReactionListBackground(Drawable myReactionListBackground)
Sets UI configuration of message reaction list background that the I sent.void
setOtherMessageBackground(Drawable otherMessageBackground)
Sets UI configuration of message background that the others sent.void
setOtherOgtagBackground(Drawable otherOgtagBackground)
Sets UI configuration of ogtag message background that the others sent.void
setOtherReactionListBackground(Drawable otherReactionListBackground)
Sets UI configuration of message reaction list background that the others sent.
-
-
-
Method Detail
-
getMyEditedTextMarkUIConfig
@NonNull public TextUIConfig getMyEditedTextMarkUIConfig()
Returns UI configuration of edited message that I sent. If the message is edited, UIKit add an extra text, like, "(Edited)". This extra text's UI configurations will be returned.- Returns:
- the UI configuration of edited message mark.
- Since:
- 3.0.0
-
getOtherEditedTextMarkUIConfig
@NonNull public TextUIConfig getOtherEditedTextMarkUIConfig()
Returns UI configuration of edited message that the others sent. If the message is edited, UIKit add an extra text, like, "(Edited)". This extra text's UI configurations will be returned.- Returns:
- the UI configuration of edited message mark.
- Since:
- 3.0.0
-
getMyMentionUIConfig
@NonNull public TextUIConfig getMyMentionUIConfig()
Returns UI configuration of mentioned message that I sent.- Returns:
- the UI configuration of mentioned message.
- Since:
- 3.0.0
-
getOtherMentionUIConfig
@NonNull public TextUIConfig getOtherMentionUIConfig()
Returns UI configuration of mentioned message that the others sent.- Returns:
- the UI configuration of mentioned message.
- Since:
- 3.0.0
-
getMyMessageTextUIConfig
@NonNull public TextUIConfig getMyMessageTextUIConfig()
Returns UI configuration of message text that I sent.- Returns:
- the UI configuration of message text.
- Since:
- 3.1.1
-
getOtherMessageTextUIConfig
@NonNull public TextUIConfig getOtherMessageTextUIConfig()
Returns UI configuration of message text that the others sent.- Returns:
- the UI configuration of message text.
- Since:
- 3.1.1
-
getMySentAtTextUIConfig
@NonNull public TextUIConfig getMySentAtTextUIConfig()
Returns UI configuration of message sentAt text that the I sent.- Returns:
- the UI configuration of message sentAt text.
- Since:
- 3.1.1
-
getOtherSentAtTextUIConfig
@NonNull public TextUIConfig getOtherSentAtTextUIConfig()
Returns UI configuration of message sentAt text that the others sent.- Returns:
- the UI configuration of message sentAt text.
- Since:
- 3.1.1
-
getMyNicknameTextUIConfig
@NonNull public TextUIConfig getMyNicknameTextUIConfig()
Returns UI configuration of sender nickname that the I sent.- Returns:
- the UI configuration of sender nickname.
- Since:
- 3.1.1
-
getOtherNicknameTextUIConfig
@NonNull public TextUIConfig getOtherNicknameTextUIConfig()
Returns UI configuration of sender nickname that the others sent.- Returns:
- the UI configuration of sender nickname.
- Since:
- 3.1.1
-
getOperatorNicknameTextUIConfig
@NonNull public TextUIConfig getOperatorNicknameTextUIConfig()
Returns UI configuration of sender nickname that the operator sent.- Returns:
- the UI configuration of sender nickname.
- Since:
- 3.1.1
-
getRepliedMessageTextUIConfig
@NonNull public TextUIConfig getRepliedMessageTextUIConfig()
Returns UI configuration of replied parent message.- Returns:
- the UI configuration of replied parent message.
- Since:
- 3.2.1
-
getMyMessageBackground
@Nullable public Drawable getMyMessageBackground()
Returns UI configuration of message background that the I sent.- Returns:
- the UI configuration of message background.
- Since:
- 3.1.1
-
setMyMessageBackground
public void setMyMessageBackground(@NonNull Drawable myMessageBackground)
Sets UI configuration of message background that the I sent.- Since:
- 3.1.1
-
getOtherMessageBackground
@Nullable public Drawable getOtherMessageBackground()
Returns UI configuration of message background that the others sent.- Returns:
- the UI configuration of message background.
- Since:
- 3.1.1
-
setOtherMessageBackground
public void setOtherMessageBackground(@NonNull Drawable otherMessageBackground)
Sets UI configuration of message background that the others sent.- Since:
- 3.1.1
-
getMyReactionListBackground
@Nullable public Drawable getMyReactionListBackground()
Returns UI configuration of message reaction list background that the I sent.- Returns:
- the UI configuration of message reaction list background.
- Since:
- 3.1.1
-
setMyReactionListBackground
public void setMyReactionListBackground(@NonNull Drawable myReactionListBackground)
Sets UI configuration of message reaction list background that the I sent.- Since:
- 3.1.1
-
getOtherReactionListBackground
@Nullable public Drawable getOtherReactionListBackground()
Returns UI configuration of message reaction list background that the others sent.- Returns:
- the UI configuration of message reaction list background.
- Since:
- 3.1.1
-
setOtherReactionListBackground
public void setOtherReactionListBackground(@NonNull Drawable otherReactionListBackground)
Sets UI configuration of message reaction list background that the others sent.- Since:
- 3.1.1
-
getMyOgtagBackground
@Nullable public Drawable getMyOgtagBackground()
Returns UI configuration of ogtag message background that the I sent.- Returns:
- the UI configuration of ogtag message background.
- Since:
- 3.1.1
-
setMyOgtagBackground
public void setMyOgtagBackground(@NonNull Drawable myOgtagBackground)
Sets UI configuration of ogtag message background that the I sent.- Since:
- 3.1.1
-
getOtherOgtagBackground
@Nullable public Drawable getOtherOgtagBackground()
Returns UI configuration of ogtag message background that the others sent.- Returns:
- the UI configuration of ogtag message background.
- Since:
- 3.1.1
-
setOtherOgtagBackground
public void setOtherOgtagBackground(@NonNull Drawable otherOgtagBackground)
Sets UI configuration of ogtag message background that the others sent.- Since:
- 3.1.1
-
getLinkedTextColor
@Nullable public ColorStateList getLinkedTextColor()
Returns the UI configuration of the linked text color in the message text.- Returns:
- the UI configuration of the linked text color.
- Since:
- 3.1.1
-
setLinkedTextColor
public void setLinkedTextColor(@NonNull ColorStateList linkedTextColor)
Sets the UI configuration of the linked text color in the message text.- Parameters:
linkedTextColor
- the UI configuration of the linked text color.- Since:
- 3.1.1
-
-