defaultFormatter

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.

Return

The default implementation of MessageTextFormatter.

Parameters

autoTranslationEnabled

Whether the auto-translation is enabled.

isInDarkMode

Whether the app is in dark mode.

typography

The typography to use for styling.

colors

The colors to use for styling.

textStyle

The text style to use for styling.

builder

The builder to use for customizing the text.

See also