Package-level declarations

Types

Link copied to clipboard

Centralized Emoji catalog and finder services.

Link copied to clipboard
value class EmojiUrl

Properties

Functions

Link copied to clipboard
fun NotoAnimatedEmoji(emoji: Emoji, modifier: Modifier = Modifier, iterations: Int = Int.MAX_VALUE, stopAt: Float = 1.0f, speed: Float = 1.0f, skipLastFrame: Boolean = false, placeholder: @Composable (Modifier) -> Unit = { PlatformEmojiPlaceholder(emoji, it) })

Shows an animated Emoji if it is Emoji.Details.notoAnimated, or defers to NotoImageEmoji if it is not.

Link copied to clipboard
fun NotoImageEmoji(emoji: Emoji, modifier: Modifier = Modifier, placeholder: @Composable (Modifier) -> Unit = { PlatformEmojiPlaceholder(emoji, it) })

Shows an Emoji as an image downloaded from the Noto image library.

Link copied to clipboard
fun ProvideEmojiDownloader(download: suspend (EmojiUrl) -> ByteArray, content: @Composable () -> Unit)
Link copied to clipboard
Link copied to clipboard

Replaces all shortcodes (i.e. :emoji: or :emoji~skintone:) with their actual corresponding emojis.

Link copied to clipboard
fun WithNotoAnimatedEmoji(text: CharSequence, iterations: Int = Int.MAX_VALUE, speed: Float = 1.0f, fixedSize: Boolean, content: @Composable (AnnotatedString, Map<String, InlineTextContent>) -> Unit)

fun WithNotoAnimatedEmoji(text: CharSequence, iterations: Int = Int.MAX_VALUE, skipLastFrame: Boolean = false, speed: Float = 1.0f, 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 NotoAnimatedEmoji.

Link copied to clipboard

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.

Link copied to clipboard

Creates an annotated String and a InlineTextContent map from a text containing Emoji characters.