WatchNextPrograms

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

Column definitions for the "watch next" TV programs table.

Summary

Constants

static String

The last UTC time that the user engaged in this TV program, in milliseconds since the epoch.

static String

The "watch next" type of this program content.

static String

The MIME type of a single preview TV program.

static String

The MIME type of a directory of "watch next" TV programs.

static Int

The watch next type for CONTINUE.

static Int

The watch next type for NEW.

static Int

The watch next type for NEXT.

static Int

The watch next type for WATCHLIST.

Inherited constants

Properties

static Uri!

The content:// style URI for this table.

Constants

COLUMN_LAST_ENGAGEMENT_TIME_UTC_MILLIS

static val COLUMN_LAST_ENGAGEMENT_TIME_UTC_MILLIS: String

The last UTC time that the user engaged in this TV program, in milliseconds since the epoch. This is a hint for the application that is used for ordering of "watch next" programs.

The meaning of the value varies depending on the COLUMN_WATCH_NEXT_TYPE:

This is a required field.

Type: INTEGER (long)

Value: "last_engagement_time_utc_millis"

COLUMN_WATCH_NEXT_TYPE

static val COLUMN_WATCH_NEXT_TYPE: String

The "watch next" type of this program content.

The value should match one of the followings: WATCH_NEXT_TYPE_CONTINUE, WATCH_NEXT_TYPE_NEXT, WATCH_NEXT_TYPE_NEW, and WATCH_NEXT_TYPE_WATCHLIST.

This is a required field.

Type: INTEGER

Value: "watch_next_type"

CONTENT_ITEM_TYPE

static val CONTENT_ITEM_TYPE: String

The MIME type of a single preview TV program.

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

CONTENT_TYPE

static val CONTENT_TYPE: String

The MIME type of a directory of "watch next" TV programs.

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

WATCH_NEXT_TYPE_CONTINUE

static val WATCH_NEXT_TYPE_CONTINUE: Int

The watch next type for CONTINUE. Use this type when the user has already watched more than 1 minute of this content.

Value: 0

WATCH_NEXT_TYPE_NEW

static val WATCH_NEXT_TYPE_NEW: Int

The watch next type for NEW. Use this type when the user had watched all of the available episodes from some episodic content, but a new episode became available since the user started watching the first episode and now there is exactly one unwatched episode. This could also work for recorded events in a series e.g. soccer matches or football games.

Value: 2

WATCH_NEXT_TYPE_NEXT

static val WATCH_NEXT_TYPE_NEXT: Int

The watch next type for NEXT. Use this type when the user has watched one or more complete episodes from some episodic content, but there remains more than one episode remaining or there is one last episode remaining, but it is not “new” in that it was released before the user started watching the show.

Value: 1

WATCH_NEXT_TYPE_WATCHLIST

static val WATCH_NEXT_TYPE_WATCHLIST: Int

The watch next type for WATCHLIST. Use this type when the user has elected to explicitly add a movie, event or series to a “watchlist” as a manual way of curating what they want to watch next.

Value: 3

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.