Android APIs
public static final class

TvContract.Programs

extends Object
implements TvContract.BaseTvColumns
java.lang.Object
   ↳ android.media.tv.TvContract.Programs

Class Overview

Column definitions for the TV programs table.

Summary

Nested Classes
class TvContract.Programs.Genres Canonical genres for TV programs. 
Constants
String COLUMN_AUDIO_LANGUAGE The comma-separated audio languages of this TV program.
String COLUMN_BROADCAST_GENRE The comma-separated genre string of this TV program.
String COLUMN_CANONICAL_GENRE The comma-separated canonical genre string of this TV program.
String COLUMN_CHANNEL_ID The ID of the TV channel that provides this TV program.
String COLUMN_CONTENT_RATING The comma-separated content ratings of this TV program.
String COLUMN_END_TIME_UTC_MILLIS The end time of this TV program, in milliseconds since the epoch.
String COLUMN_EPISODE_NUMBER The episode number of this TV program for episodic TV shows.
String COLUMN_EPISODE_TITLE The episode title of this TV program for episodic TV shows.
String COLUMN_INTERNAL_PROVIDER_DATA Internal data used by individual TV input services.
String COLUMN_LONG_DESCRIPTION The detailed, lengthy description of this TV program that is displayed only when the user wants to see more information.
String COLUMN_POSTER_ART_URI The URI for the poster art of this TV program.
String COLUMN_SEASON_NUMBER The season number of this TV program for episodic TV shows.
String COLUMN_SHORT_DESCRIPTION The short description of this TV program that is displayed to the user by default.
String COLUMN_START_TIME_UTC_MILLIS The start time of this TV program, in milliseconds since the epoch.
String COLUMN_THUMBNAIL_URI The URI for the thumbnail of this TV program.
String COLUMN_TITLE The title of this TV program.
String COLUMN_VERSION_NUMBER The version number of this row entry used by TV input services.
String COLUMN_VIDEO_HEIGHT The height of the video for this TV program, in the unit of pixels.
String COLUMN_VIDEO_WIDTH The width of the video for this TV program, in the unit of pixels.
String CONTENT_ITEM_TYPE The MIME type of a single TV program.
String CONTENT_TYPE The MIME type of a directory of TV programs.
[Expand]
Inherited Constants
From interface android.media.tv.TvContract.BaseTvColumns
From interface android.provider.BaseColumns
Fields
public static final Uri CONTENT_URI The content:// style URI for this table.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String COLUMN_AUDIO_LANGUAGE

Added in API level 21

The comma-separated audio languages of this TV program.

This is used to describe available audio languages included in the program. Use either ISO 639-1 or 639-2/T codes.

Type: TEXT

Constant Value: "audio_language"

public static final String COLUMN_BROADCAST_GENRE

Added in API level 21

The comma-separated genre string of this TV program.

Use the same language appeared in the underlying broadcast standard, if applicable. (For example, one can refer to the genre strings used in Genre Descriptor of ATSC A/65 or Content Descriptor of ETSI EN 300 468, if appropriate.) Otherwise, leave empty.

Type: TEXT

Constant Value: "broadcast_genre"

public static final String COLUMN_CANONICAL_GENRE

Added in API level 21

The comma-separated canonical genre string of this TV program.

Canonical genres are defined in TvContract.Programs.Genres. Use Genres.encode() to create a text that can be stored in this column. Use Genres.decode() to get the canonical genre strings from the text stored in this column.

Type: TEXT

Constant Value: "canonical_genre"

public static final String COLUMN_CHANNEL_ID

Added in API level 21

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

This is a part of the channel URI and matches to _ID.

Type: INTEGER (long)

Constant Value: "channel_id"

public static final String COLUMN_CONTENT_RATING

Added in API level 21

The comma-separated content ratings of this TV program.

This is used to describe the content rating(s) of this program. Each comma-separated content rating sub-string should be generated by calling flattenToString(). Note that in most cases the program content is rated by a single rating system, thus resulting in a corresponding single sub-string that does not require comma separation and multiple sub-strings appear only when the program content is rated by two or more content rating systems. If any of those ratings is specified as "blocked rating" in the user's parental control settings, the TV input service should block the current content and wait for the signal that it is okay to unblock.

Type: TEXT

Constant Value: "content_rating"

public static final String COLUMN_END_TIME_UTC_MILLIS

