# Popularity

# Popularity

*** ** * ** ***

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

<br />

```
public final class Popularity
```

<br />

*** ** * ** ***

An object representing a popularity on a content.

## Summary

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

|                                                                                 ### 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/Popularity#count())           |
| `final `[Long](https://developer.android.com/reference/java/lang/Long.html)                                                                                                        | [countValue](https://developer.android.com/reference/com/google/android/engage/social/datamodel/Popularity#countValue()) |
| `final `[List](https://developer.android.com/reference/java/util/List.html)`<`[Image](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Image)`>` | [visuals](https://developer.android.com/reference/com/google/android/engage/social/datamodel/Popularity#visuals())       |

|                                                                             ### Public methods                                                                             |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://developer.android.com/reference/java/lang/String.html)                                                                                                    | [getCount](https://developer.android.com/reference/com/google/android/engage/social/datamodel/Popularity#getCount())`()` Returns the popularity count. 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/Popularity#getCountValue())`()` Returns the count value of the popularity.                |
| [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/Popularity#getLabel())`()` Returns the popularity label. e.g. "Likes", "Followers", "Reviews". |
| [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/Popularity#getVisuals())`()` Returns the images/icon that represent the popularity label.    |

## Public fields

### count

```
public final String count
```  

### countValue

```
public final Long countValue
```  

### visuals

```
public final List<Image> visuals
```  

## Public methods

### getCount

```
public String getCount()
```

Returns the popularity count. e.g. "3.7 M"  

### getCountValue

```
public Long getCountValue()
```

Returns the count value of the popularity.  

### getLabel

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

Returns the popularity label. e.g. "Likes", "Followers", "Reviews".  

### getVisuals

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

Returns the images/icon that represent the popularity label.