# PortraitMediaPost

# PortraitMediaPost

*** ** * ** ***

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

<br />

```
class PortraitMediaPost
```

<br />

*** ** * ** ***

An object representing a portrait media social media post.

## Summary

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

|                                                                                                                                               ### 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)`!>!`                                                                                                                                 | [getTextContent](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PortraitMediaPost#getTextContent())`()` Indicate the text content for the post.                                     |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`!>!`                                                                                                                                     | [getTimestamp](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PortraitMediaPost#getTimestamp())`()`                                                                                 |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`!>!`                                                                                                                                     | [getVideoDurationMillis](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PortraitMediaPost#getVideoDurationMillis())`()` Indicate the duration of the video content in milliseconds. |
| `(`[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)`!>!` | [getVisualContent](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PortraitMediaPost#getVisualContent())`()` Indicate the image content for the post.                                |

|                               ### Public properties                                |
|------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [isVideoContent](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/PortraitMediaPost#isVideoContent()) |

## Public functions

### getTextContent

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

Indicate the text content for the post.  

### getTimestamp

```
fun getTimestamp(): Optional<Long!>!
```  

### getVideoDurationMillis

```
fun getVideoDurationMillis(): Optional<Long!>!
```

Indicate the duration of the video content in milliseconds.  

### getVisualContent

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

Indicate the image content for the post.  

## Public properties

### isVideoContent

```
val isVideoContent: Boolean
```