TvContractCompat.PreviewPrograms


public final class TvContractCompat.PreviewPrograms implements TvContractCompat.BaseTvColumns


Column definitions for the preview TV programs table.

Summary

Constants

static final String
COLUMN_CHANNEL_ID = "channel_id"

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

static final String
COLUMN_WEIGHT = "weight"

The weight of the preview program within the channel.

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

The MIME type of a single preview TV program.

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

The MIME type of a directory of preview 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_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 TV program.

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

This is a required field.

Type: INTEGER (long)

COLUMN_WEIGHT

Added in 1.1.0-alpha02
public static final String COLUMN_WEIGHT = "weight"

The weight of the preview program within the channel.

The UI may choose to show this item in a different position in the channel row. A larger weight value means the program is more important than other programs having smaller weight values. The value is relevant for the preview programs in the same channel. This is only relevant to TYPE_PREVIEW.

Can be empty.

Type: INTEGER

CONTENT_ITEM_TYPE

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

The MIME type of a single preview TV program.

CONTENT_TYPE

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

The MIME type of a directory of preview 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.