RecentEmojiProviderAdapter


public final class RecentEmojiProviderAdapter implements RecentEmojiProvider


An adapter for the RecentEmojiAsyncProvider.

Summary

Public constructors

RecentEmojiProviderAdapter(
    @NonNull RecentEmojiAsyncProvider recentEmojiAsyncProvider
)

Public methods

@NonNull List<@NonNull String>

Returns a list of recent emojis.

void

Records an emoji into recent emoji list.

Public constructors

RecentEmojiProviderAdapter

Added in 1.4.0
public RecentEmojiProviderAdapter(
    @NonNull RecentEmojiAsyncProvider recentEmojiAsyncProvider
)

Public methods

getRecentEmojiList

public @NonNull List<@NonNull StringgetRecentEmojiList()

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
public void recordSelection(@NonNull String emoji)

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