Added in API level 21

The end time of this TV program, in milliseconds since the epoch.

The value should be equal to or less than COLUMN_START_TIME_UTC_MILLIS of the next program in the same channel.

Type: INTEGER (long)

Constant Value: "end_time_utc_millis"

public static final String COLUMN_EPISODE_NUMBER

Added in API level 21

The episode number of this TV program for episodic TV shows.

Can be empty.

Type: INTEGER

Constant Value: "episode_number"

public static final String COLUMN_EPISODE_TITLE

Added in API level 21

The episode title of this TV program for episodic TV shows.

Can be empty.

Type: TEXT

Constant Value: "episode_title"

public static final String COLUMN_INTERNAL_PROVIDER_DATA

Added in API level 21

Internal data used by individual TV input services.

This is internal to the provider that inserted it, and should not be decoded by other apps.

Type: BLOB

Constant Value: "internal_provider_data"

public static final String COLUMN_LONG_DESCRIPTION

Added in API level 21

The detailed, lengthy description of this TV program that is displayed only when the user wants to see more information.

TV input services should leave this field empty if they have no additional details beyond COLUMN_SHORT_DESCRIPTION.

Type: TEXT

Constant Value: "long_description"

public static final String COLUMN_POSTER_ART_URI

Added in API level 21

The URI for the poster art of this TV program.

Can be empty.

Type: TEXT

Constant Value: "poster_art_uri"

public static final String COLUMN_SEASON_NUMBER

Added in API level 21

The season number of this TV program for episodic TV shows.

Can be empty.

Type: INTEGER

Constant Value: "season_number"

public static final String COLUMN_SHORT_DESCRIPTION

Added in API level 21

The short description of this TV program that is displayed to the user by default.

It is recommended to limit the length of the descriptions to 256 characters.

Type: TEXT

Constant Value: "short_description"

public static final String COLUMN_START_TIME_UTC_MILLIS

Added in API level 21

The start time of this TV program, in milliseconds since the epoch.

The value should be equal to or larger than COLUMN_END_TIME_UTC_MILLIS of the previous program in the same channel.

Type: INTEGER (long)

Constant Value: "start_time_utc_millis"

public static final String COLUMN_THUMBNAIL_URI

Added in API level 21

The URI for the thumbnail of this TV program.

Can be empty.

Type: TEXT

Constant Value: "thumbnail_uri"

public static final String COLUMN_TITLE

Added in API level 21

The title of this TV program.

If this program is an episodic TV show, it is recommended that the title is the series title and its related fields (COLUMN_SEASON_NUMBER, COLUMN_EPISODE_NUMBER, and COLUMN_EPISODE_TITLE) are filled in.

Type: TEXT

Constant Value: "title"

public static final String COLUMN_VERSION_NUMBER

Added in API level 21

The version number of this row entry used by TV input services.

This is best used by sync adapters to identify the rows to update. The number can be defined by individual TV input services. One may assign the same value as version_number in ETSI EN 300 468 or ATSC A/65, if the data are coming from a TV broadcast.

Type: INTEGER

Constant Value: "version_number"

public static final String COLUMN_VIDEO_HEIGHT

Added in API level 21

The height of the video for this TV program, in the unit of pixels.

Together with COLUMN_VIDEO_WIDTH this is used to determine the video resolution of the current TV program. Can be empty if it is not known initially or the program does not convey any video such as the programs from type SERVICE_TYPE_AUDIO channels.

Type: INTEGER

Constant Value: "video_height"

public static final String COLUMN_VIDEO_WIDTH

Added in API level 21

The width of the video for this TV program, in the unit of pixels.

Together with COLUMN_VIDEO_HEIGHT this is used to determine the video resolution of the current TV program. Can be empty if it is not known initially or the program does not convey any video such as the programs from type SERVICE_TYPE_AUDIO channels.

Type: INTEGER

Constant Value: "video_width"

public static final String CONTENT_ITEM_TYPE

Added in API level 21

The MIME type of a single TV program.

Constant Value: "vnd.android.cursor.item/program"

public static final String CONTENT_TYPE

Added in API level 21

The MIME type of a directory of TV programs.

Constant Value: "vnd.android.cursor.dir/program"

Fields

public static final Uri CONTENT_URI

Added in API level 21

The content:// style URI for this table.