# WatchNextProgram

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:[Nested Classes](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#nestedclasses)\|[Constants](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#constants)\|[Methods](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#)  

# WatchNextProgram

| 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

final

class
WatchNextProgram
`  
`

extends Object


``


`

|---|-------------------------------------------|
| java.lang.Object                             ||
| ↳ | android.support.media.tv.WatchNextProgram |

<br />

*** ** * ** ***

A convenience class to access[TvContractCompat.WatchNextPrograms](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.WatchNextPrograms)entries in the system content provider.

This class makes it easy to insert or retrieve a program from the system content provider, which is defined in[TvContractCompat](https://developer.android.com/reference/android/support/media/tv/TvContractCompat).

Usage example when inserting a "watch next" program:  

```
 WatchNextProgram watchNextProgram = new WatchNextProgram.Builder()
         .setWatchNextType(WatchNextPrograms.WATCH_NEXT_TYPE_CONTINUE)
         .setType(PreviewPrograms.TYPE_MOVIE)
         .setTitle("Program Title")
         .setDescription("Program Description")
         .setPosterArtUri(Uri.parse("http://example.com/poster_art.png"))
         // Set more attributes...
         .build();
 Uri watchNextProgramUri = getContentResolver().insert(WatchNextPrograms.CONTENT_URI,
         watchNextProgram.toContentValues());
 
```

Usage example when retrieving a "watch next" program:  

```
 WatchNextProgram watchNextProgram;
 try (Cursor cursor = resolver.query(watchNextProgramUri, null, null, null, null)) {
     if (cursor != null && cursor.getCount() != 0) {
         cursor.moveToNext();
         watchNextProgram = WatchNextProgram.fromCursor(cursor);
     }
 }
 
```

Usage example when updating an existing "watch next" program:  

```
 WatchNextProgram updatedProgram = new WatchNextProgram.Builder(watchNextProgram)
         .setLastEngagementTimeUtcMillis(System.currentTimeMillis())
         .build();
 getContentResolver().update(TvContractCompat.buildWatchNextProgramUri(updatedProgram.getId()),
         updatedProgram.toContentValues(), null, null);
 
```

Usage example when deleting a "watch next" program:  

```
 getContentResolver().delete(TvContractCompat.buildWatchNextProgramUri(existingProgram.getId()),
         null, null);
 
```

<br />

## Summary

|                                                                                                                                     ### Nested classes                                                                                                                                      ||
|----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` class` | [WatchNextProgram.Builder](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram.Builder) This Builder class simplifies the creation of a[WatchNextProgram](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram)object. |

|                                                                              ### Constants                                                                               ||
|-------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [WATCH_NEXT_TYPE_UNKNOWN](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#WATCH_NEXT_TYPE_UNKNOWN) The unknown watch next type. |

|                                                                                                                                                                                                                                                                              ### Public methods                                                                                                                                                                                                                                                                               ||
|-----------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` boolean`                                                                                                      | ` `[equals](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#equals(java.lang.Object))`(Object other) `                                                                                                                                                                                                                                                                                                                     |
| ` static `[WatchNextProgram](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram) | ` `[fromCursor](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#fromCursor(android.database.Cursor))`(`[Cursor](https://developer.android.com/reference/android/database/Cursor.html)` cursor) ` Creates a WatchNextProgram object from a cursor including the fields defined in[TvContractCompat.WatchNextPrograms](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.WatchNextPrograms). |
| ` String[]`                                                                                                     | ` `[getAudioLanguages](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getAudioLanguages())`() `                                                                                                                                                                                                                                                                                                                           |
| ` String`                                                                                                       | ` `[getAuthor](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getAuthor())`() `                                                                                                                                                                                                                                                                                                                                           |
| ` int`                                                                                                          | ` `[getAvailability](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getAvailability())`() `                                                                                                                                                                                                                                                                                                                               |
| ` String[]`                                                                                                     | ` `[getCanonicalGenres](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getCanonicalGenres())`() `                                                                                                                                                                                                                                                                                                                         |
| ` String`                                                                                                       | ` `[getContentId](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getContentId())`() `                                                                                                                                                                                                                                                                                                                                     |
| ` `[TvContentRating[]](https://developer.android.com/reference/android/media/tv/TvContentRating.html)           | ` `[getContentRatings](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getContentRatings())`() `                                                                                                                                                                                                                                                                                                                           |
| ` String`                                                                                                       | ` `[getDescription](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getDescription())`() `                                                                                                                                                                                                                                                                                                                                 |
| ` int`                                                                                                          | ` `[getDurationMillis](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getDurationMillis())`() `                                                                                                                                                                                                                                                                                                                           |
| ` long`                                                                                                         | ` `[getEndTimeUtcMillis](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getEndTimeUtcMillis())`() `                                                                                                                                                                                                                                                                                                                       |
| ` String`                                                                                                       | ` `[getEpisodeNumber](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getEpisodeNumber())`() `                                                                                                                                                                                                                                                                                                                             |
| ` String`                                                                                                       | ` `[getEpisodeTitle](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getEpisodeTitle())`() `                                                                                                                                                                                                                                                                                                                               |
| ` String`                                                                                                       | ` `[getGenre](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getGenre())`() `                                                                                                                                                                                                                                                                                                                                             |
| ` long`                                                                                                         | ` `[getId](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getId())`() `                                                                                                                                                                                                                                                                                                                                                   |
| ` `[Intent](https://developer.android.com/reference/android/content/Intent.html)                                | ` `[getIntent](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getIntent())`() `                                                                                                                                                                                                                                                                                                                                           |
| ` `[Uri](https://developer.android.com/reference/android/net/Uri.html)                                          | ` `[getIntentUri](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getIntentUri())`() `                                                                                                                                                                                                                                                                                                                                     |
| ` long`                                                                                                         | ` `[getInteractionCount](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getInteractionCount())`() `                                                                                                                                                                                                                                                                                                                       |
| ` int`                                                                                                          | ` `[getInteractionType](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getInteractionType())`() `                                                                                                                                                                                                                                                                                                                         |
| ` byte[]`                                                                                                       | ` `[getInternalProviderDataByteArray](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getInternalProviderDataByteArray())`() `                                                                                                                                                                                                                                                                                             |
| ` Long`                                                                                                         | ` `[getInternalProviderFlag1](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getInternalProviderFlag1())`() `                                                                                                                                                                                                                                                                                                             |
| ` Long`                                                                                                         | ` `[getInternalProviderFlag2](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getInternalProviderFlag2())`() `                                                                                                                                                                                                                                                                                                             |
| ` Long`                                                                                                         | ` `[getInternalProviderFlag3](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getInternalProviderFlag3())`() `                                                                                                                                                                                                                                                                                                             |
| ` Long`                                                                                                         | ` `[getInternalProviderFlag4](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getInternalProviderFlag4())`() `                                                                                                                                                                                                                                                                                                             |
| ` String`                                                                                                       | ` `[getInternalProviderId](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getInternalProviderId())`() `                                                                                                                                                                                                                                                                                                                   |
| ` int`                                                                                                          | ` `[getItemCount](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getItemCount())`() `                                                                                                                                                                                                                                                                                                                                     |
| ` long`                                                                                                         | ` `[getLastEngagementTimeUtcMillis](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getLastEngagementTimeUtcMillis())`() `                                                                                                                                                                                                                                                                                                 |
| ` int`                                                                                                          | ` `[getLastPlaybackPositionMillis](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getLastPlaybackPositionMillis())`() `                                                                                                                                                                                                                                                                                                   |
| ` String`                                                                                                       | ` `[getLogoContentDescription](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getLogoContentDescription())`() `                                                                                                                                                                                                                                                                                                           |
| ` `[Uri](https://developer.android.com/reference/android/net/Uri.html)                                          | ` `[getLogoUri](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getLogoUri())`() `                                                                                                                                                                                                                                                                                                                                         |
| ` String`                                                                                                       | ` `[getLongDescription](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getLongDescription())`() `                                                                                                                                                                                                                                                                                                                         |
| ` String`                                                                                                       | ` `[getOfferPrice](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getOfferPrice())`() `                                                                                                                                                                                                                                                                                                                                   |
| ` int`                                                                                                          | ` `[getPosterArtAspectRatio](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getPosterArtAspectRatio())`() `                                                                                                                                                                                                                                                                                                               |
| ` `[Uri](https://developer.android.com/reference/android/net/Uri.html)                                          | ` `[getPosterArtUri](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getPosterArtUri())`() `                                                                                                                                                                                                                                                                                                                               |
| ` `[Uri](https://developer.android.com/reference/android/net/Uri.html)                                          | ` `[getPreviewAudioUri](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getPreviewAudioUri())`() `                                                                                                                                                                                                                                                                                                                         |
| ` `[Uri](https://developer.android.com/reference/android/net/Uri.html)                                          | ` `[getPreviewVideoUri](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getPreviewVideoUri())`() `                                                                                                                                                                                                                                                                                                                         |
| ` String`                                                                                                       | ` `[getReleaseDate](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getReleaseDate())`() `                                                                                                                                                                                                                                                                                                                                 |
| ` String`                                                                                                       | ` `[getReviewRating](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getReviewRating())`() `                                                                                                                                                                                                                                                                                                                               |
| ` int`                                                                                                          | ` `[getReviewRatingStyle](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getReviewRatingStyle())`() `                                                                                                                                                                                                                                                                                                                     |
| ` String`                                                                                                       | ` `[getSeasonNumber](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getSeasonNumber())`() `                                                                                                                                                                                                                                                                                                                               |
| ` String`                                                                                                       | ` `[getSeasonTitle](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getSeasonTitle())`() `                                                                                                                                                                                                                                                                                                                                 |
| ` long`                                                                                                         | ` `[getStartTimeUtcMillis](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getStartTimeUtcMillis())`() `                                                                                                                                                                                                                                                                                                                   |
| ` String`                                                                                                       | ` `[getStartingPrice](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getStartingPrice())`() `                                                                                                                                                                                                                                                                                                                             |
| ` int`                                                                                                          | ` `[getThumbnailAspectRatio](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getThumbnailAspectRatio())`() `                                                                                                                                                                                                                                                                                                               |
| ` `[Uri](https://developer.android.com/reference/android/net/Uri.html)                                          | ` `[getThumbnailUri](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getThumbnailUri())`() `                                                                                                                                                                                                                                                                                                                               |
| ` String`                                                                                                       | ` `[getTitle](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getTitle())`() `                                                                                                                                                                                                                                                                                                                                             |
| ` int`                                                                                                          | ` `[getType](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getType())`() `                                                                                                                                                                                                                                                                                                                                               |
| ` int`                                                                                                          | ` `[getVideoHeight](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getVideoHeight())`() `                                                                                                                                                                                                                                                                                                                                 |
| ` int`                                                                                                          | ` `[getVideoWidth](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getVideoWidth())`() `                                                                                                                                                                                                                                                                                                                                   |
| ` int`                                                                                                          | ` `[getWatchNextType](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#getWatchNextType())`() `                                                                                                                                                                                                                                                                                                                             |
| ` int`                                                                                                          | ` `[hashCode](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#hashCode())`() `                                                                                                                                                                                                                                                                                                                                             |
| ` boolean`                                                                                                      | ` `[isBrowsable](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#isBrowsable())`() `                                                                                                                                                                                                                                                                                                                                       |
| ` boolean`                                                                                                      | ` `[isLive](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#isLive())`() `                                                                                                                                                                                                                                                                                                                                                 |
| ` boolean`                                                                                                      | ` `[isSearchable](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#isSearchable())`() `                                                                                                                                                                                                                                                                                                                                     |
| ` boolean`                                                                                                      | ` `[isTransient](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#isTransient())`() `                                                                                                                                                                                                                                                                                                                                       |
| ` `[ContentValues](https://developer.android.com/reference/android/content/ContentValues.html)                  | ` `[toContentValues](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#toContentValues())`() `                                                                                                                                                                                                                                                                                                                               |
| ` String`                                                                                                       | ` `[toString](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#toString())`() `                                                                                                                                                                                                                                                                                                                                             |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#)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() `                    | ||

## Constants

### WATCH_NEXT_TYPE_UNKNOWN

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

```
int WATCH_NEXT_TYPE_UNKNOWN
```

The unknown watch next type. Use this type when the actual type is not known.

<br />

Constant Value: -1 (0xffffffff)

## Public methods

### equals

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

```
boolean equals (Object other)
```

<br />

<br />

|        Parameters        ||
|---------|-----------------|
| `other` | `Object` <br /> |

|      Returns      ||
|-----------|--------|
| `boolean` | <br /> |

### fromCursor

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

```
WatchNextProgram fromCursor (Cursor cursor)
```

Creates a WatchNextProgram object from a cursor including the fields defined in[TvContractCompat.WatchNextPrograms](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.WatchNextPrograms).

<br />

|                               Parameters                               ||
|----------|--------------------------------------------------------------|
| `cursor` | `Cursor`: A row from the TV Input Framework database. <br /> |

|                                                                            Returns                                                                             ||
|-------------------------------------------------------------------------------------------------------|---------------------------------------------------------|
| [WatchNextProgram](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram) | A Program with the values taken from the cursor. <br /> |

### getAudioLanguages

```
String[] getAudioLanguages ()
```

<br />

<br />

|                         Returns                         ||
|------------|---------------------------------------------|
| `String[]` | The audio languages for the program. <br /> |

**See also:**

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

### getAuthor

```
String getAuthor ()
```

<br />

<br />

|                   Returns                    ||
|----------|------------------------------------|
| `String` | The author for the program. <br /> |

**See also:**

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

### getAvailability

```
int getAvailability ()
```

<br />

<br />

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

**See also:**

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

### getCanonicalGenres

```
String[] getCanonicalGenres ()
```

<br />

<br />

|                         Returns                         ||
|------------|---------------------------------------------|
| `String[]` | The canonical genre for the program. <br /> |

**See also:**

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

### getContentId

```
String getContentId ()
```

<br />

<br />

|                     Returns                      ||
|----------|----------------------------------------|
| `String` | The content ID for the program. <br /> |

**See also:**

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

### getContentRatings

```
TvContentRating[] getContentRatings ()
```

<br />

<br />

|                                                                    Returns                                                                     ||
|----------------------------------------------------------------------------------------------------|--------------------------------------------|
| [TvContentRating[]](https://developer.android.com/reference/android/media/tv/TvContentRating.html) | The content rating for the program. <br /> |

**See also:**

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

### getDescription

```
String getDescription ()
```

<br />

<br />

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

**See also:**

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

### getDurationMillis

```
int getDurationMillis ()
```

<br />

<br />

|                       Returns                        ||
|-------|-----------------------------------------------|
| `int` | The duration of the program in millis. <br /> |

**See also:**

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

### getEndTimeUtcMillis

```
long getEndTimeUtcMillis ()
```

<br />

<br />

|                   Returns                    ||
|--------|--------------------------------------|
| `long` | The end time for the program. <br /> |

**See also:**

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

### getEpisodeNumber

```
String getEpisodeNumber ()
```

<br />

<br />

|                           Returns                            ||
|----------|----------------------------------------------------|
| `String` | The episode display number for the program. <br /> |

**See also:**

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

### getEpisodeTitle

```
String getEpisodeTitle ()
```

<br />

<br />

|                       Returns                       ||
|----------|-------------------------------------------|
| `String` | The episode title for the program. <br /> |

**See also:**

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

### getGenre

```
String getGenre ()
```

<br />

<br />

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

**See also:**

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

### getId

```
long getId ()
```

<br />

<br />

|                Returns                 ||
|--------|--------------------------------|
| `long` | The ID for the program. <br /> |

**See also:**

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

### getIntent

```
Intent getIntent ()
```

<br />

<br />

|                                                                     Returns                                                                      ||
|-------------------------------------------------------------------------------|-------------------------------------------------------------------|
| [Intent](https://developer.android.com/reference/android/content/Intent.html) | The intent which is launched when the program is selected. <br /> |

|         Throws          ||
|----------------------|---|
| `URISyntaxException` |   |

**See also:**

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

### getIntentUri

```
Uri getIntentUri ()
```

<br />

<br />

|                                                                  Returns                                                                   ||
|---------------------------------------------------------------------|-----------------------------------------------------------------------|
| [Uri](https://developer.android.com/reference/android/net/Uri.html) | The intent URI which is launched when the program is selected. <br /> |

**See also:**

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

### getInteractionCount

```
long getInteractionCount ()
```

<br />

<br />

|                        Returns                        ||
|--------|-----------------------------------------------|
| `long` | The interaction count for the program. <br /> |

**See also:**

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

### getInteractionType

```
int getInteractionType ()
```

<br />

<br />

|                       Returns                       ||
|-------|----------------------------------------------|
| `int` | The interaction type for the program. <br /> |

**See also:**

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

### getInternalProviderDataByteArray

```
byte[] getInternalProviderDataByteArray ()
```

<br />

<br />

|                           Returns                            ||
|----------|----------------------------------------------------|
| `byte[]` | The internal provider data for the program. <br /> |

**See also:**

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

### getInternalProviderFlag1

```
Long getInternalProviderFlag1 ()
```

<br />

<br />

|                             Returns                              ||
|--------|----------------------------------------------------------|
| `Long` | The first internal provider flag for the program. <br /> |

**See also:**

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

### getInternalProviderFlag2

```
Long getInternalProviderFlag2 ()
```

<br />

<br />

|                              Returns                              ||
|--------|-----------------------------------------------------------|
| `Long` | The second internal provider flag for the program. <br /> |

**See also:**

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

### getInternalProviderFlag3

```
Long getInternalProviderFlag3 ()
```

<br />

<br />

|                             Returns                              ||
|--------|----------------------------------------------------------|
| `Long` | The third internal provider flag for the program. <br /> |

**See also:**

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

### getInternalProviderFlag4

```
Long getInternalProviderFlag4 ()
```

<br />

<br />

|                             Returns                              ||
|--------|----------------------------------------------------------|
| `Long` | The forth internal provider flag for the program. <br /> |

**See also:**

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

### getInternalProviderId

```
String getInternalProviderId ()
```

<br />

<br />

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

**See also:**

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

### getItemCount

```
int getItemCount ()
```

<br />

<br />

|                    Returns                    ||
|-------|----------------------------------------|
| `int` | The item count for the program. <br /> |

**See also:**

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

### getLastEngagementTimeUtcMillis

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

```
long getLastEngagementTimeUtcMillis ()
```

<br />

<br />

|                                                                                                             Returns                                                                                                             ||
|--------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `long` | The value of[COLUMN_LAST_ENGAGEMENT_TIME_UTC_MILLIS](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.WatchNextPrograms#COLUMN_LAST_ENGAGEMENT_TIME_UTC_MILLIS)for the program. <br /> |

### getLastPlaybackPositionMillis

```
int getLastPlaybackPositionMillis ()
```

<br />

<br />

|                              Returns                               ||
|-------|-------------------------------------------------------------|
| `int` | The last playback position of the program in millis. <br /> |

**See also:**

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

### getLogoContentDescription

```
String getLogoContentDescription ()
```

<br />

<br />

|                            Returns                             ||
|----------|------------------------------------------------------|
| `String` | The logo content description for the program. <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)  

### getLogoUri

```
Uri getLogoUri ()
```

<br />

<br />

|                                                  Returns                                                  ||
|---------------------------------------------------------------------|--------------------------------------|
| [Uri](https://developer.android.com/reference/android/net/Uri.html) | The logo URI for the program. <br /> |

**See also:**

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

### getLongDescription

```
String getLongDescription ()
```

<br />

<br />

|                        Returns                         ||
|----------|----------------------------------------------|
| `String` | The long description for the program. <br /> |

**See also:**

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

### getOfferPrice

```
String getOfferPrice ()
```

<br />

<br />

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

**See also:**

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

### getPosterArtAspectRatio

```
int getPosterArtAspectRatio ()
```

<br />

<br />

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

**See also:**

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

### getPosterArtUri

```
Uri getPosterArtUri ()
```

<br />

<br />

|                                                     Returns                                                     ||
|---------------------------------------------------------------------|--------------------------------------------|
| [Uri](https://developer.android.com/reference/android/net/Uri.html) | The poster art URI for the program. <br /> |

**See also:**

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

### getPreviewAudioUri

```
Uri getPreviewAudioUri ()
```

<br />

<br />

|                                                      Returns                                                       ||
|---------------------------------------------------------------------|-----------------------------------------------|
| [Uri](https://developer.android.com/reference/android/net/Uri.html) | The preview audio URI for the program. <br /> |

**See also:**

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

### getPreviewVideoUri

```
Uri getPreviewVideoUri ()
```

<br />

<br />

|                                                      Returns                                                       ||
|---------------------------------------------------------------------|-----------------------------------------------|
| [Uri](https://developer.android.com/reference/android/net/Uri.html) | The preview video URI for the program. <br /> |

**See also:**

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

### getReleaseDate

```
String getReleaseDate ()
```

<br />

<br />

|                      Returns                      ||
|----------|-----------------------------------------|
| `String` | The release date of the program. <br /> |

**See also:**

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

### getReviewRating

```
String getReviewRating ()
```

<br />

<br />

|                       Returns                       ||
|----------|-------------------------------------------|
| `String` | The review rating for the program. <br /> |

**See also:**

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

### getReviewRatingStyle

```
int getReviewRatingStyle ()
```

<br />

<br />

|                        Returns                         ||
|-------|-------------------------------------------------|
| `int` | The review rating style for the program. <br /> |

**See also:**

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

### getSeasonNumber

```
String getSeasonNumber ()
```

<br />

<br />

|                           Returns                           ||
|----------|---------------------------------------------------|
| `String` | The season display number for the program. <br /> |

**See also:**

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

### getSeasonTitle

```
String getSeasonTitle ()
```

<br />

<br />

|                      Returns                       ||
|----------|------------------------------------------|
| `String` | The season title for the program. <br /> |

**See also:**

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

### getStartTimeUtcMillis

```
long getStartTimeUtcMillis ()
```

<br />

<br />

|                    Returns                     ||
|--------|----------------------------------------|
| `long` | The start time for the program. <br /> |

**See also:**

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

### getStartingPrice

```
String getStartingPrice ()
```

<br />

<br />

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

**See also:**

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

### getThumbnailAspectRatio

```
int getThumbnailAspectRatio ()
```

<br />

<br />

|                          Returns                          ||
|-------|----------------------------------------------------|
| `int` | The thumbnail aspect ratio for the program. <br /> |

**See also:**

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

### getThumbnailUri

```
Uri getThumbnailUri ()
```

<br />

<br />

|                                                    Returns                                                     ||
|---------------------------------------------------------------------|-------------------------------------------|
| [Uri](https://developer.android.com/reference/android/net/Uri.html) | The thumbnail URI for the program. <br /> |

**See also:**

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

### getTitle

```
String getTitle ()
```

<br />

<br />

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

**See also:**

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

### getType

```
int getType ()
```

<br />

<br />

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

**See also:**

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

### getVideoHeight

```
int getVideoHeight ()
```

<br />

<br />

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

**See also:**

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

### getVideoWidth

```
int getVideoWidth ()
```

<br />

<br />

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

**See also:**

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

### getWatchNextType

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

```
int getWatchNextType ()
```

<br />

<br />

|                                                                                                                                                                        Returns                                                                                                                                                                        ||
|-------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | The value of[COLUMN_WATCH_NEXT_TYPE](https://developer.android.com/reference/android/support/media/tv/TvContractCompat.WatchNextPrograms#COLUMN_WATCH_NEXT_TYPE)for the program, or[WATCH_NEXT_TYPE_UNKNOWN](https://developer.android.com/reference/android/support/media/tv/WatchNextProgram#WATCH_NEXT_TYPE_UNKNOWN)if it's unknown. <br /> |

### hashCode

```
int hashCode ()
```

<br />

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### isBrowsable

```
boolean isBrowsable ()
```

<br />

<br />

|                          Returns                           ||
|-----------|-------------------------------------------------|
| `boolean` | Whether the program is browsable or not. <br /> |

**See also:**

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

### isLive

```
boolean isLive ()
```

<br />

<br />

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

**See also:**

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

### isSearchable

```
boolean isSearchable ()
```

<br />

<br />

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

**See also:**

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

### isTransient

```
boolean isTransient ()
```

<br />

<br />

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

**See also:**

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

### toContentValues

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

```
ContentValues toContentValues ()
```

<br />

<br />

|                                                                                                        Returns                                                                                                        ||
|---------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|
| [ContentValues](https://developer.android.com/reference/android/content/ContentValues.html) | The fields of the Program in the ContentValues format to be easily inserted into the TV Input Framework database. <br /> |

### toString

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

```
String toString ()
```

<br />

<br />

|     Returns      ||
|----------|--------|
| `String` | <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)