# Interaction

# Interaction

*** ** * ** ***

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

<br />

```
class Interaction
```

<br />

*** ** * ** ***

An object representing a interaction on a content.

## Summary

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

|                                                                                                                                               ### Public functions                                                                                                                                                |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!`                                                                                                                                 | [getLabel](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/Interaction#getLabel())`()` Indicate what the interaction is for. e.g. "Likes"              |
| `(`[Mutable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[Image](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image)`!>!` | [getVisuals](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/Interaction#getVisuals())`()` Returns the images/icon showing what the interaction is for |

|                                ### Public properties                                |
|-------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!` | [count](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/Interaction#count())           |
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`!`     | [countValue](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/Interaction#countValue()) |

## Public functions

### getLabel

```
fun getLabel(): Optional<String!>!
```

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

### getVisuals

```
fun getVisuals(): (Mutable)List<Image!>!
```

Returns the images/icon showing what the interaction is for  

## Public properties

### count

```
val count: String!
```  

### countValue

```
val countValue: Long!
```