LiveStreamingVideoEntity.Builder


public final class LiveStreamingVideoEntity.Builder


Builder class for LiveStreamingVideoEntity.

Summary

Public constructors

Public methods

LiveStreamingVideoEntity.Builder

Adds the availability time windows of the video entity.

LiveStreamingVideoEntity.Builder

Adds the availability time window of the video entity.

LiveStreamingVideoEntity.Builder

Add platform specific playback uri for the live streaming entity.

LiveStreamingVideoEntity.Builder

Add platform specific playback uris for the live streaming entity.

LiveStreamingVideoEntity.Builder

Add a poster image of the entity.

LiveStreamingVideoEntity.Builder

Add poster images of the entity.

LiveStreamingVideoEntity
LiveStreamingVideoEntity.Builder

Sets the broadcaster of the live streaming.

LiveStreamingVideoEntity.Builder

Sets the broadcaster's icon for the live streaming entity.

LiveStreamingVideoEntity.Builder

Sets the end time of the live streaming in milliseconds since Epoch.

LiveStreamingVideoEntity.Builder

Sets content id of the entity.

LiveStreamingVideoEntity.Builder
@CanIgnoreReturnValue
setLastEngagementTimeMillis(long lastEngagementTimeMillis)

Sets last engagement time of the entity, in milliseconds since Epoch.

LiveStreamingVideoEntity.Builder
@CanIgnoreReturnValue
setLastPlayBackPositionTimeMillis(long lastPlayBackPositionTimeMillis)

Sets last play back position of the video entity, in milliseconds.

LiveStreamingVideoEntity.Builder

Sets the name of the entity.

LiveStreamingVideoEntity.Builder

Sets the on device deeplink to start playing the video.

LiveStreamingVideoEntity.Builder
@CanIgnoreReturnValue
setStartTimeEpochMillis(long startTimeEpochMillis)

Sets the start time of the live streaming in milliseconds since Epoch.

LiveStreamingVideoEntity.Builder

Sets the view count of the live streaming.

LiveStreamingVideoEntity.Builder

Sets the watch next type of the video entity.

Public constructors

Builder

public Builder()

Public methods

addAllAvailabilityTimeWindows

@CanIgnoreReturnValue
public LiveStreamingVideoEntity.Builder addAllAvailabilityTimeWindows(
    List<DisplayTimeWindow> availabilityTimeWindows
)

Adds the availability time windows of the video entity.

Optional.

addAvailabilityTimeWindow

@CanIgnoreReturnValue
public LiveStreamingVideoEntity.Builder addAvailabilityTimeWindow(DisplayTimeWindow availabilityTimeWindow)

Adds the availability time window of the video entity.

Optional.

addPlatformSpecificPlaybackUri

@CanIgnoreReturnValue
public LiveStreamingVideoEntity.Builder addPlatformSpecificPlaybackUri(
    PlatformSpecificUri platformSpecificPlaybackUri
)

Add platform specific playback uri for the live streaming entity.

Optional.

addPlatformSpecificPlaybackUris

@CanIgnoreReturnValue
public LiveStreamingVideoEntity.Builder addPlatformSpecificPlaybackUris(
    List<PlatformSpecificUri> platformSpecificPlaybackUris
)

Add platform specific playback uris for the live streaming entity.

Optional.

addPosterImage

@CanIgnoreReturnValue
public LiveStreamingVideoEntity.Builder addPosterImage(Image image)

Add a poster image of the entity.

Required.

addPosterImages

@CanIgnoreReturnValue
public LiveStreamingVideoEntity.Builder addPosterImages(List<Image> images)

Add poster images of the entity.

Required.

build

public LiveStreamingVideoEntity build()

setBroadcaster

@CanIgnoreReturnValue
public LiveStreamingVideoEntity.Builder setBroadcaster(String broadcaster)

Sets the broadcaster of the live streaming.

Required.

setBroadcasterIcon

@CanIgnoreReturnValue
public LiveStreamingVideoEntity.Builder setBroadcasterIcon(Image broadcasterIcon)

Sets the broadcaster's icon for the live streaming entity.

Optional.

setEndTimeEpochMillis

@CanIgnoreReturnValue
public LiveStreamingVideoEntity.Builder setEndTimeEpochMillis(long endTimeEpochMillis)

Sets the end time of the live streaming in milliseconds since Epoch.

Optional.

setEntityId

@CanIgnoreReturnValue
public LiveStreamingVideoEntity.Builder setEntityId(String entityId)

Sets content id of the entity.

Optional.

setLastEngagementTimeMillis

@CanIgnoreReturnValue
public LiveStreamingVideoEntity.Builder setLastEngagementTimeMillis(long lastEngagementTimeMillis)

Sets last engagement time of the entity, in milliseconds since Epoch.

Optional.

setLastPlayBackPositionTimeMillis

@CanIgnoreReturnValue
public LiveStreamingVideoEntity.Builder setLastPlayBackPositionTimeMillis(long lastPlayBackPositionTimeMillis)

Sets last play back position of the video entity, in milliseconds.

Optional.

setName

@CanIgnoreReturnValue
public LiveStreamingVideoEntity.Builder setName(String name)

Sets the name of the entity.

Required.

setPlayBackUri

@CanIgnoreReturnValue
public LiveStreamingVideoEntity.Builder setPlayBackUri(Uri playBackUri)

Sets the on device deeplink to start playing the video.

Required.

setStartTimeEpochMillis

@CanIgnoreReturnValue
public LiveStreamingVideoEntity.Builder setStartTimeEpochMillis(long startTimeEpochMillis)

Sets the start time of the live streaming in milliseconds since Epoch.

Optional.

setViewCount

@CanIgnoreReturnValue
public LiveStreamingVideoEntity.Builder setViewCount(String viewCount)

Sets the view count of the live streaming.

Optional.

setWatchNextType

@CanIgnoreReturnValue
public LiveStreamingVideoEntity.Builder setWatchNextType(@WatchNextType int watchNextType)

Sets the watch next type of the video entity.

Optional.