# PreviewProgram.Builder

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  
belongs to Maven artifact com.android.support:support-tv-provider:28.0.0-alpha1  
Summary:[Ctors](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#pubctors)\|[Methods](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#)  

# PreviewProgram.Builder

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

`
public
static
final

class
PreviewProgram.Builder
`  
`

extends Object


``


`

|---|-------------------------------------------------|
| java.lang.Object                                   ||
| ↳ | android.support.media.tv.PreviewProgram.Builder |

<br />

*** ** * ** ***

This Builder class simplifies the creation of a[PreviewProgram](https://developer.android.com/reference/android/support/media/tv/PreviewProgram)object.

## Summary

|                                                                                                                                                                           ### Public constructors                                                                                                                                                                           ||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[PreviewProgram.Builder](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#PreviewProgram.Builder())`() ` Creates a new Builder object.                                                                                                                                                                                         |
| ` `[PreviewProgram.Builder](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#PreviewProgram.Builder(android.support.media.tv.PreviewProgram))`(`[PreviewProgram](https://developer.android.com/reference/android/support/media/tv/PreviewProgram)` other) ` Creates a new Builder object with values copied from another Program. |

|                                                                                                                                                                                                                                      ### Public methods                                                                                                                                                                                                                                       ||
|----------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` `[PreviewProgram](https://developer.android.com/reference/android/support/media/tv/PreviewProgram)                 | ` `[build](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#build())`() `                                                                                                                                                                                                                                                        |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder)         | ` `[setAudioLanguages](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setAudioLanguages(java.lang.String[]))`(String[] audioLanguages) ` Sets the available audio languages for this program as an array of strings.                                                                                                           |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder)  | ` `[setAuthor](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setAuthor(java.lang.String))`(String author) ` Sets the author or artist of this content.                                                                                                                                                                        |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder)  | ` `[setAvailability](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setAvailability(int))`(int availability) ` Sets the availability of this TV program.                                                                                                                                                                       |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder)         | ` `[setCanonicalGenres](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setCanonicalGenres(java.lang.String[]))`(String[] genres) ` Sets the genres of the program.                                                                                                                                                             |
| ` `[PreviewProgram.Builder](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder) | ` `[setChannelId](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setChannelId(long))`(long channelId) ` Sets the ID of the[Channel](https://developer.android.com/reference/android/support/media/tv/Channel)that contains this program.                                                                                       |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder)  | ` `[setContentId](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setContentId(java.lang.String))`(String contentId) ` Sets the content ID for this program.                                                                                                                                                                    |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder)         | ` `[setContentRatings](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setContentRatings(android.media.tv.TvContentRating[]))`(`[TvContentRating[]](https://developer.android.com/reference/android/media/tv/TvContentRating.html)` contentRatings) ` Sets the content ratings for this program.                                |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder)         | ` `[setDescription](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setDescription(java.lang.String))`(String description) ` Sets a brief description of the program.                                                                                                                                                           |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder)  | ` `[setDurationMillis](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setDurationMillis(int))`(int duration) ` Sets the last playback duration (in milliseconds) of the preview video.                                                                                                                                         |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder)  | ` `[setEndTimeUtcMillis](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setEndTimeUtcMillis(long))`(long endTime) ` Sets the end time of the program (for live programs).                                                                                                                                                      |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder)         | ` `[setEpisodeNumber](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setEpisodeNumber(int))`(int episodeNumber) ` Sets the episode number in a season for this episode for a series.                                                                                                                                           |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder)         | ` `[setEpisodeNumber](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setEpisodeNumber(java.lang.String, int))`(String episodeNumber, int numericalEpisodeNumber) ` Sets the episode number in a season for this episode for a series.                                                                                          |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder)         | ` `[setEpisodeTitle](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setEpisodeTitle(java.lang.String))`(String episodeTitle) ` Sets the title of this particular episode for a series.                                                                                                                                         |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder)  | ` `[setGenre](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setGenre(java.lang.String))`(String genre) ` Sets the genre for this program.                                                                                                                                                                                     |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder)         | ` `[setId](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setId(long))`(long programId) ` Sets a unique id for this program.                                                                                                                                                                                                   |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder)  | ` `[setIntent](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setIntent(android.content.Intent))`(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` intent) ` Sets the intent which is launched when the program is selected.                                                                    |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder)  | ` `[setIntentUri](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setIntentUri(android.net.Uri))`(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` intentUri) ` Sets the intent URI which is launched when the program is selected.                                                                        |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder)  | ` `[setInteractionCount](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setInteractionCount(long))`(long interactionCount) ` Sets the interaction count for this program.                                                                                                                                                      |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder)  | ` `[setInteractionType](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setInteractionType(int))`(int interactionType) ` Sets the type of interaction for this TV program.                                                                                                                                                      |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder)         | ` `[setInternalProviderData](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setInternalProviderData(byte[]))`(byte[] data) ` Sets the internal provider data for the program as raw bytes.                                                                                                                                     |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder)         | ` `[setInternalProviderFlag1](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setInternalProviderFlag1(long))`(long flag) ` Sets the internal provider flag1 for the program.                                                                                                                                                   |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder)         | ` `[setInternalProviderFlag2](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setInternalProviderFlag2(long))`(long flag) ` Sets the internal provider flag2 for the program.                                                                                                                                                   |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder)         | ` `[setInternalProviderFlag3](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setInternalProviderFlag3(long))`(long flag) ` Sets the internal provider flag3 for the program.                                                                                                                                                   |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder)         | ` `[setInternalProviderFlag4](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setInternalProviderFlag4(long))`(long flag) ` Sets the internal provider flag4 for the program.                                                                                                                                                   |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder)  | ` `[setInternalProviderId](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setInternalProviderId(java.lang.String))`(String externalId) ` Sets external ID for the program.                                                                                                                                                     |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder)  | ` `[setItemCount](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setItemCount(int))`(int itemCount) ` Sets the count of the items included in this TV program.                                                                                                                                                                 |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder)  | ` `[setLastPlaybackPositionMillis](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setLastPlaybackPositionMillis(int))`(int position) ` Sets the last playback position (in milliseconds) of the preview video.                                                                                                                 |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder)  | ` `[setLive](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setLive(boolean))`(boolean live) ` Sets whether this TV program is live or not.                                                                                                                                                                                    |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder)  | ` `[setLogoContentDescription](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setLogoContentDescription(java.lang.String))`(String logoContentDescription) ` Sets the logo's content description for this program.                                                                                                             |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder)  | ` `[setLogoUri](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setLogoUri(android.net.Uri))`(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` logoUri) ` Sets the URI for the logo of this TV program.                                                                                                    |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder)         | ` `[setLongDescription](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setLongDescription(java.lang.String))`(String longDescription) ` Sets a longer description of a program if one exists.                                                                                                                                  |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder)  | ` `[setOfferPrice](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setOfferPrice(java.lang.String))`(String price) ` Sets the offer price of this TV program.                                                                                                                                                                   |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder)  | ` `[setPosterArtAspectRatio](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setPosterArtAspectRatio(int))`(int ratio) ` Sets the aspect ratio of the poster art for this TV program.                                                                                                                                           |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder)         | ` `[setPosterArtUri](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setPosterArtUri(android.net.Uri))`(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` posterArtUri) ` Sets the large poster art of the program.                                                                                         |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder)  | ` `[setPreviewAudioUri](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setPreviewAudioUri(android.net.Uri))`(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` previewAudioUri) ` Sets a URI for the preview audio.                                                                                        |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder)  | ` `[setPreviewVideoUri](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setPreviewVideoUri(android.net.Uri))`(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` previewVideoUri) ` Sets a URI for the preview video.                                                                                        |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder)  | ` `[setReleaseDate](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setReleaseDate(java.lang.String))`(String releaseDate) ` Sets the release date of this TV program.                                                                                                                                                          |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder)  | ` `[setReleaseDate](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setReleaseDate(java.util.Date))`(Date releaseDate) ` Sets the release date of this TV program.                                                                                                                                                              |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder)         | ` `[setReviewRating](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setReviewRating(java.lang.String))`(String reviewRating) ` Sets the review rating score for this program.                                                                                                                                                  |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder)         | ` `[setReviewRatingStyle](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setReviewRatingStyle(int))`(int reviewRatingStyle) ` Sets the review rating score style used for[setReviewRating(String)](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setReviewRating(java.lang.String)). |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder)         | ` `[setSearchable](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setSearchable(boolean))`(boolean searchable) ` Sets whether this channel can be searched for in other applications.                                                                                                                                          |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder)         | ` `[setSeasonNumber](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setSeasonNumber(java.lang.String, int))`(String seasonNumber, int numericalSeasonNumber) ` Sets the season number for this episode for a series.                                                                                                           |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder)         | ` `[setSeasonNumber](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setSeasonNumber(int))`(int seasonNumber) ` Sets the season number for this episode for a series.                                                                                                                                                           |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder)         | ` `[setSeasonTitle](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setSeasonTitle(java.lang.String))`(String seasonTitle) ` Sets a custom name for the season, if applicable.                                                                                                                                                  |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder)  | ` `[setStartTimeUtcMillis](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setStartTimeUtcMillis(long))`(long startTime) ` Sets the start time of the program (for live programs).                                                                                                                                              |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder)  | ` `[setStartingPrice](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setStartingPrice(java.lang.String))`(String price) ` Sets the starting price of this TV program.                                                                                                                                                          |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder)  | ` `[setThumbnailAspectRatio](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setThumbnailAspectRatio(int))`(int ratio) ` Sets the aspect ratio of the thumbnail for this TV program.                                                                                                                                            |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder)         | ` `[setThumbnailUri](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setThumbnailUri(android.net.Uri))`(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` thumbnailUri) ` Sets a small thumbnail of the program.                                                                                            |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder)         | ` `[setTitle](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setTitle(java.lang.String))`(String title) ` Sets the title of this program.                                                                                                                                                                                      |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder)  | ` `[setTransient](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setTransient(boolean))`(boolean transientValue) ` Sets whether this program is transient or not.                                                                                                                                                              |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder)  | ` `[setType](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setType(int))`(int type) ` Sets the type of this program content.                                                                                                                                                                                                  |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder)         | ` `[setVideoHeight](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setVideoHeight(int))`(int height) ` Sets the video height of the program.                                                                                                                                                                                   |
| ` T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder)         | ` `[setVideoWidth](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setVideoWidth(int))`(int width) ` Sets the video width of the program.                                                                                                                                                                                       |
| ` `[PreviewProgram.Builder](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder) | ` `[setWeight](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setWeight(int))`(int weight) ` Sets the weight of the preview program within the channel.                                                                                                                                                                        |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#)From class` java.lang.Object ` |-------------------|-------------------------------| | ` Object`         | ` clone() `                   | | ` boolean`        | ` equals(Object arg0) `       | | ` void`           | ` finalize() `                | | ` final Class<?>` | ` getClass() `                | | ` int`            | ` hashCode() `                | | ` final void`     | ` notify() `                  | | ` final void`     | ` notifyAll() `               | | ` String`         | ` toString() `                | | ` final void`     | ` wait(long arg0, int arg1) ` | | ` final void`     | ` wait(long arg0) `           | | ` final void`     | ` wait() `                    | ||

## Public constructors

### PreviewProgram.Builder

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
PreviewProgram.Builder ()
```

Creates a new Builder object.

<br />

### PreviewProgram.Builder

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
PreviewProgram.Builder (PreviewProgram other)
```

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

<br />

|                             Parameters                             ||
|---------|-----------------------------------------------------------|
| `other` | `PreviewProgram`: The Program you're copying from. <br /> |

## Public methods

### build

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
PreviewProgram build ()
```

<br />

<br />

|                                                                           Returns                                                                            ||
|---------------------------------------------------------------------------------------------------|-----------------------------------------------------------|
| [PreviewProgram](https://developer.android.com/reference/android/support/media/tv/PreviewProgram) | A new Program with values supplied by the Builder. <br /> |

### setAudioLanguages

```
T extends Builder setAudioLanguages (String[] audioLanguages)
```

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

<br />

|                                                                          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. <br /> |

|                                                                                          Returns                                                                                           ||
|-------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

### setAuthor

```
T extends Builder setAuthor (String author)
```

Sets the author or artist of this content.

<br />

|                      Parameters                       ||
|----------|---------------------------------------------|
| `author` | `String`: The author of the program. <br /> |

|                                                                                              Returns                                                                                              ||
|--------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_AUTHOR](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#COLUMN_AUTHOR)  

### 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](https://developer.android.com/reference/android/support/media/tv/TvContractCompat),[.PreviewPrograms#AVAILABILITY_FREE_WITH_SUBSCRIPTION](https://developer.android.com/reference/android/support/media/tv/TvContractCompat),[.PreviewPrograms#AVAILABILITY_PAID_CONTENT](https://developer.android.com/reference/android/support/media/tv/TvContractCompat),[.PreviewPrograms#AVAILABILITY_PURCHASED](https://developer.android.com/reference/android/support/media/tv/TvContractCompat), and[.PreviewPrograms#AVAILABILITY_FREE](https://developer.android.com/reference/android/support/media/tv/TvContractCompat).

<br />

|                           Parameters                           ||
|----------------|------------------------------------------------|
| `availability` | `int`: The availability of the program. <br /> |

|                                                                                              Returns                                                                                              ||
|--------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_AVAILABILITY](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#COLUMN_AVAILABILITY)  

### setCanonicalGenres

```
T extends Builder setCanonicalGenres (String[] genres)
```

Sets the genres of the program.

<br />

|                                                                                                                            Parameters                                                                                                                            ||
|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `genres` | `String`: An array of[TvContractCompat.Programs.Genres](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Programs.Genres)that apply to the program which will be flattened to a String to store in a database. <br /> |

|                                                                                          Returns                                                                                           ||
|-------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_CANONICAL_GENRE](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Programs#COLUMN_CANONICAL_GENRE)  

### setChannelId

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
PreviewProgram.Builder setChannelId (long channelId)
```

Sets the ID of the[Channel](https://developer.android.com/reference/android/support/media/tv/Channel)that contains this program.

<br />

|                                             Parameters                                             ||
|-------------|---------------------------------------------------------------------------------------|
| `channelId` | `long`: The value of {@link PreviewPrograms#COLUMN_CHANNEL_ID for the program. <br /> |

|                                                                                             Returns                                                                                              ||
|-------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| [PreviewProgram.Builder](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

### setContentId

```
T extends Builder setContentId (String contentId)
```

Sets the content ID for this program.

<br />

|                          Parameters                           ||
|-------------|--------------------------------------------------|
| `contentId` | `String`: The content ID for the program. <br /> |

|                                                                                              Returns                                                                                              ||
|--------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_CONTENT_ID](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#COLUMN_CONTENT_ID)  

### setContentRatings

```
T extends Builder setContentRatings (TvContentRating[] contentRatings)
```

Sets the content ratings for this program.

<br />

|                                                                                                                  Parameters                                                                                                                   ||
|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `contentRatings` | `TvContentRating`: An array of[TvContentRating](https://developer.android.com/reference/android/media/tv/TvContentRating.html)that apply to this program which will be flattened to a String to store in a database. <br /> |

|                                                                                          Returns                                                                                           ||
|-------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_CONTENT_RATING](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Programs#COLUMN_CONTENT_RATING)  

### 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.

<br />

|                               Parameters                               ||
|---------------|---------------------------------------------------------|
| `description` | `String`: The short description for the program. <br /> |

|                                                                                          Returns                                                                                           ||
|-------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_SHORT_DESCRIPTION](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Programs#COLUMN_SHORT_DESCRIPTION)  

### setDurationMillis

```
T extends Builder setDurationMillis (int duration)
```

Sets the last playback duration (in milliseconds) of the preview video.

<br />

|                          Parameters                           ||
|------------|---------------------------------------------------|
| `duration` | `int`: The duration the program in millis. <br /> |

|                                                                                              Returns                                                                                              ||
|--------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_DURATION_MILLIS](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#COLUMN_DURATION_MILLIS)  

### setEndTimeUtcMillis

```
T extends Builder setEndTimeUtcMillis (long endTime)
```

Sets the end time of the program (for live programs).

<br />

|                       Parameters                        ||
|-----------|----------------------------------------------|
| `endTime` | `long`: The end time for the program. <br /> |

|                                                                                              Returns                                                                                              ||
|--------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_END_TIME_UTC_MILLIS](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#COLUMN_END_TIME_UTC_MILLIS)  

### setEpisodeNumber

```
T extends Builder setEpisodeNumber (int episodeNumber)
```

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

<br />

|                                     Parameters                                      ||
|-----------------|--------------------------------------------------------------------|
| `episodeNumber` | `int`: The value of episode display number for the program. <br /> |

|                                                                                          Returns                                                                                           ||
|-------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_EPISODE_DISPLAY_NUMBER](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Programs#COLUMN_EPISODE_DISPLAY_NUMBER)  

### setEpisodeNumber

```
T extends Builder setEpisodeNumber (String episodeNumber, 
                int numericalEpisodeNumber)
```

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

<br />

|                                                                                                                     Parameters                                                                                                                      ||
|--------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `episodeNumber`          | `String`: The value of episode display number for the program. <br />                                                                                                                                                     |
| `numericalEpisodeNumber` | `int`: An integer value for[COLUMN_EPISODE_NUMBER](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Programs#COLUMN_EPISODE_NUMBER)which will be used for API Level 23 and below. <br /> |

|                                                                                          Returns                                                                                           ||
|-------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_EPISODE_DISPLAY_NUMBER](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Programs#COLUMN_EPISODE_DISPLAY_NUMBER)
- [COLUMN_EPISODE_NUMBER](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Programs#COLUMN_EPISODE_NUMBER)  

### setEpisodeTitle

```
T extends Builder setEpisodeTitle (String episodeTitle)
```

Sets the title of this particular episode for a series.

<br />

|                             Parameters                              ||
|----------------|-----------------------------------------------------|
| `episodeTitle` | `String`: The episode title for the program. <br /> |

|                                                                                          Returns                                                                                           ||
|-------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_EPISODE_TITLE](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Programs#COLUMN_EPISODE_TITLE)  

### setGenre

```
T extends Builder setGenre (String genre)
```

Sets the genre for this program.

<br />

|                      Parameters                      ||
|---------|---------------------------------------------|
| `genre` | `String`: The genre for the program. <br /> |

|                                                                                              Returns                                                                                              ||
|--------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_GENRE](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#COLUMN_GENRE)  

### setId

```
T extends Builder setId (long programId)
```

Sets a unique id for this program.

<br />

|                     Parameters                      ||
|-------------|----------------------------------------|
| `programId` | `long`: The ID for the program. <br /> |

|                                                                                          Returns                                                                                           ||
|-------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [_ID](https://developer.android.com/https://developer.android.com/reference/android/provider/BaseColumns#_ID)  

### setIntent

```
T extends Builder setIntent (Intent intent)
```

Sets the intent which is launched when the program is selected.

<br />

|                                        Parameters                                         ||
|----------|---------------------------------------------------------------------------------|
| `intent` | `Intent`: The Intent to be executed when the preview program is selected <br /> |

|                                                                                              Returns                                                                                              ||
|--------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

### setIntentUri

```
T extends Builder setIntentUri (Uri intentUri)
```

Sets the intent URI which is launched when the program is selected.

<br />

|                         Parameters                         ||
|-------------|-----------------------------------------------|
| `intentUri` | `Uri`: The intent URI for the program. <br /> |

|                                                                                              Returns                                                                                              ||
|--------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_INTENT_URI](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#COLUMN_INTENT_URI)  

### setInteractionCount

```
T extends Builder setInteractionCount (long interactionCount)
```

Sets the interaction count for this program.

<br />

|                                Parameters                                 ||
|--------------------|-------------------------------------------------------|
| `interactionCount` | `long`: The interaction count for the program. <br /> |

|                                                                                              Returns                                                                                              ||
|--------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_INTERACTION_COUNT](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#COLUMN_INTERACTION_COUNT)  

### 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](https://developer.android.com/reference/android/support/media/tv/TvContractCompat),[.PreviewPrograms#INTERACTION_TYPE_FOLLOWERS](https://developer.android.com/reference/android/support/media/tv/TvContractCompat),[INTERACTION_TYPE_FANS](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#INTERACTION_TYPE_FANS),[INTERACTION_TYPE_LIKES](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#INTERACTION_TYPE_LIKES),[.PreviewPrograms#INTERACTION_TYPE_THUMBS](https://developer.android.com/reference/android/support/media/tv/TvContractCompat),[INTERACTION_TYPE_VIEWS](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#INTERACTION_TYPE_VIEWS), and[.PreviewPrograms#INTERACTION_TYPE_VIEWERS](https://developer.android.com/reference/android/support/media/tv/TvContractCompat).

<br />

|                              Parameters                               ||
|-------------------|----------------------------------------------------|
| `interactionType` | `int`: The interaction type of the program. <br /> |

|                                                                                              Returns                                                                                              ||
|--------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_INTERACTION_TYPE](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#COLUMN_INTERACTION_TYPE)  

### setInternalProviderData

```
T extends Builder setInternalProviderData (byte[] data)
```

Sets the internal provider data for the program as raw bytes.

<br />

|                             Parameters                             ||
|--------|------------------------------------------------------------|
| `data` | `byte`: The internal provider data for the program. <br /> |

|                                                                                          Returns                                                                                           ||
|-------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_INTERNAL_PROVIDER_DATA](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Programs#COLUMN_INTERNAL_PROVIDER_DATA)  

### setInternalProviderFlag1

```
T extends Builder setInternalProviderFlag1 (long flag)
```

Sets the internal provider flag1 for the program.

<br />

|                                Parameters                                ||
|--------|------------------------------------------------------------------|
| `flag` | `long`: The first internal provider flag for the program. <br /> |

|                                                                                          Returns                                                                                           ||
|-------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_INTERNAL_PROVIDER_FLAG1](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Programs#COLUMN_INTERNAL_PROVIDER_FLAG1)  

### setInternalProviderFlag2

```
T extends Builder setInternalProviderFlag2 (long flag)
```

Sets the internal provider flag2 for the program.

<br />

|                                Parameters                                 ||
|--------|-------------------------------------------------------------------|
| `flag` | `long`: The second internal provider flag for the program. <br /> |

|                                                                                          Returns                                                                                           ||
|-------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_INTERNAL_PROVIDER_FLAG2](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Programs#COLUMN_INTERNAL_PROVIDER_FLAG2)  

### setInternalProviderFlag3

```
T extends Builder setInternalProviderFlag3 (long flag)
```

Sets the internal provider flag3 for the program.

<br />

|                                Parameters                                ||
|--------|------------------------------------------------------------------|
| `flag` | `long`: The third internal provider flag for the program. <br /> |

|                                                                                          Returns                                                                                           ||
|-------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_INTERNAL_PROVIDER_FLAG3](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Programs#COLUMN_INTERNAL_PROVIDER_FLAG3)  

### setInternalProviderFlag4

```
T extends Builder setInternalProviderFlag4 (long flag)
```

Sets the internal provider flag4 for the program.

<br />

|                                Parameters                                ||
|--------|------------------------------------------------------------------|
| `flag` | `long`: The forth internal provider flag for the program. <br /> |

|                                                                                          Returns                                                                                           ||
|-------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_INTERNAL_PROVIDER_FLAG4](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Programs#COLUMN_INTERNAL_PROVIDER_FLAG4)  

### setInternalProviderId

```
T extends Builder setInternalProviderId (String externalId)
```

Sets external ID for the program.

<br />

|                                Parameters                                ||
|--------------|------------------------------------------------------------|
| `externalId` | `String`: The internal provider ID for the program. <br /> |

|                                                                                              Returns                                                                                              ||
|--------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [.PreviewPrograms#COLUMN_INTERNAL_PROVIDER_ID](https://developer.android.com/reference/android/support/media/tv/TvContractCompat)  

### setItemCount

```
T extends Builder setItemCount (int itemCount)
```

Sets the count of the items included in this TV program.

<br />

|                         Parameters                         ||
|-------------|-----------------------------------------------|
| `itemCount` | `int`: The item count for the program. <br /> |

|                                                                                              Returns                                                                                              ||
|--------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_ITEM_COUNT](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#COLUMN_ITEM_COUNT)  

### setLastPlaybackPositionMillis

```
T extends Builder setLastPlaybackPositionMillis (int position)
```

Sets the last playback position (in milliseconds) of the preview video.

<br />

|                                   Parameters                                    ||
|------------|---------------------------------------------------------------------|
| `position` | `int`: The last playback posirion for the program in millis. <br /> |

|                                                                                              Returns                                                                                              ||
|--------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [.PreviewPrograms#COLUMN_LAST_PLAYBACK_POSITION_MILLIS](https://developer.android.com/reference/android/support/media/tv/TvContractCompat)  

### setLive

```
T extends Builder setLive (boolean live)
```

Sets whether this TV program is live or not.

<br />

|                          Parameters                           ||
|--------|-------------------------------------------------------|
| `live` | `boolean`: Whether the program is live or not. <br /> |

|                                                                                              Returns                                                                                              ||
|--------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_LIVE](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#COLUMN_LIVE)  

### setLogoContentDescription

```
T extends Builder setLogoContentDescription (String logoContentDescription)
```

Sets the logo's content description for this program.

<br />

|                                                Parameters                                                 ||
|--------------------------|---------------------------------------------------------------------------------|
| `logoContentDescription` | `String`: The content description for the logo displayed in the program. <br /> |

|                                                                                              Returns                                                                                              ||
|--------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [.PreviewPrograms#COLUMN_LOGO_CONTENT_DESCRIPTION](https://developer.android.com/reference/android/support/media/tv/TvContractCompat)
- [COLUMN_LOGO_URI](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#COLUMN_LOGO_URI)  

### setLogoUri

```
T extends Builder setLogoUri (Uri logoUri)
```

Sets the URI for the logo of this TV program.

<br />

|                       Parameters                       ||
|-----------|---------------------------------------------|
| `logoUri` | `Uri`: The logo URI for the program. <br /> |

|                                                                                              Returns                                                                                              ||
|--------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_LOGO_URI](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#COLUMN_LOGO_URI)  

### setLongDescription

```
T extends Builder setLongDescription (String longDescription)
```

Sets a longer description of a program if one exists.

<br />

|                                Parameters                                 ||
|-------------------|--------------------------------------------------------|
| `longDescription` | `String`: The long description for the program. <br /> |

|                                                                                          Returns                                                                                           ||
|-------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_LONG_DESCRIPTION](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Programs#COLUMN_LONG_DESCRIPTION)  

### setOfferPrice

```
T extends Builder setOfferPrice (String price)
```

Sets the offer price of this TV program.

<br />

|                        Parameters                         ||
|---------|--------------------------------------------------|
| `price` | `String`: The offer price of the program. <br /> |

|                                                                                              Returns                                                                                              ||
|--------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_OFFER_PRICE](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#COLUMN_OFFER_PRICE)  

### 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](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#ASPECT_RATIO_16_9),[ASPECT_RATIO_3_2](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#ASPECT_RATIO_3_2),[ASPECT_RATIO_4_3](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#ASPECT_RATIO_4_3),[ASPECT_RATIO_1_1](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#ASPECT_RATIO_1_1),[ASPECT_RATIO_2_3](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#ASPECT_RATIO_2_3), and[.PreviewPrograms#ASPECT_RATIO_MOVIE_POSTER](https://developer.android.com/reference/android/support/media/tv/TvContractCompat).

<br />

|                             Parameters                              ||
|---------|------------------------------------------------------------|
| `ratio` | `int`: The poster art aspect ratio for the program. <br /> |

|                                                                                              Returns                                                                                              ||
|--------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [.PreviewPrograms#COLUMN_POSTER_ART_ASPECT_RATIO](https://developer.android.com/reference/android/support/media/tv/TvContractCompat)
- [COLUMN_POSTER_ART_URI](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#COLUMN_POSTER_ART_URI)  

### setPosterArtUri

```
T extends Builder setPosterArtUri (Uri posterArtUri)
```

Sets the large poster art of the program.

<br />

|                            Parameters                             ||
|----------------|---------------------------------------------------|
| `posterArtUri` | `Uri`: The poster art URI for the program. <br /> |

|                                                                                          Returns                                                                                           ||
|-------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_POSTER_ART_URI](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Programs#COLUMN_POSTER_ART_URI)  

### setPreviewAudioUri

```
T extends Builder setPreviewAudioUri (Uri previewAudioUri)
```

Sets a URI for the preview audio.

<br />

|                               Parameters                                ||
|-------------------|------------------------------------------------------|
| `previewAudioUri` | `Uri`: The preview audio URI for the program. <br /> |

|                                                                                              Returns                                                                                              ||
|--------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_PREVIEW_AUDIO_URI](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#COLUMN_PREVIEW_AUDIO_URI)  

### setPreviewVideoUri

```
T extends Builder setPreviewVideoUri (Uri previewVideoUri)
```

Sets a URI for the preview video.

<br />

|                               Parameters                                ||
|-------------------|------------------------------------------------------|
| `previewVideoUri` | `Uri`: The preview video URI for the program. <br /> |

|                                                                                              Returns                                                                                              ||
|--------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_PREVIEW_VIDEO_URI](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#COLUMN_PREVIEW_VIDEO_URI)  

### 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).

<br />

|                            Parameters                            ||
|---------------|---------------------------------------------------|
| `releaseDate` | `String`: The release date of the program. <br /> |

|                                                                                              Returns                                                                                              ||
|--------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_RELEASE_DATE](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#COLUMN_RELEASE_DATE)  

### setReleaseDate

```
T extends Builder setReleaseDate (Date releaseDate)
```

Sets the release date of this TV program.

<br />

|                           Parameters                           ||
|---------------|-------------------------------------------------|
| `releaseDate` | `Date`: The release date of the program. <br /> |

|                                                                                              Returns                                                                                              ||
|--------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_RELEASE_DATE](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#COLUMN_RELEASE_DATE)  

### 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")

<br />

|                                    Parameters                                    ||
|----------------|------------------------------------------------------------------|
| `reviewRating` | `String`: The value of the review rating for the program. <br /> |

|                                                                                          Returns                                                                                           ||
|-------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_REVIEW_RATING](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Programs#COLUMN_REVIEW_RATING)
- [COLUMN_REVIEW_RATING_STYLE](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Programs#COLUMN_REVIEW_RATING_STYLE)
- [REVIEW_RATING_STYLE_STARS](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Programs#REVIEW_RATING_STYLE_STARS)
- [.Programs#REVIEW_RATING_STYLE_THUMBS_UP_DOWN](https://developer.android.com/reference/android/support/media/tv/TvContractCompat)
- [REVIEW_RATING_STYLE_PERCENTAGE](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Programs#REVIEW_RATING_STYLE_PERCENTAGE)  

### setReviewRatingStyle

```
T extends Builder setReviewRatingStyle (int reviewRatingStyle)
```

Sets the review rating score style used for[setReviewRating(String)](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder#setReviewRating(java.lang.String)).

<br />

|                                   Parameters                                   ||
|---------------------|-----------------------------------------------------------|
| `reviewRatingStyle` | `int`: The reviewing rating style for the program. <br /> |

|                                                                                          Returns                                                                                           ||
|-------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_REVIEW_RATING_STYLE](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Programs#COLUMN_REVIEW_RATING_STYLE)
- [REVIEW_RATING_STYLE_STARS](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Programs#REVIEW_RATING_STYLE_STARS)
- [.Programs#REVIEW_RATING_STYLE_THUMBS_UP_DOWN](https://developer.android.com/reference/android/support/media/tv/TvContractCompat)
- [REVIEW_RATING_STYLE_PERCENTAGE](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Programs#REVIEW_RATING_STYLE_PERCENTAGE)  

### setSearchable

```
T extends Builder setSearchable (boolean searchable)
```

Sets whether this channel can be searched for in other applications.

<br />

|                                Parameters                                 ||
|--------------|-------------------------------------------------------------|
| `searchable` | `boolean`: Whether the program is searchable or not. <br /> |

|                                                                                          Returns                                                                                           ||
|-------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_SEARCHABLE](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Programs#COLUMN_SEARCHABLE)  

### setSeasonNumber

```
T extends Builder setSeasonNumber (String seasonNumber, 
                int numericalSeasonNumber)
```

Sets the season number for this episode for a series.

<br />

|                                                                                                                    Parameters                                                                                                                    ||
|-------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `seasonNumber`          | `String`: The season display number for the program. <br />                                                                                                                                                             |
| `numericalSeasonNumber` | `int`: An integer value for[COLUMN_SEASON_NUMBER](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Programs#COLUMN_SEASON_NUMBER)which will be used for API Level 23 and below. <br /> |

|                                                                                          Returns                                                                                           ||
|-------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_SEASON_DISPLAY_NUMBER](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Programs#COLUMN_SEASON_DISPLAY_NUMBER)
- [COLUMN_SEASON_NUMBER](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Programs#COLUMN_SEASON_NUMBER)  

### setSeasonNumber

```
T extends Builder setSeasonNumber (int seasonNumber)
```

Sets the season number for this episode for a series.

<br />

|                                Parameters                                ||
|----------------|----------------------------------------------------------|
| `seasonNumber` | `int`: The season display number for the program. <br /> |

|                                                                                          Returns                                                                                           ||
|-------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_SEASON_DISPLAY_NUMBER](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Programs#COLUMN_SEASON_DISPLAY_NUMBER)  

### setSeasonTitle

```
T extends Builder setSeasonTitle (String seasonTitle)
```

Sets a custom name for the season, if applicable.

<br />

|                            Parameters                             ||
|---------------|----------------------------------------------------|
| `seasonTitle` | `String`: The season title for the program. <br /> |

|                                                                                          Returns                                                                                           ||
|-------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_SEASON_TITLE](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Programs#COLUMN_SEASON_TITLE)  

### setStartTimeUtcMillis

```
T extends Builder setStartTimeUtcMillis (long startTime)
```

Sets the start time of the program (for live programs).

<br />

|                         Parameters                          ||
|-------------|------------------------------------------------|
| `startTime` | `long`: The start time for the program. <br /> |

|                                                                                              Returns                                                                                              ||
|--------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [.PreviewPrograms#COLUMN_START_TIME_UTC_MILLIS](https://developer.android.com/reference/android/support/media/tv/TvContractCompat)  

### setStartingPrice

```
T extends Builder setStartingPrice (String price)
```

Sets the starting price of this TV program.

<br />

|                          Parameters                          ||
|---------|-----------------------------------------------------|
| `price` | `String`: The starting price of the program. <br /> |

|                                                                                              Returns                                                                                              ||
|--------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_STARTING_PRICE](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#COLUMN_STARTING_PRICE)  

### 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](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#ASPECT_RATIO_16_9),[ASPECT_RATIO_3_2](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#ASPECT_RATIO_3_2),[ASPECT_RATIO_4_3](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#ASPECT_RATIO_4_3),[ASPECT_RATIO_1_1](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#ASPECT_RATIO_1_1),[ASPECT_RATIO_2_3](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#ASPECT_RATIO_2_3), and[.PreviewPrograms#ASPECT_RATIO_MOVIE_POSTER](https://developer.android.com/reference/android/support/media/tv/TvContractCompat).

<br />

|                            Parameters                             ||
|---------|----------------------------------------------------------|
| `ratio` | `int`: The thumbnail aspect ratio of the program. <br /> |

|                                                                                              Returns                                                                                              ||
|--------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [.PreviewPrograms#COLUMN_THUMBNAIL_ASPECT_RATIO](https://developer.android.com/reference/android/support/media/tv/TvContractCompat)  

### setThumbnailUri

```
T extends Builder setThumbnailUri (Uri thumbnailUri)
```

Sets a small thumbnail of the program.

<br />

|                            Parameters                            ||
|----------------|--------------------------------------------------|
| `thumbnailUri` | `Uri`: The thumbnail URI for the program. <br /> |

|                                                                                          Returns                                                                                           ||
|-------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_THUMBNAIL_URI](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Programs#COLUMN_THUMBNAIL_URI)  

### setTitle

```
T extends Builder setTitle (String title)
```

Sets the title of this program. For a series, this is the series title.

<br />

|                      Parameters                      ||
|---------|---------------------------------------------|
| `title` | `String`: The title for the program. <br /> |

|                                                                                          Returns                                                                                           ||
|-------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_TITLE](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Programs#COLUMN_TITLE)  

### setTransient

```
T extends Builder setTransient (boolean transientValue)
```

Sets whether this program is transient or not.

<br />

|                                  Parameters                                  ||
|------------------|------------------------------------------------------------|
| `transientValue` | `boolean`: Whether the program is transient or not. <br /> |

|                                                                                              Returns                                                                                              ||
|--------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_TRANSIENT](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#COLUMN_TRANSIENT)  

### setType

```
T extends Builder setType (int type)
```

Sets the type of this program content.

The value should match one of the followings:[TYPE_MOVIE](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#TYPE_MOVIE),[TYPE_TV_SERIES](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#TYPE_TV_SERIES),[TYPE_TV_SEASON](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#TYPE_TV_SEASON),[TYPE_TV_EPISODE](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#TYPE_TV_EPISODE),[TYPE_CLIP](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#TYPE_CLIP),[TYPE_EVENT](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#TYPE_EVENT),[TYPE_CHANNEL](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#TYPE_CHANNEL),[TYPE_TRACK](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#TYPE_TRACK),[TYPE_ALBUM](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#TYPE_ALBUM),[TYPE_ARTIST](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#TYPE_ARTIST),[TYPE_PLAYLIST](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#TYPE_PLAYLIST),[TYPE_STATION](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#TYPE_STATION), and[TYPE_GAME](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#TYPE_GAME).

<br />

|                   Parameters                   ||
|--------|----------------------------------------|
| `type` | `int`: The type of the program. <br /> |

|                                                                                              Returns                                                                                              ||
|--------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BasePreviewProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_TYPE](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#COLUMN_TYPE)  

### setVideoHeight

```
T extends Builder setVideoHeight (int height)
```

Sets the video height of the program.

<br />

|                        Parameters                         ||
|----------|-------------------------------------------------|
| `height` | `int`: The video height for the program. <br /> |

|                                                                                          Returns                                                                                           ||
|-------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_VIDEO_HEIGHT](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Programs#COLUMN_VIDEO_HEIGHT)  

### setVideoWidth

```
T extends Builder setVideoWidth (int width)
```

Sets the video width of the program.

<br />

|                       Parameters                        ||
|---------|------------------------------------------------|
| `width` | `int`: The video width for the program. <br /> |

|                                                                                          Returns                                                                                           ||
|-------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `T extends `[Builder](https://developer.android.com/reference/android/support/media/tv/BaseProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

**See also:**

- [COLUMN_VIDEO_WIDTH](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Programs#COLUMN_VIDEO_WIDTH)  

### setWeight

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
PreviewProgram.Builder setWeight (int weight)
```

Sets the weight of the preview program within the channel.

<br />

|                                                                                      Parameters                                                                                      ||
|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `weight` | `int`: The value of[COLUMN_WEIGHT](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms#COLUMN_WEIGHT)for the program. <br /> |

|                                                                                             Returns                                                                                              ||
|-------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| [PreviewProgram.Builder](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder) | This Builder object to allow for chaining of calls to builder methods. <br /> |

-

  ## Interfaces

  - [TvContractCompat.BaseTvColumns](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.BaseTvColumns)
-

  ## Classes

  - [Channel](https://developer.android.com/reference/android/support/media/tv/Channel)
  - [Channel.Builder](https://developer.android.com/reference/android/support/media/tv/Channel.Builder)
  - [ChannelLogoUtils](https://developer.android.com/reference/android/support/media/tv/ChannelLogoUtils)
  - [PreviewProgram](https://developer.android.com/reference/android/support/media/tv/PreviewProgram)
  - [PreviewProgram.Builder](https://developer.android.com/reference/android/support/media/tv/PreviewProgram.Builder)
  - [Program](https://developer.android.com/reference/android/support/media/tv/Program)
  - [Program.Builder](https://developer.android.com/reference/android/support/media/tv/Program.Builder)
  - [R](https://developer.android.com/reference/android/support/media/tv/R)
  - [R.attr](https://developer.android.com/reference/android/support/media/tv/R.attr)
  - [R.bool](https://developer.android.com/reference/android/support/media/tv/R.bool)
  - [R.color](https://developer.android.com/reference/android/support/media/tv/R.color)
  - [R.dimen](https://developer.android.com/reference/android/support/media/tv/R.dimen)
  - [R.drawable](https://developer.android.com/reference/android/support/media/tv/R.drawable)
  - [R.id](https://developer.android.com/reference/android/support/media/tv/R.id)
  - [R.integer](https://developer.android.com/reference/android/support/media/tv/R.integer)
  - [R.layout](https://developer.android.com/reference/android/support/media/tv/R.layout)
  - [R.string](https://developer.android.com/reference/android/support/media/tv/R.string)
  - [R.style](https://developer.android.com/reference/android/support/media/tv/R.style)
  - [R.styleable](https://developer.android.com/reference/android/support/media/tv/R.styleable)
  - [TvContractCompat](https://developer.android.com/reference/android/support/media/tv/TvContractCompat)
  - [TvContractCompat.Channels](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels)
  - [TvContractCompat.Channels.Logo](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Channels.Logo)
  - [TvContractCompat.PreviewPrograms](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.PreviewPrograms)
  - [TvContractCompat.Programs](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Programs)
  - [TvContractCompat.Programs.Genres](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.Programs.Genres)
  - [TvContractCompat.RecordedPrograms](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.RecordedPrograms)
  - [TvContractCompat.WatchNextPrograms](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.WatchNextPrograms)
  - [WatchNextProgram](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram)
  - [WatchNextProgram.Builder](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram.Builder)