RecentEmojiProvider


interface RecentEmojiProvider


An interface to provide recent emoji list.

Summary

Public functions

suspend List<String>

Returns a list of recent emojis.

Unit

Records an emoji into recent emoji list.

Public functions

getRecentEmojiList

suspend fun getRecentEmojiList(): List<String>

Returns a list of recent emojis. Default behavior: The most recently used emojis will be displayed first. Clients could also specify the behavior such as displaying the emojis from high click frequency to low click frequency.

recordSelection

Added in 1.4.0
fun recordSelection(emoji: String): Unit

Records an emoji into recent emoji list. This fun will be called when an emoji is selected. Clients could specify the behavior to record recently used emojis.(e.g. click frequency).