TvContractCompat.RecordedPrograms


public final class TvContractCompat.RecordedPrograms implements TvContractCompat.BaseTvColumns


Column definitions for the recorded TV programs table.

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

Summary

Constants

static final String
COLUMN_BROADCAST_GENRE = "broadcast_genre"

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

static final String
COLUMN_CHANNEL_ID = "channel_id"

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

static final String
COLUMN_END_TIME_UTC_MILLIS = "end_time_utc_millis"

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

static final String
COLUMN_INPUT_ID = "input_id"

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

static final String
COLUMN_RECORDING_DATA_BYTES = "recording_data_bytes"

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

static final String
COLUMN_RECORDING_DATA_URI = "recording_data_uri"

The URI of the recording data for this recorded program.

static final String
COLUMN_RECORDING_DURATION_MILLIS = "recording_duration_millis"

The duration (in milliseconds) of this recorded program.

static final String
COLUMN_RECORDING_EXPIRE_TIME_UTC_MILLIS = "recording_expire_time_utc_millis"

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

static final String
COLUMN_START_TIME_UTC_MILLIS = "start_time_utc_millis"

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

static final String
CONTENT_ITEM_TYPE = "vnd.android.cursor.item/recorded_program"

The MIME type of a single recorded TV program.

static final String
CONTENT_TYPE = "vnd.android.cursor.dir/recorded_program"

The MIME type of a directory of recorded TV programs.

static final Uri

The content:// style URI for this table.

Inherited Constants

From android.provider.BaseColumns
static final String
_COUNT = "_count"
static final String
_ID = "_id"
From androidx.tvprovider.media.tv.TvContractCompat.BaseTvColumns
static final String
COLUMN_PACKAGE_NAME = "package_name"

The name of the package that owns the current row.

Constants

COLUMN_BROADCAST_GENRE

Added in 1.1.0-alpha02
public static final String COLUMN_BROADCAST_GENRE = "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

COLUMN_CHANNEL_ID

Added in 1.1.0-alpha02
public static final String COLUMN_CHANNEL_ID = "channel_id"

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

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

This is a required field.

Type: INTEGER (long)

COLUMN_END_TIME_UTC_MILLIS

Added in 1.1.0-alpha02
public static final String COLUMN_END_TIME_UTC_MILLIS = "end_time_utc_millis"

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

Type: INTEGER (long)

COLUMN_INPUT_ID

Added in 1.1.0-alpha02
public static final String COLUMN_INPUT_ID = "input_id"

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

Use buildInputId to build the ID.

This is a required field.

Type: TEXT

COLUMN_RECORDING_DATA_BYTES

Added in 1.1.0-alpha02
public static final String COLUMN_RECORDING_DATA_BYTES = "recording_data_bytes"

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

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

Type: INTEGER (long)

COLUMN_RECORDING_DATA_URI

Added in 1.1.0-alpha02
public static final String COLUMN_RECORDING_DATA_URI = "recording_data_uri"

The URI of the recording data for this recorded program.

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

Type: TEXT

COLUMN_RECORDING_DURATION_MILLIS

Added in 1.1.0-alpha02
public static final String COLUMN_RECORDING_DURATION_MILLIS = "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 COLUMN_END_TIME_UTC_MILLIS - 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

COLUMN_RECORDING_EXPIRE_TIME_UTC_MILLIS

Added in 1.1.0-alpha02
public static final String COLUMN_RECORDING_EXPIRE_TIME_UTC_MILLIS = "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)

COLUMN_START_TIME_UTC_MILLIS

Added in 1.1.0-alpha02
public static final String COLUMN_START_TIME_UTC_MILLIS = "start_time_utc_millis"

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

Type: INTEGER (long)

CONTENT_ITEM_TYPE

Added in 1.1.0-alpha02
public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/recorded_program"

The MIME type of a single recorded TV program.

CONTENT_TYPE

Added in 1.1.0-alpha02
public static final String CONTENT_TYPE = "vnd.android.cursor.dir/recorded_program"

The MIME type of a directory of recorded TV programs.

CONTENT_URI

Added in 1.1.0-alpha02
public static final Uri CONTENT_URI

The content:// style URI for this table.

SQL selection is not supported for query, update and delete operations.