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: StreamTypography = StreamTypography.defaultTypography(),     colors: StreamColors = when (isSystemInDarkTheme()) { true -> StreamColors.defaultDarkColors() else -> StreamColors.defaultColors() },     textStyle: (isMine: Boolean, message: Message) -> TextStyle = defaultTextStyle(isInDarkMode, typography, colors),     mentionColor: (isMine: Boolean) -> Color = defaultMentionColor(isInDarkMode, typography, colors),     builder: AnnotatedMessageTextBuilder? = null): MessageTextFormatter
fun defaultFormatter(    autoTranslationEnabled: Boolean,     isInDarkMode: Boolean = isSystemInDarkTheme(),     typography: StreamTypography = StreamTypography.defaultTypography(),     shapes: StreamShapes = StreamShapes.defaultShapes(),     colors: StreamColors = when (isSystemInDarkTheme()) { true -> StreamColors.defaultDarkColors() else -> StreamColors.defaultColors() },     ownMessageTheme: MessageTheme = MessageTheme.defaultOwnTheme( isInDarkMode = isInDarkMode, typography = typography, shapes = shapes, colors = colors, ),     otherMessageTheme: MessageTheme = MessageTheme.defaultOtherTheme( isInDarkMode = isInDarkMode, typography = typography, shapes = shapes, colors = colors, ),     builder: AnnotatedMessageTextBuilder? = null): MessageTextFormatter

Builds the default message text formatter.