public final class

TvContractCompat.Programs

extends java.lang.Object

implements TvContractCompat.BaseTvColumns, androidx.tvprovider.media.tv.TvContractCompat.ProgramColumns

 java.lang.Object

↳androidx.tvprovider.media.tv.TvContractCompat.Programs

Overview

Column definitions for the TV programs table.

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

Summary

Fields
public static final java.lang.StringCOLUMN_BROADCAST_GENRE

The comma-separated genre string of this TV program.

public static final java.lang.StringCOLUMN_CHANNEL_ID

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

public static final java.lang.StringCOLUMN_END_TIME_UTC_MILLIS

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

public static final java.lang.StringCOLUMN_EPISODE_NUMBER

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

public static final java.lang.StringCOLUMN_EVENT_ID

The event ID of this TV program.

public static final java.lang.StringCOLUMN_GLOBAL_CONTENT_ID

The global content ID of this TV program, as a URI.

public static final java.lang.StringCOLUMN_RECORDING_PROHIBITED

The flag indicating whether recording of this program is prohibited.

public static final java.lang.StringCOLUMN_SEASON_NUMBER

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

public static final java.lang.StringCOLUMN_START_TIME_UTC_MILLIS

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

public static final java.lang.StringCONTENT_ITEM_TYPE

The MIME type of a single TV program.

public static final java.lang.StringCONTENT_TYPE

The MIME type of a directory of TV programs.

public static final UriCONTENT_URI

The content:// style URI for this table.

Methods
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Fields

public static final Uri CONTENT_URI

The content:// style URI for this table.

SQL selection is not supported for , and operations.

public static final java.lang.String CONTENT_TYPE

The MIME type of a directory of TV programs.

public static final java.lang.String CONTENT_ITEM_TYPE

The MIME type of a single TV program.

public static final java.lang.String COLUMN_CHANNEL_ID

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

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

This is a required field.

Type: INTEGER (long)

public static final java.lang.String COLUMN_SEASON_NUMBER

Deprecated: Use COLUMN_SEASON_DISPLAY_NUMBER instead.

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

Can be empty.

Type: INTEGER

public static final java.lang.String COLUMN_EPISODE_NUMBER

Deprecated: Use COLUMN_EPISODE_DISPLAY_NUMBER instead.

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

Can be empty.

Type: INTEGER

public static final java.lang.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 TvContractCompat.Programs.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 TvContractCompat.Channels.TYPE_PREVIEW channel.

Type: INTEGER (long)

public static final java.lang.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 TvContractCompat.Programs.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 TvContractCompat.Channels.TYPE_PREVIEW channel.

Type: INTEGER (long)

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

Type: TEXT

See also: TvContractCompat.Programs.Genres.encode(String...), TvContractCompat.Programs.Genres.decode(String)

public static final java.lang.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)

public static final java.lang.String COLUMN_EVENT_ID

The event ID of this TV program.

It is used to identify the current TV program in the same channel, if applicable. Use the same coding for event_id in the underlying broadcast standard if it is defined there (e.g. ATSC A/65, ETSI EN 300 468 and ARIB STD-B10).

This is a required field only if the underlying broadcast standard defines the same name field. Otherwise, leave empty.

Type: INTEGER

public static final java.lang.String COLUMN_GLOBAL_CONTENT_ID

The global content ID of this TV program, as a URI.

A globally unique ID that identifies this TV program, if applicable. Suitable URIs include

  • crid:/// from ETSI TS 102 323
  • globalContentId from ATSC A/332
  • Other broadcast ID provider. ex http://example.com/tv_program/1234

Can be empty.

Type: TEXT