-
public class QuotedMessageTextFormatter.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static QuotedMessageTextFormatter.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final QuotedMessageTextFormatterdefaultFormatter(Boolean autoTranslationEnabled, Context context, Boolean isInDarkMode, StreamTypography typography, StreamColors colors, StreamShapes shapes, Function1<Boolean, TextStyle> textStyle, Function1<Boolean, TextStyle> linkStyle, Function1<Boolean, Color> mentionColor, Function4<AnnotatedString.Builder, Message, Message, User, Unit> builder)Builds the default message text formatter. final QuotedMessageTextFormatterdefaultFormatter(Boolean autoTranslationEnabled, Context context, Boolean isInDarkMode, StreamTypography typography, StreamColors colors, StreamShapes shapes, MessageTheme ownMessageTheme, MessageTheme otherMessageTheme, Function4<AnnotatedString.Builder, Message, Message, User, Unit> builder)Builds the default message text formatter. final QuotedMessageTextFormattercomposite(QuotedMessageTextFormatter formatters)Builds a composite message text formatter. -
-
Method Detail
-
defaultFormatter
@Composable() final QuotedMessageTextFormatter defaultFormatter(Boolean autoTranslationEnabled, Context context, Boolean isInDarkMode, StreamTypography typography, StreamColors colors, StreamShapes shapes, Function1<Boolean, TextStyle> textStyle, Function1<Boolean, TextStyle> linkStyle, Function1<Boolean, Color> mentionColor, Function4<AnnotatedString.Builder, Message, Message, User, Unit> builder)
Builds the default message text formatter.
- 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.mentionColor- The color to use for mentions.builder- The builder to use for customizing the text.
-
defaultFormatter
@Composable() final QuotedMessageTextFormatter defaultFormatter(Boolean autoTranslationEnabled, Context context, Boolean isInDarkMode, StreamTypography typography, StreamColors colors, StreamShapes shapes, MessageTheme ownMessageTheme, MessageTheme otherMessageTheme, Function4<AnnotatedString.Builder, Message, Message, User, Unit> builder)
Builds the default message text formatter.
- 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.
-
composite
final QuotedMessageTextFormatter composite(QuotedMessageTextFormatter formatters)
Builds a composite message text formatter.
- Parameters:
formatters- The list of formatters to use.
-
-
-
-