Skip to content

Most visited

Recently visited

navigation

TvContract.Programs

public static final class TvContract.Programs
extends Object implements TvContract.BaseProgramColumns

java.lang.Object
   ↳ android.media.tv.TvContract.Programs


Column definitions for the TV programs table.

By default, the query results will be sorted by COLUMN_START_TIME_UTC_MILLIS in ascending order.

Summary

Nested classes

class TvContract.Programs.Genres

Canonical genres for TV programs. 

Constants

String COLUMN_BROADCAST_GENRE

The comma-separated genre string 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

This constant was deprecated in API level 24. Use COLUMN_EPISODE_DISPLAY_NUMBER instead.

String COLUMN_RECORDING_PROHIBITED

The flag indicating whether recording of this program is prohibited.

String COLUMN_SEASON_NUMBER

This constant was deprecated in API level 24. Use COLUMN_SEASON_DISPLAY_NUMBER instead.

String COLUMN_START_TIME_UTC_MILLIS

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

String CONTENT_ITEM_TYPE

The MIME type of a single TV program.

String CONTENT_TYPE

The MIME type of a directory of TV programs.

Inherited constants

From interface android.media.tv.TvContract.BaseProgramColumns
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.

Inherited methods

From class java.lang.Object

Constants

COLUMN_BROADCAST_GENRE

added in API level 21
String COLUMN_BROADCAST_GENRE

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. Use encode(String...) to create a text that can be stored in this column. Use decode(String) to get the broadcast genre strings from the text stored in the column.

Type: TEXT

See also:

Constant Value: "broadcast_genre"

COLUMN_END_TIME_UTC_MILLIS

added in API level 21
String COLUMN_END_TIME_UTC_MILLIS

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. In practice, end time will usually be the start time of the next program.

Can be empty if this program belongs to a TYPE_PREVIEW channel.

Type: INTEGER (long)

Constant Value: "end_time_utc_millis"

COLUMN_EPISODE_NUMBER

added in API level 21
String COLUMN_EPISODE_NUMBER

This constant was deprecated in API level 24.
Use COLUMN_EPISODE_DISPLAY_NUMBER instead.

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

Can be empty.

Type: INTEGER

Constant Value: "episode_number"

COLUMN_RECORDING_PROHIBITED

added in API level 24
String COLUMN_RECORDING_PROHIBITED

The flag indicating whether recording of this program is prohibited.

A value of 1 indicates that recording of this program is prohibited and application will not schedule any recording for this program. A value of 0 indicates that the recording is not prohibited. If not specified, this value is set to 0 (not prohibited) by default.

Type: INTEGER (boolean)

Constant Value: "recording_prohibited"

COLUMN_SEASON_NUMBER

added in API level 21
String COLUMN_SEASON_NUMBER

This constant was deprecated in API level 24.
Use COLUMN_SEASON_DISPLAY_NUMBER instead.

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

Can be empty.

Type: INTEGER

Constant Value: "season_number"

COLUMN_START_TIME_UTC_MILLIS

added in API level 21
String COLUMN_START_TIME_UTC_MILLIS

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. In practice, start time will usually be the end time of the previous program.

Can be empty if this program belongs to a TYPE_PREVIEW channel.

Type: INTEGER (long)

Constant Value: "start_time_utc_millis"

CONTENT_ITEM_TYPE

added in API level 21
String CONTENT_ITEM_TYPE

The MIME type of a single TV program.

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

CONTENT_TYPE

added in API level 21
String CONTENT_TYPE

The MIME type of a directory of TV programs.

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

Fields

CONTENT_URI

added in API level 21
Uri CONTENT_URI

The content:// style URI for this table.

This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.