# TvContractCompat.PreviewPrograms

Artifact: [androidx.tvprovider:tvprovider](https://developer.android.com/jetpack/androidx/releases/tvprovider) [View Source](https://cs.android.com/search?q=file:androidx/tvprovider/media/tv/TvContractCompat.java+class:androidx.tvprovider.media.tv.TvContractCompat.PreviewPrograms) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/tvprovider#1.1.0)

*** ** * ** ***

<br />

```
public final class TvContractCompat.PreviewPrograms implements TvContractCompat.BaseTvColumns, TvContractCompat.PreviewProgramColumns
```

<br />

*** ** * ** ***

Column definitions for the preview TV programs table.

## Summary

| ### Constants |
|---|---|
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewPrograms#COLUMN_CHANNEL_ID() = "channel_id"` The ID of the TV channel that provides this TV program. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewPrograms#COLUMN_WEIGHT() = "weight"` The weight of the preview program within the channel. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewPrograms#CONTENT_ITEM_TYPE() = "vnd.android.cursor.item/preview_program"` The MIME type of a single preview TV program. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewPrograms#CONTENT_TYPE() = "vnd.android.cursor.dir/preview_program"` The MIME type of a directory of preview TV programs. |
| `static final https://developer.android.com/reference/android/net/Uri.html` | `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewPrograms#CONTENT_URI()` The content:// style URI for this table. |

### Inherited Constants

From [android.provider.BaseColumns](https://developer.android.com/reference/android/provider/BaseColumns.html) `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/provider/BaseColumns.html#_COUNT = "_count"` `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/android/provider/BaseColumns.html#_ID = "_id"` From [androidx.tvprovider.media.tv.TvContractCompat.BaseTvColumns](https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.BaseTvColumns) `static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.BaseTvColumns#COLUMN_PACKAGE_NAME() = "package_name"`

The name of the package that owns the current row.
From [androidx.tvprovider.media.tv.TvContractCompat.PreviewProgramColumns](https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns) `static final int` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#ASPECT_RATIO_16_9() = 0`

The aspect ratio for 16:9.
`static final int` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#ASPECT_RATIO_1_1() = 3`

The aspect ratio for 1:1.
`static final int` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#ASPECT_RATIO_2_3() = 4`

The aspect ratio for 2:3.
`static final int` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#ASPECT_RATIO_3_2() = 1`

The aspect ratio for 3:2.
`static final int` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#ASPECT_RATIO_3_4() = 6`

The aspect ratio for 3:4.
`static final int` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#ASPECT_RATIO_4_3() = 2`

The aspect ratio for 4:3.
`static final int` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#ASPECT_RATIO_MOVIE_POSTER() = 5`

The aspect ratio for movie poster which is 1:1.441.
`static final int` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#AVAILABILITY_AVAILABLE() = 0`

The availability for "available to this user".
`static final int` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#AVAILABILITY_FREE() = 4`

The availability for free content.
`static final int` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#AVAILABILITY_FREE_WITH_ADS() = 5`

The availability for free with ads content.
`static final int` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#AVAILABILITY_FREE_WITH_SUBSCRIPTION() = 1`

The availability for "free with subscription".
`static final int` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#AVAILABILITY_PAID_CONTENT() = 2`

The availability for "paid content", either to-own or rental (user has not purchased/rented).
`static final int` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#AVAILABILITY_PURCHASED() = 3`

The availability for content already purchased by the user.
`static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#COLUMN_AUTHOR() = "author"`

The author or artist of this content.
`static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#COLUMN_AVAILABILITY() = "availability"`

The availability of this TV program.
`static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#COLUMN_BROWSABLE() = "browsable"`

The flag indicating whether this TV program is browsable or not.
`static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#COLUMN_CONTENT_ID() = "content_id"`

The content ID of this TV program.
`static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#COLUMN_DURATION_MILLIS() = "duration_millis"`

The duration (in milliseconds) of the original content of this preview program.
`static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#COLUMN_END_TIME_UTC_MILLIS() = "end_time_utc_millis"`

The end time of this TV program, in milliseconds since the epoch.
`static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#COLUMN_GENRE() = "genre"`

A genre(s) that are related to this TV program.
`static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#COLUMN_INTENT_URI() = "intent_uri"`

The intent URI which is launched when the preview program is selected.
`static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#COLUMN_INTERACTION_COUNT() = "interaction_count"`

The interaction count for this program.
`static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#COLUMN_INTERACTION_TYPE() = "interaction_type"`

The type of interaction for this TV program.
`static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#COLUMN_INTERNAL_PROVIDER_ID() = "internal_provider_id"`

The internal ID used by individual TV input services.
`static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#COLUMN_ITEM_COUNT() = "item_count"`

The count of the items included in this TV program.
`static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#COLUMN_LAST_PLAYBACK_POSITION_MILLIS() = "last_playback_position_millis"`

The last playback position (in milliseconds) of the original content of this preview program.
`static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#COLUMN_LIVE() = "live"`

The flag indicating whether this TV program is live or not.
`static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#COLUMN_LOGO_CONTENT_DESCRIPTION() = "logo_content_description"`

The content description of the logo of this TV program.
`static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#COLUMN_LOGO_URI() = "logo_uri"`

The URI for the logo of this TV program.
`static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#COLUMN_OFFER_PRICE() = "offer_price"`

The offer price of this TV program.
`static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#COLUMN_POSTER_ART_ASPECT_RATIO() = "poster_art_aspect_ratio"`

The aspect ratio of the poster art for this TV program.
`static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#COLUMN_PREVIEW_AUDIO_URI() = "preview_audio_uri"`

The URI for the preview audio.
`static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#COLUMN_PREVIEW_VIDEO_URI() = "preview_video_uri"`

The URI for the preview video.
`static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#COLUMN_RELEASE_DATE() = "release_date"`

The release date of this TV program.
`static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#COLUMN_STARTING_PRICE() = "starting_price"`

The starting price of this TV program.
`static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#COLUMN_START_TIME_UTC_MILLIS() = "start_time_utc_millis"`

The start time of this TV program, in milliseconds since the epoch.
`static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#COLUMN_THUMBNAIL_ASPECT_RATIO() = "poster_thumbnail_aspect_ratio"`

The aspect ratio of the thumbnail for this TV program.
`static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#COLUMN_TRANSIENT() = "transient"`

The flag indicating whether this program is transient or not.
`static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#COLUMN_TV_SERIES_ITEM_TYPE() = "tv_series_item_type"`

The TV series item type.
`static final https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#COLUMN_TYPE() = "type"`

The type of this program content.
`static final int` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#INTERACTION_TYPE_FANS() = 3`

The interaction type for "fans".
`static final int` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#INTERACTION_TYPE_FOLLOWERS() = 2`

The interaction type for "followers".
`static final int` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#INTERACTION_TYPE_LIKES() = 4`

The interaction type for "likes".
`static final int` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#INTERACTION_TYPE_LISTENS() = 1`

The interaction type for "listens".
`static final int` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#INTERACTION_TYPE_THUMBS() = 5`

The interaction type for "thumbs".
`static final int` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#INTERACTION_TYPE_VIEWERS() = 6`

The interaction type for "viewers".
`static final int` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#INTERACTION_TYPE_VIEWS() = 0`

The interaction type for "views".
`static final int` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#TV_SERIES_ITEM_TYPE_CHAPTER() = 1`

The TV series item type for chapter.
`static final int` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#TV_SERIES_ITEM_TYPE_EPISODE() = 0`

The TV series item type for episode.
`static final int` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#TYPE_ALBUM() = 8`

The program type for album.
`static final int` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#TYPE_ARTIST() = 9`

The program type for artist.
`static final int` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#TYPE_CHANNEL() = 6`

The program type for channel.
`static final int` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#TYPE_CLIP() = 4`

The program type for clip.
`static final int` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#TYPE_EVENT() = 5`

The program type for event.
`static final int` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#TYPE_GAME() = 12`

The program type for game.
`static final int` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#TYPE_MOVIE() = 0`

The program type for movie.
`static final int` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#TYPE_PLAYLIST() = 10`

The program type for playlist.
`static final int` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#TYPE_STATION() = 11`

The program type for station.
`static final int` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#TYPE_TRACK() = 7`

The program type for track.
`static final int` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#TYPE_TV_EPISODE() = 3`

The program type for TV episode.
`static final int` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#TYPE_TV_SEASON() = 2`

The program type for TV season.
`static final int` `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.PreviewProgramColumns#TYPE_TV_SERIES() = 1`

The program type for TV series.

## Constants

### COLUMN_CHANNEL_ID

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/tvprovider#1.1.0)

```
public static final String COLUMN_CHANNEL_ID = "channel_id"
```

The ID of the TV channel that provides this TV program.

This is a part of the channel URI and matches to `https://developer.android.com/reference/android/provider/BaseColumns.html#_ID`.

This is a required field.

Type: INTEGER (long)

### COLUMN_WEIGHT

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/tvprovider#1.1.0)

```
public static final String COLUMN_WEIGHT = "weight"
```

The weight of the preview program within the channel.

The UI may choose to show this item in a different position in the channel row. A larger weight value means the program is more important than other programs having smaller weight values. The value is relevant for the preview programs in the same channel. This is only relevant to `https://developer.android.com/reference/androidx/tvprovider/media/tv/TvContractCompat.Channels#TYPE_PREVIEW()`.

Can be empty.

Type: INTEGER

### CONTENT_ITEM_TYPE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/tvprovider#1.1.0)

```
public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/preview_program"
```

The MIME type of a single preview TV program.

### CONTENT_TYPE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/tvprovider#1.1.0)

```
public static final String CONTENT_TYPE = "vnd.android.cursor.dir/preview_program"
```

The MIME type of a directory of preview TV programs.

### CONTENT_URI

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/tvprovider#1.1.0)

```
public static final Uri CONTENT_URI
```

The content:// style URI for this table.

SQL selection is not supported for `https://developer.android.com/reference/android/content/ContentResolver.html#query(android.net.Uri, java.lang.String[], android.os.Bundle, android.os.CancellationSignal)`, `https://developer.android.com/reference/android/content/ContentResolver.html#update(android.net.Uri, android.content.ContentValues, android.os.Bundle)` and `https://developer.android.com/reference/android/content/ContentResolver.html#delete(android.net.Uri, android.os.Bundle)` operations.