# Interaction

# Interaction

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/Interaction "View this page in Kotlin")\|Java  

<br />

```
public final class Interaction
```

<br />

*** ** * ** ***

An object representing a interaction on a content.

## Summary

|                                                                                                                                  ### Nested types                                                                                                                                  |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `public final class `[Interaction.Builder](https://developer.android.com/reference/com/google/android/engage/social/datamodel/Interaction.Builder) Builder class for[Interaction](https://developer.android.com/reference/com/google/android/engage/social/datamodel/Interaction). |

|                                ### Public fields                                |
|---------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------|
| `final `[String](https://developer.android.com/reference/java/lang/String.html) | [count](https://developer.android.com/reference/com/google/android/engage/social/datamodel/Interaction#count())           |
| `final `[Long](https://developer.android.com/reference/java/lang/Long.html)     | [countValue](https://developer.android.com/reference/com/google/android/engage/social/datamodel/Interaction#countValue()) |

|                                                                             ### Public methods                                                                             |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://developer.android.com/reference/java/lang/String.html)                                                                                                    | [getCount](https://developer.android.com/reference/com/google/android/engage/social/datamodel/Interaction#getCount())`()` Returns the number of reactions e.g. "3.7 M"                    |
| [Long](https://developer.android.com/reference/java/lang/Long.html)                                                                                                        | [getCountValue](https://developer.android.com/reference/com/google/android/engage/social/datamodel/Interaction#getCountValue())`()` Returns the count value of the interaction.           |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>`     | [getLabel](https://developer.android.com/reference/com/google/android/engage/social/datamodel/Interaction#getLabel())`()` Indicate what the interaction is for. e.g. "Likes"              |
| [List](https://developer.android.com/reference/java/util/List.html)`<`[Image](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Image)`>` | [getVisuals](https://developer.android.com/reference/com/google/android/engage/social/datamodel/Interaction#getVisuals())`()` Returns the images/icon showing what the interaction is for |

## Public fields

### count

```
public final String count
```  

### countValue

```
public final Long countValue
```  

## Public methods

### getCount

```
public String getCount()
```

Returns the number of reactions e.g. "3.7 M"  

### getCountValue

```
public Long getCountValue()
```

Returns the count value of the interaction.  

### getLabel

```
public Optional<String> getLabel()
```

Indicate what the interaction is for. e.g. "Likes"  

### getVisuals

```
public List<Image> getVisuals()
```

Returns the images/icon showing what the interaction is for