Companion

object Companion

Functions

Link copied to clipboard

Builds a composite message text formatter.

Link copied to clipboard
fun defaultFormatter(autoTranslationEnabled: Boolean, isInDarkMode: Boolean = isSystemInDarkTheme(), typography: StreamDesign.Typography = StreamDesign.Typography.default(), colors: StreamDesign.Colors = when (isInDarkMode) { true -> StreamDesign.Colors.defaultDark() else -> StreamDesign.Colors.default() }, textStyle: (isMine: Boolean, message: Message) -> TextStyle = { isMine, _ -> MessageStyling.textStyle(outgoing = isMine, typography, colors) }, linkStyle: (isMine: Boolean) -> TextStyle = { MessageStyling.linkStyle(typography, colors) }, mentionColor: (isMine: Boolean) -> Color = { colors.chatTextMention }, builder: AnnotatedMessageTextBuilder? = null): MessageTextFormatter

Builds the default message text formatter.