# R.attr

Artifact: [androidx.emoji2:emoji2-views](https://developer.android.com/jetpack/androidx/releases/emoji2)

*** ** * ** ***


```
class R.attr
```

<br />

*** ** * ** ***

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/emoji2/widget/R.attr#attr()()` |

| ### Public properties |
|---|---|
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/emoji2/widget/R.attr#emojiReplaceStrategy()` Must be one of the following constant values. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/emoji2/widget/R.attr#maxEmojiCount()` May be an integer value, such as "`100`". |

## Public constructors

### attr

```
attr()
```

## Public properties

### emojiReplaceStrategy

```
java-static val emojiReplaceStrategy: Int
```

Must be one of the following constant values.

| Constant | Value | Description |
|---|---|---|
| all | 1 | Replace strategy to add EmojiSpans for all emoji that were found. |
| defaultStrategy | 0 | Replace strategy that uses the value given in EmojiCompat.Config. Default value. |
| nonExistent | 2 | Replace strategy to add EmojiSpans only for emoji that do not exist in the system. |

### maxEmojiCount

```
java-static val maxEmojiCount: Int
```

May be an integer value, such as "`100`".