PortraitMediaPost.Builder


class PortraitMediaPost.Builder


Builder class for PortraitMediaPost.

Summary

Public constructors

Public functions

PortraitMediaPost.Builder!

Add an image for the post.

PortraitMediaPost.Builder!

Add the image contents for the post.

PortraitMediaPost!
PortraitMediaPost.Builder!

Indicate the video preview content for the post.

PortraitMediaPost.Builder!

Indicate the text content for the post.

PortraitMediaPost.Builder!

Sets the timestamp of the post.

PortraitMediaPost.Builder!

Indicate the video duration for the post.

Public constructors

Builder

Builder()

Public functions

addVisualContent

@CanIgnoreReturnValue
fun addVisualContent(image: Image!): PortraitMediaPost.Builder!

Add an image for the post.

Required.

addVisualContents

@CanIgnoreReturnValue
fun addVisualContents(images: (Mutable)List<Image!>!): PortraitMediaPost.Builder!

Add the image contents for the post.

Required.

build

fun build(): PortraitMediaPost!

setIsVideoContent

@CanIgnoreReturnValue
fun setIsVideoContent(isVideoContent: Boolean): PortraitMediaPost.Builder!

Indicate the video preview content for the post.

Optional.

setTextContent

@CanIgnoreReturnValue
fun setTextContent(textContent: String!): PortraitMediaPost.Builder!

Indicate the text content for the post.

Optional.

setTimestamp

@CanIgnoreReturnValue
fun setTimestamp(timestamp: Long): PortraitMediaPost.Builder!

Sets the timestamp of the post.

Optional.

setVideoDurationMillis

@CanIgnoreReturnValue
fun setVideoDurationMillis(videoDurationMillis: Long): PortraitMediaPost.Builder!

Indicate the video duration for the post.

Optional.