# RecentEmojiAsyncProvider

Artifact: [androidx.emoji2:emoji2-emojipicker](https://developer.android.com/jetpack/androidx/releases/emoji2) [View Source](https://cs.android.com/search?q=file:androidx/emoji2/emojipicker/RecentEmojiAsyncProvider.kt+class:androidx.emoji2.emojipicker.RecentEmojiAsyncProvider) Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/emoji2#1.4.0)

*** ** * ** ***

<br />

```
public interface RecentEmojiAsyncProvider
```

<br />

*** ** * ** ***

A interface equivalent to `https://developer.android.com/reference/androidx/emoji2/emojipicker/RecentEmojiProvider` that allows java clients to override the `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html` based function `https://developer.android.com/reference/androidx/emoji2/emojipicker/RecentEmojiAsyncProvider#getRecentEmojiListAsync()` in order to provide recent emojis.

## Summary

| ### Public methods |
|---|---|
| `abstract @https://developer.android.com/reference/androidx/annotation/NonNull https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html>>` | `https://developer.android.com/reference/androidx/emoji2/emojipicker/RecentEmojiAsyncProvider#getRecentEmojiListAsync()()` |
| `abstract void` | `https://developer.android.com/reference/androidx/emoji2/emojipicker/RecentEmojiAsyncProvider#recordSelection(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html emoji)` |

## Public methods

### getRecentEmojiListAsync

Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/emoji2#1.4.0)

```
abstract @NonNull ListenableFuture<@NonNull List<@NonNull String>> getRecentEmojiListAsync()
```

### recordSelection

Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/emoji2#1.4.0)

```
abstract void recordSelection(@NonNull String emoji)
```