public final class

TvContractCompat.RecordedPrograms

extends java.lang.Object

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

 java.lang.Object

↳androidx.tvprovider.media.tv.TvContractCompat.RecordedPrograms

Overview

Column definitions for the recorded TV programs table.

By default, the query results will be sorted by TvContractCompat.RecordedPrograms.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 recorded TV program.

public static final java.lang.StringCOLUMN_CHANNEL_ID

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

public static final java.lang.StringCOLUMN_END_TIME_UTC_MILLIS

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

public static final java.lang.StringCOLUMN_INPUT_ID

The ID of the TV input service that is associated with this recorded program.

public static final java.lang.StringCOLUMN_RECORDING_DATA_BYTES

The data size (in bytes) for this recorded program.

public static final java.lang.StringCOLUMN_RECORDING_DATA_URI

The URI of the recording data for this recorded program.

public static final java.lang.StringCOLUMN_RECORDING_DURATION_MILLIS

The duration (in milliseconds) of this recorded program.

public static final java.lang.StringCOLUMN_RECORDING_EXPIRE_TIME_UTC_MILLIS

The expiration time for this recorded program, in milliseconds since the epoch.

public static final java.lang.StringCOLUMN_START_TIME_UTC_MILLIS

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

public static final java.lang.StringCONTENT_ITEM_TYPE

The MIME type of a single recorded TV program.

public static final java.lang.StringCONTENT_TYPE

The MIME type of a directory of recorded 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 recorded TV programs.

public static final java.lang.String CONTENT_ITEM_TYPE

The MIME type of a single recorded TV program.

public static final java.lang.String COLUMN_CHANNEL_ID

The ID of the TV channel that provides this recorded 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_INPUT_ID

The ID of the TV input service that is associated with this recorded program.

Use TvContractCompat.buildInputId(ComponentName) to build the ID.

This is a required field.

Type: TEXT

public static final java.lang.String COLUMN_START_TIME_UTC_MILLIS

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

Type: INTEGER (long)

See also: TvContractCompat.Programs.COLUMN_START_TIME_UTC_MILLIS

public static final java.lang.String COLUMN_END_TIME_UTC_MILLIS

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

Type: INTEGER (long)

See also: TvContractCompat.Programs.COLUMN_END_TIME_UTC_MILLIS

public static final java.lang.String COLUMN_BROADCAST_GENRE

The comma-separated genre string of this recorded 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 Genres.encode() to create a text that can be stored in this column. Use Genres.decode() to get the broadcast genre strings from the text stored in the column.

Type: TEXT

See also: TvContractCompat.Programs.COLUMN_BROADCAST_GENRE

public static final java.lang.String COLUMN_RECORDING_DATA_URI

The URI of the recording data for this recorded program.

Together with TvContractCompat.RecordedPrograms.COLUMN_RECORDING_DATA_BYTES, applications can use this information to manage recording storage. The URI should indicate a file or directory with the scheme .

Type: TEXT

See also: TvContractCompat.RecordedPrograms.COLUMN_RECORDING_DATA_BYTES

public static final java.lang.String COLUMN_RECORDING_DATA_BYTES

The data size (in bytes) for this recorded program.

Together with TvContractCompat.RecordedPrograms.COLUMN_RECORDING_DATA_URI, applications can use this information to manage recording storage.

Type: INTEGER (long)

See also: TvContractCompat.RecordedPrograms.COLUMN_RECORDING_DATA_URI

public static final java.lang.String COLUMN_RECORDING_DURATION_MILLIS

The duration (in milliseconds) of this recorded program.

The actual duration of the recorded program can differ from the one calculated by TvContractCompat.RecordedPrograms.COLUMN_END_TIME_UTC_MILLIS - TvContractCompat.RecordedPrograms.COLUMN_START_TIME_UTC_MILLIS as program recording can be interrupted in the middle for some reason, resulting in a partially recorded program, which is still playable.

Type: INTEGER

public static final java.lang.String COLUMN_RECORDING_EXPIRE_TIME_UTC_MILLIS

The expiration time for this recorded program, in milliseconds since the epoch.

Recorded TV programs do not expire by default unless explicitly requested by the user or the user allows applications to delete them in order to free up disk space for future recording. However, some TV content can have expiration date set by the content provider when recorded. This field is used to indicate such a restriction.

Can be empty.

Type: INTEGER (long)