WithNotoImageEmoji

fun WithNotoImageEmoji(text: CharSequence, placeholder: @Composable (Emoji) -> Unit = { PlatformEmojiPlaceholder(it, Modifier.fillMaxSize()) }, content: @Composable (AnnotatedString, Map<String, InlineTextContent>) -> Unit)

Creates an annotated String and a InlineTextContent map from a text containing Emoji characters. Replaces all emojis with NotoImageEmoji.

Parameters

text

The text to with Emoji UTF characters.

content

A lambda that receives the AnnotatedString and its corresponding InlineTextContent map These should be used to display: { astr, map -> Text(astr, inlineContent = map) }.


Deprecated

fixedSize is now ignored (size ratio is now part of emoji details)