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.
Return
The default implementation of QuotedMessageTextFormatter.
Parameters
Whether the auto-translation is enabled.
The context to load resources.
Whether the app is in dark mode.
The typography to use for styling.
The colors to use for styling.
The text style to use for styling.
The color to use for mentions.
The builder to use for customizing the text.
See also
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 Builds the default message text formatter.
Return
The default implementation of QuotedMessageTextFormatter.
Parameters
Whether the auto-translation is enabled.
The context to load resources.
Whether the app is in dark mode.
The typography to use for styling.
The colors to use for styling.
The theme to use for the current user's messages.
The theme to use for other users' messages.
The builder to use for customizing the text.
See also