defaultFormatter
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), builder: AnnotatedQuotedMessageTextBuilder? = null): QuotedMessageTextFormatter
Builds the default message text formatter.
Return
The default implementation of QuotedMessageTextFormatter.
Parameters
autoTranslationEnabled
Whether the auto-translation is enabled.
context
The context to load resources.
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
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
autoTranslationEnabled
Whether the auto-translation is enabled.
context
The context to load resources.
isInDarkMode
Whether the app is in dark mode.
typography
The typography to use for styling.
colors
The colors to use for styling.
ownMessageTheme
The theme to use for the current user's messages.
otherMessageTheme
The theme to use for other users' messages.
builder
The builder to use for customizing the text.