belongs to Maven artifact com.android.support:support-tv-provider:28.0.0-alpha1
WatchNextProgram.Builder
public
static
final
class
WatchNextProgram.Builder
extends Object
java.lang.Object | |
↳ | android.support.media.tv.WatchNextProgram.Builder |
This Builder class simplifies the creation of a WatchNextProgram
object.
Summary
Public constructors | |
---|---|
WatchNextProgram.Builder()
Creates a new Builder object. |
|
WatchNextProgram.Builder(WatchNextProgram other)
Creates a new Builder object with values copied from another Program. |
Public methods | |
---|---|
WatchNextProgram
|
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. |
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. |
T extends Builder
|
setIntentUri(Uri intentUri)
Sets the intent URI which is launched when the program is selected. |
T extends Builder
|
setInteractionCount(long interactionCount)
Sets the interaction count for this program. |
T extends Builder
|
setInteractionType(int interactionType)
Sets the type of interaction for this TV program. |
T extends Builder
|
setInternalProviderData(byte[] data)
Sets the internal provider data for the program as raw bytes. |
T extends Builder
|
setInternalProviderFlag1(long flag)
Sets the internal provider flag1 for the program. |
T extends Builder
|
setInternalProviderFlag2(long flag)
Sets the internal provider flag2 for the program. |
T extends Builder
|
setInternalProviderFlag3(long flag)
Sets the internal provider flag3 for the program. |
T extends Builder
|
setInternalProviderFlag4(long flag)
Sets the internal provider flag4 for the program. |
T extends Builder
|
setInternalProviderId(String externalId)
Sets external ID for the program. |
T extends Builder
|
setItemCount(int itemCount)
Sets the count of the items included in this TV program. |
WatchNextProgram.Builder
|
setLastEngagementTimeUtcMillis(long lastEngagementTimeUtcMillis)
Sets the time when the program is going to begin in milliseconds since the epoch. |
T extends Builder
|
setLastPlaybackPositionMillis(int position)
Sets the last playback position (in milliseconds) of the preview video. |
T extends Builder
|
setLive(boolean live)
Sets whether this TV program is live or not. |
T extends Builder
|
setLogoContentDescription(String logoContentDescription)
Sets the logo's content description for this program. |
T extends Builder
|
setLogoUri(Uri logoUri)
Sets the URI for the logo of this TV program. |
T extends Builder
|
setLongDescription(String longDescription)
Sets a longer description of a program if one exists. |
T extends Builder
|
setOfferPrice(String price)
Sets the offer price of this TV program. |
T extends Builder
|
setPosterArtAspectRatio(int ratio)
Sets the aspect ratio of the poster art for this TV program. |
T extends Builder
|
setPosterArtUri(Uri posterArtUri)
Sets the large poster art of the program. |
T extends Builder
|
setPreviewAudioUri(Uri previewAudioUri)
Sets a URI for the preview audio. |
T extends Builder
|
setPreviewVideoUri(Uri previewVideoUri)
Sets a URI for the preview video. |
T extends Builder
|
setReleaseDate(String releaseDate)
Sets the release date of this TV program. |
T extends Builder
|
setReleaseDate(Date releaseDate)
Sets the release date of this TV program. |
T extends Builder
|
setReviewRating(String reviewRating)
Sets the review rating score for this program. |
T extends Builder
|
setReviewRatingStyle(int reviewRatingStyle)
Sets the review rating score style used for |
T extends Builder
|
setSearchable(boolean searchable)
Sets whether this channel can be searched for in other applications. |
T extends Builder
|
setSeasonNumber(String seasonNumber, int numericalSeasonNumber)
Sets the season number for this episode for a series. |
T extends Builder
|
setSeasonNumber(int seasonNumber)
Sets the season number for this episode for a series. |
T extends Builder
|
setSeasonTitle(String seasonTitle)
Sets a custom name for the season, if applicable. |
T extends Builder
|
setStartTimeUtcMillis(long startTime)
Sets the start time of the program (for live programs). |
T extends Builder
|
setStartingPrice(String price)
Sets the starting price of this TV program. |
T extends Builder
|
setThumbnailAspectRatio(int ratio)
Sets the aspect ratio of the thumbnail for this TV program. |
T extends Builder
|
setThumbnailUri(Uri thumbnailUri)
Sets a small thumbnail of the program. |
T extends Builder
|
setTitle(String title)
Sets the title of this program. |
T extends Builder
|
setTransient(boolean transientValue)
Sets whether this program is transient or not. |
T extends Builder
|
setType(int type)
Sets the type of this program content. |
T extends Builder
|
setVideoHeight(int height)
Sets the video height of the program. |
T extends Builder
|
setVideoWidth(int width)
Sets the video width of the program. |
WatchNextProgram.Builder
|
setWatchNextType(int watchNextType)
Sets the "watch next" type of this program content. |
Inherited methods | |
---|---|
From
class
java.lang.Object
|
Public constructors
WatchNextProgram.Builder
WatchNextProgram.Builder ()
Creates a new Builder object.
WatchNextProgram.Builder
WatchNextProgram.Builder (WatchNextProgram other)
Creates a new Builder object with values copied from another Program.
Parameters | |
---|---|
other |
WatchNextProgram : The Program you're copying from.
|
Public methods
build
WatchNextProgram build ()
Returns | |
---|---|
WatchNextProgram |
A new Program with values supplied by the Builder. |
setAudioLanguages
T extends Builder setAudioLanguages (String[] audioLanguages)
Sets the available audio languages for this program as an array of strings.
Parameters | |
---|---|
audioLanguages |
String : An array of audio languages, in ISO 639-1 or 639-2/T codes, that
apply to this program which will be stored in a database. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
setAuthor
T extends Builder setAuthor (String author)
Sets the author or artist of this content.
Parameters | |
---|---|
author |
String : The author of the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setAvailability
T extends Builder setAvailability (int availability)
Sets the availability of this TV program.
The value should match one of the followings:
.PreviewPrograms#AVAILABILITY_AVAILABLE
,
.PreviewPrograms#AVAILABILITY_FREE_WITH_SUBSCRIPTION
,
.PreviewPrograms#AVAILABILITY_PAID_CONTENT
,
.PreviewPrograms#AVAILABILITY_PURCHASED
, and
.PreviewPrograms#AVAILABILITY_FREE
.
Parameters | |
---|---|
availability |
int : The availability of the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setCanonicalGenres
T extends Builder setCanonicalGenres (String[] genres)
Sets the genres of the program.
Parameters | |
---|---|
genres |
String : An array of
TvContractCompat.Programs.Genres
that apply to the program which will be flattened to a String to store in a database. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setContentId
T extends Builder setContentId (String contentId)
Sets the content ID for this program.
Parameters | |
---|---|
contentId |
String : The content ID for the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setContentRatings
T extends Builder setContentRatings (TvContentRating[] contentRatings)
Sets the content ratings for this program.
Parameters | |
---|---|
contentRatings |
TvContentRating : An array of TvContentRating that apply to
this program which will be flattened to a String to store in
a database. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setDescription
T extends Builder setDescription (String description)
Sets a brief description of the program. For a series, this would be a brief description of the episode.
Parameters | |
---|---|
description |
String : The short description for the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setDurationMillis
T extends Builder setDurationMillis (int duration)
Sets the last playback duration (in milliseconds) of the preview video.
Parameters | |
---|---|
duration |
int : The duration the program in millis. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setEndTimeUtcMillis
T extends Builder setEndTimeUtcMillis (long endTime)
Sets the end time of the program (for live programs).
Parameters | |
---|---|
endTime |
long : The end time for the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setEpisodeNumber
T extends Builder setEpisodeNumber (int episodeNumber)
Sets the episode number in a season for this episode for a series.
Parameters | |
---|---|
episodeNumber |
int : The value of episode display number for the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setEpisodeNumber
T extends Builder setEpisodeNumber (String episodeNumber, int numericalEpisodeNumber)
Sets the episode number in a season for this episode for a series.
Parameters | |
---|---|
episodeNumber |
String : The value of episode display number for the program. |
numericalEpisodeNumber |
int : An integer value for
COLUMN_EPISODE_NUMBER
which will be used for API Level 23 and below. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
setEpisodeTitle
T extends Builder setEpisodeTitle (String episodeTitle)
Sets the title of this particular episode for a series.
Parameters | |
---|---|
episodeTitle |
String : The episode title for the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setGenre
T extends Builder setGenre (String genre)
Sets the genre for this program.
Parameters | |
---|---|
genre |
String : The genre for the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setId
T extends Builder setId (long programId)
Sets a unique id for this program.
Parameters | |
---|---|
programId |
long : The ID for the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setIntent
T extends Builder setIntent (Intent intent)
Sets the intent which is launched when the program is selected.
Parameters | |
---|---|
intent |
Intent : The Intent to be executed when the preview program is selected |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
setIntentUri
T extends Builder setIntentUri (Uri intentUri)
Sets the intent URI which is launched when the program is selected.
Parameters | |
---|---|
intentUri |
Uri : The intent URI for the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setInteractionCount
T extends Builder setInteractionCount (long interactionCount)
Sets the interaction count for this program.
Parameters | |
---|---|
interactionCount |
long : The interaction count for the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setInteractionType
T extends Builder setInteractionType (int interactionType)
Sets the type of interaction for this TV program.
The value should match one of the followings:
.PreviewPrograms#INTERACTION_TYPE_LISTENS
,
.PreviewPrograms#INTERACTION_TYPE_FOLLOWERS
,
INTERACTION_TYPE_FANS
,
INTERACTION_TYPE_LIKES
,
.PreviewPrograms#INTERACTION_TYPE_THUMBS
,
INTERACTION_TYPE_VIEWS
,
and
.PreviewPrograms#INTERACTION_TYPE_VIEWERS
.
Parameters | |
---|---|
interactionType |
int : The interaction type of the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setInternalProviderData
T extends Builder setInternalProviderData (byte[] data)
Sets the internal provider data for the program as raw bytes.
Parameters | |
---|---|
data |
byte : The internal provider data for the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setInternalProviderFlag1
T extends Builder setInternalProviderFlag1 (long flag)
Sets the internal provider flag1 for the program.
Parameters | |
---|---|
flag |
long : The first internal provider flag for the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setInternalProviderFlag2
T extends Builder setInternalProviderFlag2 (long flag)
Sets the internal provider flag2 for the program.
Parameters | |
---|---|
flag |
long : The second internal provider flag for the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setInternalProviderFlag3
T extends Builder setInternalProviderFlag3 (long flag)
Sets the internal provider flag3 for the program.
Parameters | |
---|---|
flag |
long : The third internal provider flag for the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setInternalProviderFlag4
T extends Builder setInternalProviderFlag4 (long flag)
Sets the internal provider flag4 for the program.
Parameters | |
---|---|
flag |
long : The forth internal provider flag for the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setInternalProviderId
T extends Builder setInternalProviderId (String externalId)
Sets external ID for the program.
Parameters | |
---|---|
externalId |
String : The internal provider ID for the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
setItemCount
T extends Builder setItemCount (int itemCount)
Sets the count of the items included in this TV program.
Parameters | |
---|---|
itemCount |
int : The item count for the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setLastEngagementTimeUtcMillis
WatchNextProgram.Builder setLastEngagementTimeUtcMillis (long lastEngagementTimeUtcMillis)
Sets the time when the program is going to begin in milliseconds since the epoch.
Parameters | |
---|---|
lastEngagementTimeUtcMillis |
long : The value of
COLUMN_LAST_ENGAGEMENT_TIME_UTC_MILLIS for the program. |
Returns | |
---|---|
WatchNextProgram.Builder |
This Builder object to allow for chaining of calls to builder methods. |
setLastPlaybackPositionMillis
T extends Builder setLastPlaybackPositionMillis (int position)
Sets the last playback position (in milliseconds) of the preview video.
Parameters | |
---|---|
position |
int : The last playback posirion for the program in millis. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
setLive
T extends Builder setLive (boolean live)
Sets whether this TV program is live or not.
Parameters | |
---|---|
live |
boolean : Whether the program is live or not. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setLogoContentDescription
T extends Builder setLogoContentDescription (String logoContentDescription)
Sets the logo's content description for this program.
Parameters | |
---|---|
logoContentDescription |
String : The content description for the logo displayed in the
program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
setLogoUri
T extends Builder setLogoUri (Uri logoUri)
Sets the URI for the logo of this TV program.
Parameters | |
---|---|
logoUri |
Uri : The logo URI for the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setLongDescription
T extends Builder setLongDescription (String longDescription)
Sets a longer description of a program if one exists.
Parameters | |
---|---|
longDescription |
String : The long description for the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setOfferPrice
T extends Builder setOfferPrice (String price)
Sets the offer price of this TV program.
Parameters | |
---|---|
price |
String : The offer price of the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setPosterArtAspectRatio
T extends Builder setPosterArtAspectRatio (int ratio)
Sets the aspect ratio of the poster art for this TV program.
The value should match one of the followings:
ASPECT_RATIO_16_9
,
ASPECT_RATIO_3_2
,
ASPECT_RATIO_4_3
,
ASPECT_RATIO_1_1
,
ASPECT_RATIO_2_3
, and
.PreviewPrograms#ASPECT_RATIO_MOVIE_POSTER
.
Parameters | |
---|---|
ratio |
int : The poster art aspect ratio for the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
setPosterArtUri
T extends Builder setPosterArtUri (Uri posterArtUri)
Sets the large poster art of the program.
Parameters | |
---|---|
posterArtUri |
Uri : The poster art URI for the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setPreviewAudioUri
T extends Builder setPreviewAudioUri (Uri previewAudioUri)
Sets a URI for the preview audio.
Parameters | |
---|---|
previewAudioUri |
Uri : The preview audio URI for the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setPreviewVideoUri
T extends Builder setPreviewVideoUri (Uri previewVideoUri)
Sets a URI for the preview video.
Parameters | |
---|---|
previewVideoUri |
Uri : The preview video URI for the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setReleaseDate
T extends Builder setReleaseDate (String releaseDate)
Sets the release date of this TV program.
The value should be in one of the following formats: "yyyy", "yyyy-MM-dd", and "yyyy-MM-ddTHH:mm:ssZ" (UTC in ISO 8601).
Parameters | |
---|---|
releaseDate |
String : The release date of the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setReleaseDate
T extends Builder setReleaseDate (Date releaseDate)
Sets the release date of this TV program.
Parameters | |
---|---|
releaseDate |
Date : The release date of the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setReviewRating
T extends Builder setReviewRating (String reviewRating)
Sets the review rating score for this program.
The format of the value is dependent on the review rating style. If the style is based on "stars", the value should be a real number between 0.0 and 5.0. (e.g. "4.5") If the style is based on "thumbs up/down", the value should be two integers, one for thumbs-up count and the other for thumbs-down count, with a comma between them. (e.g. "200,40") If the style is base on "percentage", the value should be a real number between 0 and 100. (e.g. "99.9")
Parameters | |
---|---|
reviewRating |
String : The value of the review rating for the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
setReviewRatingStyle
T extends Builder setReviewRatingStyle (int reviewRatingStyle)
Sets the review rating score style used for setReviewRating(String)
.
Parameters | |
---|---|
reviewRatingStyle |
int : The reviewing rating style for the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
setSearchable
T extends Builder setSearchable (boolean searchable)
Sets whether this channel can be searched for in other applications.
Parameters | |
---|---|
searchable |
boolean : Whether the program is searchable or not. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setSeasonNumber
T extends Builder setSeasonNumber (String seasonNumber, int numericalSeasonNumber)
Sets the season number for this episode for a series.
Parameters | |
---|---|
seasonNumber |
String : The season display number for the program. |
numericalSeasonNumber |
int : An integer value for
COLUMN_SEASON_NUMBER
which will be used for API Level 23 and below. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
setSeasonNumber
T extends Builder setSeasonNumber (int seasonNumber)
Sets the season number for this episode for a series.
Parameters | |
---|---|
seasonNumber |
int : The season display number for the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setSeasonTitle
T extends Builder setSeasonTitle (String seasonTitle)
Sets a custom name for the season, if applicable.
Parameters | |
---|---|
seasonTitle |
String : The season title for the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setStartTimeUtcMillis
T extends Builder setStartTimeUtcMillis (long startTime)
Sets the start time of the program (for live programs).
Parameters | |
---|---|
startTime |
long : The start time for the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
setStartingPrice
T extends Builder setStartingPrice (String price)
Sets the starting price of this TV program.
Parameters | |
---|---|
price |
String : The starting price of the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setThumbnailAspectRatio
T extends Builder setThumbnailAspectRatio (int ratio)
Sets the aspect ratio of the thumbnail for this TV program.
The value should match one of the followings:
ASPECT_RATIO_16_9
,
ASPECT_RATIO_3_2
,
ASPECT_RATIO_4_3
,
ASPECT_RATIO_1_1
,
ASPECT_RATIO_2_3
, and
.PreviewPrograms#ASPECT_RATIO_MOVIE_POSTER
.
Parameters | |
---|---|
ratio |
int : The thumbnail aspect ratio of the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
setThumbnailUri
T extends Builder setThumbnailUri (Uri thumbnailUri)
Sets a small thumbnail of the program.
Parameters | |
---|---|
thumbnailUri |
Uri : The thumbnail URI for the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setTitle
T extends Builder setTitle (String title)
Sets the title of this program. For a series, this is the series title.
Parameters | |
---|---|
title |
String : The title for the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setTransient
T extends Builder setTransient (boolean transientValue)
Sets whether this program is transient or not.
Parameters | |
---|---|
transientValue |
boolean : Whether the program is transient or not. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setType
T extends Builder setType (int type)
Sets the type of this program content.
The value should match one of the followings:
TYPE_MOVIE
,
TYPE_TV_SERIES
,
TYPE_TV_SEASON
,
TYPE_TV_EPISODE
,
TYPE_CLIP
,
TYPE_EVENT
,
TYPE_CHANNEL
,
TYPE_TRACK
,
TYPE_ALBUM
,
TYPE_ARTIST
,
TYPE_PLAYLIST
,
TYPE_STATION
, and
TYPE_GAME
.
Parameters | |
---|---|
type |
int : The type of the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setVideoHeight
T extends Builder setVideoHeight (int height)
Sets the video height of the program.
Parameters | |
---|---|
height |
int : The video height for the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setVideoWidth
T extends Builder setVideoWidth (int width)
Sets the video width of the program.
Parameters | |
---|---|
width |
int : The video width for the program. |
Returns | |
---|---|
T extends Builder |
This Builder object to allow for chaining of calls to builder methods. |
See also:
setWatchNextType
WatchNextProgram.Builder setWatchNextType (int watchNextType)
Sets the "watch next" type of this program content.
The value should match one of the followings:
WATCH_NEXT_TYPE_CONTINUE
,
WATCH_NEXT_TYPE_NEXT
, and
WATCH_NEXT_TYPE_NEW
.
Parameters | |
---|---|
watchNextType |
int : The value of COLUMN_WATCH_NEXT_TYPE for
the program. |
Returns | |
---|---|
WatchNextProgram.Builder |
This Builder object to allow for chaining of calls to builder methods. |
Interfaces
Classes
- Channel
- Channel.Builder
- ChannelLogoUtils
- PreviewProgram
- PreviewProgram.Builder
- Program
- Program.Builder
- R
- R.attr
- R.bool
- R.color
- R.dimen
- R.drawable
- R.id
- R.integer
- R.layout
- R.string
- R.style
- R.styleable
- TvContractCompat
- TvContractCompat.Channels
- TvContractCompat.Channels.Logo
- TvContractCompat.PreviewPrograms
- TvContractCompat.Programs
- TvContractCompat.Programs.Genres
- TvContractCompat.RecordedPrograms
- TvContractCompat.WatchNextPrograms
- WatchNextProgram
- WatchNextProgram.Builder