The Android Developer Challenge is back! Submit your idea before December 2.

RecordedPrograms

class RecordedPrograms : TvContractCompat.BaseTvColumns, ProgramColumns
kotlin.Any
   ↳ androidx.tvprovider.media.tv.TvContractCompat.RecordedPrograms

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 String

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

static String

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

static String

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

static String

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

static String

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

static String

The URI of the recording data for this recorded program.

static String

The duration (in milliseconds) of this recorded program.

static String

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

static String

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

static String

The MIME type of a single recorded TV program.

static String

The MIME type of a directory of recorded TV programs.

Inherited constants

Properties

static Uri!

The content:// style URI for this table.

Constants

COLUMN_BROADCAST_GENRE

static val COLUMN_BROADCAST_GENRE: String

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

Value: Programs.COLUMN_BROADCAST_GENRE

COLUMN_CHANNEL_ID

static val COLUMN_CHANNEL_ID: String

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

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

This is a required field.

Type: INTEGER (long)

Value: "channel_id"

COLUMN_END_TIME_UTC_MILLIS

static val COLUMN_END_TIME_UTC_MILLIS: String

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

Type: INTEGER (long)

Value: Programs.COLUMN_END_TIME_UTC_MILLIS

COLUMN_INPUT_ID

static val COLUMN_INPUT_ID: String

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

Value: "input_id"

COLUMN_RECORDING_DATA_BYTES

static val COLUMN_RECORDING_DATA_BYTES: String

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)

Value: "recording_data_bytes"

COLUMN_RECORDING_DATA_URI

static val COLUMN_RECORDING_DATA_URI: String

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 android.content.ContentResolver#SCHEME_FILE.

Type: TEXT

Value: "recording_data_uri"

COLUMN_RECORDING_DURATION_MILLIS

static val COLUMN_RECORDING_DURATION_MILLIS: String

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

Value: "recording_duration_millis"

COLUMN_RECORDING_EXPIRE_TIME_UTC_MILLIS

static val COLUMN_RECORDING_EXPIRE_TIME_UTC_MILLIS: String

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)

Value: "recording_expire_time_utc_millis"

COLUMN_START_TIME_UTC_MILLIS

static val COLUMN_START_TIME_UTC_MILLIS: String

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

Type: INTEGER (long)

Value: Programs.COLUMN_START_TIME_UTC_MILLIS

CONTENT_ITEM_TYPE

static val CONTENT_ITEM_TYPE: String

The MIME type of a single recorded TV program.

Value: "vnd.android.cursor.item/recorded_program"

CONTENT_TYPE

static val CONTENT_TYPE: String

The MIME type of a directory of recorded TV programs.

Value: "vnd.android.cursor.dir/recorded_program"

Properties

CONTENT_URI

static val CONTENT_URI: Uri!

The content:// style URI for this table.

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