Program.Builder

public static class Program.Builder
extends Object

java.lang.Object
   ↳ androidx.tvprovider.media.tv.Program.Builder


This Builder class simplifies the creation of a Program object.

Summary

Public constructors

Builder()

Creates a new Builder object.

Builder(Program other)

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

Public methods

Program build()
T extends Builder setAudioLanguages(String[] audioLanguages)

Sets the available audio languages for this program as an array of strings.

Program.Builder setBroadcastGenres(String[] genres)

Sets the broadcast-specified genres of the program.

T extends Builder setCanonicalGenres(String[] genres)

Sets the genres of the program.

Program.Builder setChannelId(long channelId)

Sets the ID of the Channel that contains this program.

T extends Builder setContentRatings(TvContentRating[] contentRatings)

Sets the content ratings for this program.

T extends Builder setDescription(String description)

Sets a brief description of the program.

Program.Builder setEndTimeUtcMillis(long endTimeUtcMillis)

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

T extends Builder setEpisodeNumber(int episodeNumber)

Sets the episode number in a season for this episode for a series.

T extends Builder setEpisodeNumber(String episodeNumber, int numericalEpisodeNumber)

Sets the episode number in a season for this episode for a series.

T extends Builder setEpisodeTitle(String episodeTitle)

Sets the title of this particular episode for a series.

Program.Builder setEventId(int eventId)

Sets the event ID for this program.

</