PortraitMediaPost.Builder


public final class PortraitMediaPost.Builder


Builder class for PortraitMediaPost.

Summary

Public constructors

Public methods

PortraitMediaPost.Builder

Add an image for the post.

PortraitMediaPost.Builder

Add the image contents for the post.

PortraitMediaPost
PortraitMediaPost.Builder
@CanIgnoreReturnValue
setIsVideoContent(boolean isVideoContent)

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
@CanIgnoreReturnValue
setVideoDurationMillis(long videoDurationMillis)

Indicate the video duration for the post.

Public constructors

Builder

public Builder()

Public methods

addVisualContent

@CanIgnoreReturnValue
public PortraitMediaPost.Builder addVisualContent(Image image)

Add an image for the post.

Required.

addVisualContents

@CanIgnoreReturnValue
public PortraitMediaPost.Builder addVisualContents(List<Image> images)

Add the image contents for the post.

Required.

build

public PortraitMediaPost build()

setIsVideoContent

@CanIgnoreReturnValue
public PortraitMediaPost.Builder setIsVideoContent(boolean isVideoContent)

Indicate the video preview content for the post.

Optional.

setTextContent

@CanIgnoreReturnValue
public PortraitMediaPost.Builder setTextContent(String textContent)

Indicate the text content for the post.

Optional.

setTimestamp

@CanIgnoreReturnValue
public PortraitMediaPost.Builder setTimestamp(long timestamp)

Sets the timestamp of the post.

Optional.

setVideoDurationMillis

@CanIgnoreReturnValue
public PortraitMediaPost.Builder setVideoDurationMillis(long videoDurationMillis)

Indicate the video duration for the post.

Optional.