# 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 />

```
interface RecentEmojiAsyncProvider
```

<br />

*** ** * ** ***

A interface equivalent to `https://developer.android.com/reference/kotlin/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/kotlin/androidx/emoji2/emojipicker/RecentEmojiAsyncProvider#getRecentEmojiListAsync()` in order to provide recent emojis.

## Summary

| ### Public functions |
|---|---|
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html>>` | `https://developer.android.com/reference/kotlin/androidx/emoji2/emojipicker/RecentEmojiAsyncProvider#getRecentEmojiListAsync()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/emoji2/emojipicker/RecentEmojiAsyncProvider#recordSelection(kotlin.String)(emoji: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` |

## Public functions

### getRecentEmojiListAsync

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

```
fun getRecentEmojiListAsync(): ListenableFuture<List<String>>
```

### recordSelection

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

```
fun recordSelection(emoji: String): Unit
```