RecentEmojiProviderAdapter


class RecentEmojiProviderAdapter : RecentEmojiProvider


An adapter for the RecentEmojiAsyncProvider.

Summary

Public constructors

RecentEmojiProviderAdapter(
    recentEmojiAsyncProvider: RecentEmojiAsyncProvider
)

Public functions

open suspend List<String>

Returns a list of recent emojis.

open Unit

Records an emoji into recent emoji list.

Public constructors

RecentEmojiProviderAdapter

Added in 1.4.0
RecentEmojiProviderAdapter(
    recentEmojiAsyncProvider: RecentEmojiAsyncProvider
)

Public functions

getRecentEmojiList

open 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.5.0
open 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).