NotoAnimatedEmoji

fun NotoAnimatedEmoji(emoji: Emoji, modifier: Modifier, iterations: Int = Int.MAX_VALUE, stopAt: Float = 1.0f, speed: Float = 1.0f, placeholder: @Composable () -> Unit = { PlatformEmojiPlaceholder(emoji, modifier) })

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

Parameters

emoji

The Emoji to render

modifier

The madatory modifier that must define the size of the displayed emoji, to be applied to the layout.

iterations

The number of times that the animation will be played (default is infinite).

stopAt

Progress that the emoji will stop at during its last iteration.

speed

Speed at which the animation will be rendered.

placeholder

Composable that will be rendered in place during the download of the animation.


fun NotoAnimatedEmoji(emoji: Emoji, iterations: Int = Int.MAX_VALUE, stopAt: Float = 1.0f, speed: Float = 1.0f, placeholder: @Composable () -> Unit = { PlatformEmojiPlaceholder(emoji, Modifier) })

Deprecated (with error)

Modifier that defines size (width & height) is mandatory

Replace with

NotoAnimatedEmoji(emoji, Modifier.size(16.dp), iterations, stopAt, speed, placeholder)