With Platform Emoji
expect fun WithPlatformEmoji(text: CharSequence, content: @Composable (AnnotatedString, Map<String, InlineTextContent>) -> Unit)
actual fun WithPlatformEmoji(text: CharSequence, content: @Composable (AnnotatedString, Map<String, InlineTextContent>) -> Unit)
actual fun WithPlatformEmoji(text: CharSequence, content: @Composable (AnnotatedString, Map<String, InlineTextContent>) -> Unit)
Creates an annotated String and a InlineTextContent map from a text containing Emoji characters.
On Wasm: Replaces all emojis with NotoImageEmoji.
On all other platforms: does not modify the text at all (map will be empty).
Parameters
text
The text to with Emoji UTF characters.
fixed Image Size
If true, then the emoji will not be resized once downloaded.
content
A lambda that receives the AnnotatedString and its corresponding InlineTextContent map These should be used to display: { astr, map -> Text(astr, inlineContent = map) }.
fun WithPlatformEmoji(text: CharSequence, fixedImageSize: Boolean, content: @Composable (AnnotatedString, Map<String, InlineTextContent>) -> Unit)
Deprecated
fixedSize is now ignored (size ratio is now part of emoji details)
actual fun WithPlatformEmoji(text: CharSequence, content: (AnnotatedString, Map<String, InlineTextContent>) -> Unit)