Package-level declarations

Types

Link copied to clipboard

Functions

Link copied to clipboard
fun annotatedStringResource(text: String, imageGetter: Map<String, EmbeddableImage> = emptyMap(), urlSpanStyle: SpanStyle = SpanStyle(textDecoration = TextDecoration.Underline)): AnnotatedString

Load a styled string resource with formatting.

Link copied to clipboard
Link copied to clipboard
fun Html(html: String, modifier: Modifier = Modifier, imageLoader: Map<String, EmbeddableImage> = emptyMap(), color: Color = Color.Unspecified, style: TextStyle = LocalTextStyle.current, enabled: Boolean = true, urlSpanStyle: SpanStyle = SpanStyle(textDecoration = TextDecoration.Underline), imageAlign: PlaceholderVerticalAlign = PlaceholderVerticalAlign.AboveBaseline, onClick: () -> Unit = {})
Link copied to clipboard
fun HtmlWithCustomOnClick(html: String, modifier: Modifier = Modifier, imageLoader: Map<String, EmbeddableImage> = emptyMap(), color: Color = Color.Unspecified, style: TextStyle = LocalTextStyle.current, urlSpanStyle: SpanStyle = SpanStyle(textDecoration = TextDecoration.Underline), imageAlign: PlaceholderVerticalAlign = PlaceholderVerticalAlign.AboveBaseline, onClick: (List<AnnotatedString.Range<String>>) -> Unit)
Link copied to clipboard
fun MiddleEllipsisText(text: String, modifier: Modifier = Modifier, color: Color = Color.Unspecified, fontSize: TextUnit = TextUnit.Unspecified, fontStyle: FontStyle? = null, fontWeight: FontWeight? = null, fontFamily: FontFamily? = null, letterSpacing: TextUnit = TextUnit.Unspecified, textDecoration: TextDecoration? = null, textAlign: TextAlign? = null, lineHeight: TextUnit = TextUnit.Unspecified, softWrap: Boolean = true, onTextLayout: (TextLayoutResult) -> Unit = {}, style: TextStyle = LocalTextStyle.current, ellipsisChar: Char = '.', ellipsisCharCount: Int = 3)

A Text composable that shows the middle part of the text if the text is too long to fit in the given constraints.