public final class

WatchNextProgram.Builder

extends BasePreviewProgram.Builder<WatchNextProgram.Builder>

 java.lang.Object

androidx.tvprovider.media.tv.BaseProgram.Builder<BasePreviewProgram.Builder>

androidx.tvprovider.media.tv.BasePreviewProgram.Builder<WatchNextProgram.Builder>

↳androidx.tvprovider.media.tv.WatchNextProgram.Builder

Overview

This Builder class simplifies the creation of a WatchNextProgram object.

Summary

Fields
from BaseProgram.Builder<T>mValues
Constructors
publicBuilder()

Creates a new Builder object.

publicBuilder(WatchNextProgram other)

Creates a new Builder object with values copied from another Program.

Methods
public WatchNextProgrambuild()

public WatchNextProgram.BuildersetLastEngagementTimeUtcMillis(long lastEngagementTimeUtcMillis)

Sets the time when the program is going to begin in milliseconds since the epoch.

public WatchNextProgram.BuildersetWatchNextType(int watchNextType)

Sets the "watch next" type of this program content.

from BasePreviewProgram.Builder<T>setAuthor, setAvailability, setBrowsable, setContentId, setDurationMillis, setEndTimeUtcMillis, setGenre, setIntent, setIntentUri, setInteractionCount, setInteractionType, setInternalProviderId, setItemCount, setLastPlaybackPositionMillis, setLive, setLogoContentDescription, setLogoUri, setOfferPrice, setPosterArtAspectRatio, setPreviewAudioUri, setPreviewVideoUri, setReleaseDate, setReleaseDate, setStartingPrice, setStartTimeUtcMillis, setThumbnailAspectRatio, setTransient, setTvSeriesItemType, setType
from BaseProgram.Builder<T>setAudioLanguages, setCanonicalGenres, setContentRatings, setDescription, setEpisodeNumber, setEpisodeNumber, setEpisodeTitle, setId, setInternalProviderData, setInternalProviderFlag1, setInternalProviderFlag2, setInternalProviderFlag3, setInternalProviderFlag4, setLongDescription, setPackageName, setPosterArtUri, setReviewRating, setReviewRatingStyle, setSearchable, setSeasonNumber, setSeasonNumber, setSeasonTitle, setSeriesId, setThumbnailUri, setTitle, setVideoHeight, setVideoWidth
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder()

Creates a new Builder object.

public Builder(WatchNextProgram other)

Creates a new Builder object with values copied from another Program.

Parameters:

other: The Program you're copying from.

Methods

public WatchNextProgram.Builder setWatchNextType(int watchNextType)

Sets the "watch next" type of this program content.

The value should match one of the followings: TvContractCompat.WatchNextPrograms.WATCH_NEXT_TYPE_CONTINUE, TvContractCompat.WatchNextPrograms.WATCH_NEXT_TYPE_NEXT, and TvContractCompat.WatchNextPrograms.WATCH_NEXT_TYPE_NEW.

Parameters:

watchNextType: The value of TvContractCompat.WatchNextPrograms.COLUMN_WATCH_NEXT_TYPE for the program.

Returns:

This Builder object to allow for chaining of calls to builder methods.

public WatchNextProgram.Builder setLastEngagementTimeUtcMillis(long lastEngagementTimeUtcMillis)

Sets the time when the program is going to begin in milliseconds since the epoch.

Parameters:

lastEngagementTimeUtcMillis: The value of TvContractCompat.WatchNextPrograms.COLUMN_LAST_ENGAGEMENT_TIME_UTC_MILLIS for the program.

Returns:

This Builder object to allow for chaining of calls to builder methods.

public WatchNextProgram build()

Returns:

A new Program with values supplied by the Builder.