MessageFooterVisibility

sealed class MessageFooterVisibility

Intended to be used for regulating the visibility of a single message footer visibility.

Types

Link copied to clipboard
object Always : MessageFooterVisibility

The message footer will be visible for every message.

Link copied to clipboard
object LastInGroup : MessageFooterVisibility

The message footer will only be visible to items that are last in group.

Link copied to clipboard
object Never : MessageFooterVisibility

The message footer will never be visible.

Link copied to clipboard
data class WithTimeDifference(val timeDifferenceMillis: Long = DEFAULT_FOOTER_TIME_DIFF_MILLIS) : MessageFooterVisibility

The message footer will be visible to items that are sent inside a specified time duration.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Extensions

Link copied to clipboard
fun MessageFooterVisibility.shouldShowMessageFooter(    message: Message,     isLastMessageInGroup: Boolean,     nextMessage: Message?): Boolean

Decides if we need to show the message footer (timestamp) below the message.