belongs to Maven artifact com.android.support:support-tv-provider:28.0.0-alpha1
PreviewProgram.Builder
public
static
final
class
PreviewProgram.Builder
extends Object
java.lang.Object | |
↳ | android.support.media.tv.PreviewProgram.Builder |
This Builder class simplifies the creation of a PreviewProgram
object.
Summary
Public constructors | |
---|---|
PreviewProgram.Builder()
Creates a new Builder object. |
|
PreviewProgram.Builder(PreviewProgram other)
Creates a new Builder object with values copied from another Program. |
Public methods | |
---|---|
PreviewProgram
|
build()
|
T extends Builder
|
setAudioLanguages(String[] audioLanguages)
Sets the available audio languages for this program as an array of strings. |
T extends Builder
|
setAuthor(String author)
Sets the author or artist of this content. |
T extends Builder
|
setAvailability(int availability)
Sets the availability of this TV program. |
T extends Builder
|
setCanonicalGenres(String[] genres)
Sets the genres of the program. |
PreviewProgram.Builder
|
setChannelId(long channelId)
Sets the ID of the |
T extends Builder
|
setContentId(String contentId)
Sets the content ID for 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. |
T extends Builder
|
setDurationMillis(int duration)
Sets the last playback duration (in milliseconds) of the preview video. |
T extends Builder
|
setEndTimeUtcMillis(long endTime)
Sets the end time of the program (for live programs). |
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. |
T extends Builder
|
setGenre(String genre)
Sets the genre for this program. |
T extends Builder
|
setId(long programId)
Sets a unique id for this program. |
T extends Builder
|
setIntent(Intent intent)
Sets the intent which is launched when the program is selected. |
|