Companion

object Companion

Functions

Link copied to clipboard

Builds a composite message text formatter.

Link copied to clipboard
fun defaultFormatter(autoTranslationEnabled: Boolean, context: Context = LocalContext.current, isInDarkMode: Boolean = isSystemInDarkTheme(), typography: StreamTypography = StreamTypography.defaultTypography(), colors: StreamColors = when (isSystemInDarkTheme()) { true -> StreamColors.defaultDarkColors() else -> StreamColors.defaultColors() }, shapes: StreamShapes = StreamShapes.defaultShapes(), ownMessageTheme: MessageTheme = MessageTheme.defaultOwnTheme(isInDarkMode, typography, shapes, colors), otherMessageTheme: MessageTheme = MessageTheme.defaultOtherTheme(isInDarkMode, typography, shapes, colors), builder: AnnotatedQuotedMessageTextBuilder? = null): QuotedMessageTextFormatter
fun defaultFormatter(autoTranslationEnabled: Boolean, context: Context = LocalContext.current, isInDarkMode: Boolean = isSystemInDarkTheme(), typography: StreamTypography = StreamTypography.defaultTypography(), colors: StreamColors = when (isSystemInDarkTheme()) { true -> StreamColors.defaultDarkColors() else -> StreamColors.defaultColors() }, shapes: StreamShapes = StreamShapes.defaultShapes(), textStyle: (isMine: Boolean) -> TextStyle = defaultTextStyle(isInDarkMode, typography, colors, shapes), mentionColor: (isMine: Boolean) -> Color = defaultMentionColor(isInDarkMode, typography, colors, shapes), builder: AnnotatedQuotedMessageTextBuilder? = null): QuotedMessageTextFormatter

Builds the default message text formatter.