belongs to Maven artifact com.android.support:support-tv-provider:28.0.0-alpha1
TvContractCompat.Programs
public
static
final
class
TvContractCompat.Programs
extends Object
implements
TvContractCompat.BaseTvColumns
java.lang.Object | |
↳ | android.support.media.tv.TvContractCompat.Programs |
Column definitions for the TV programs table.
By default, the query results will be sorted by
COLUMN_START_TIME_UTC_MILLIS
in ascending order.
Summary
Nested classes | |
---|---|
class |
TvContractCompat.Programs.Genres
Canonical genres for TV programs. |
Constants | |
---|---|
String |
COLUMN_AUDIO_LANGUAGE
The comma-separated audio languages of this TV program. |
String |
COLUMN_BROADCAST_GENRE
The comma-separated genre string of this TV program. |
String |
COLUMN_CANONICAL_GENRE
The comma-separated canonical genre string of this TV program. |
String |
COLUMN_CHANNEL_ID
The ID of the TV channel that provides this TV program. |
String |
COLUMN_CONTENT_RATING
The comma-separated content ratings of this TV program. |
String |
COLUMN_END_TIME_UTC_MILLIS
The end time of this TV program, in milliseconds since the epoch. |
String |
COLUMN_EPISODE_DISPLAY_NUMBER
The episode display number of this TV program for episodic TV shows. |
String |
COLUMN_EPISODE_NUMBER
This constant was deprecated
in API level 26.1.0.
Use |
String |
COLUMN_EPISODE_TITLE
The episode title of this TV program for episodic TV shows. |
String |
COLUMN_INTERNAL_PROVIDER_DATA
Internal data used by individual TV input services. |
String |
COLUMN_INTERNAL_PROVIDER_FLAG1
Internal integer flag used by individual TV input services. |
String |
COLUMN_INTERNAL_PROVIDER_FLAG2
Internal integer flag used by individual TV input services. |
String |
COLUMN_INTERNAL_PROVIDER_FLAG3
Internal integer flag used by individual TV input services. |
String |
COLUMN_INTERNAL_PROVIDER_FLAG4
Internal integer flag used by individual TV input services. |
String |
COLUMN_LONG_DESCRIPTION
The detailed, lengthy description of this TV program that is displayed only when the user wants to see more information. |
String |
COLUMN_POSTER_ART_URI
The URI for the poster art of this TV program. |
String |
COLUMN_RECORDING_PROHIBITED
The flag indicating whether recording of this program is prohibited. |
String |
COLUMN_REVIEW_RATING
The review rating score for this program. |
String |
COLUMN_REVIEW_RATING_STYLE
The review rating score style used for |
String |
COLUMN_SEARCHABLE
The flag indicating whether this TV program is searchable or not. |
String |
COLUMN_SEASON_DISPLAY_NUMBER
The season display number of this TV program for episodic TV shows. |
String |
COLUMN_SEASON_NUMBER
This constant was deprecated
in API level 26.1.0.
Use |
String |
COLUMN_SEASON_TITLE
The title of the season for this TV program for episodic TV shows. |
String |
COLUMN_SHORT_DESCRIPTION
The short description of this TV program that is displayed to the user by default. |
String |
COLUMN_START_TIME_UTC_MILLIS
The start time of this TV program, in milliseconds since the epoch. |
String |
COLUMN_THUMBNAIL_URI
The URI for the thumbnail of this TV program. |
String |
COLUMN_TITLE
The title of this TV program. |
String |
COLUMN_VERSION_NUMBER
The version number of this row entry used by TV input services. |
String |
COLUMN_VIDEO_HEIGHT
The height of the video for this TV program, in the unit of pixels. |
String |
COLUMN_VIDEO_WIDTH
The width of the video for this TV program, in the unit of pixels. |
String |
CONTENT_ITEM_TYPE
The MIME type of a single TV program. |
String |
CONTENT_TYPE
The MIME type of a directory of TV programs. |
int |
REVIEW_RATING_STYLE_PERCENTAGE
The review rating style for 0 to 100 point system. |
int |
REVIEW_RATING_STYLE_STARS
The review rating style for five star rating. |
int |
REVIEW_RATING_STYLE_THUMBS_UP_DOWN
The review rating style for thumbs-up and thumbs-down rating. |
Inherited constants |
---|
![]()
android.support.media.tv.TvContractCompat.BaseTvColumns
|
![]()
android.provider.BaseColumns
|
Fields | |
---|---|
public
static
final
Uri |
CONTENT_URI
The content:// style URI for this table. |
Inherited methods | |
---|---|
![]()
java.lang.Object
|
Constants
COLUMN_AUDIO_LANGUAGE
String COLUMN_AUDIO_LANGUAGE
The comma-separated audio languages of this TV program.
This is used to describe available audio languages included in the program. Use either ISO 639-1 or 639-2/T codes.
Type: TEXT
Constant Value: "audio_language"
COLUMN_BROADCAST_GENRE
String COLUMN_BROADCAST_GENRE
The comma-separated genre string of this 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
encode(String...)
to create a text that can be stored in this column. Use
decode(String)
to get the broadcast genre strings from the text stored in the
column.
Type: TEXT
See also:
Constant Value: "broadcast_genre"
COLUMN_CANONICAL_GENRE
String COLUMN_CANONICAL_GENRE
The comma-separated canonical genre string of this TV program.
Canonical genres are defined in TvContractCompat.Programs.Genres
. Use encode(String...)
to create a
text that can be stored in this column. Use decode(String)
to get the canonical
genre strings from the text stored in the column.
Type: TEXT
Constant Value: "canonical_genre"
COLUMN_CHANNEL_ID
String COLUMN_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)
Constant Value: "channel_id"
COLUMN_CONTENT_RATING
String COLUMN_CONTENT_RATING
The comma-separated content ratings of this TV program.
This is used to describe the content rating(s) of this program. Each comma-separated
content rating sub-string should be generated by calling
flattenToString()
. Note that in most cases the program content is
rated by a single rating system, thus resulting in a corresponding single sub-string that
does not require comma separation and multiple sub-strings appear only when the program
content is rated by two or more content rating systems. If any of those ratings is
specified as "blocked rating" in the user's parental control settings, the TV input
service should block the current content and wait for the signal that it is okay to
unblock.
Type: TEXT
Constant Value: "content_rating"
COLUMN_END_TIME_UTC_MILLIS
String COLUMN_END_TIME_UTC_MILLIS
The end time of this TV program, in milliseconds since the epoch.
The value should be equal to or less than COLUMN_START_TIME_UTC_MILLIS
of the
next program in the same channel. In practice, end time will usually be the start time of
the next program.
Can be empty if this program belongs to a TYPE_PREVIEW
channel.
Type: INTEGER (long)
Constant Value: "end_time_utc_millis"
COLUMN_EPISODE_DISPLAY_NUMBER
String COLUMN_EPISODE_DISPLAY_NUMBER
The episode display number of this TV program for episodic TV shows.
This is used to indicate the episode number. (e.g. 1, 2 or 3) Note that the value does not necessarily be numeric. (e.g. 12B)
Can be empty.
Type: TEXT
Constant Value: "episode_display_number"
COLUMN_EPISODE_NUMBER
String COLUMN_EPISODE_NUMBER
This constant was deprecated
in API level 26.1.0.
Use COLUMN_EPISODE_DISPLAY_NUMBER
instead.
The episode number of this TV program for episodic TV shows.
Can be empty.
Type: INTEGER
Constant Value: "episode_number"
COLUMN_EPISODE_TITLE
String COLUMN_EPISODE_TITLE
The episode title of this TV program for episodic TV shows.
Can be empty.
Type: TEXT
Constant Value: "episode_title"
COLUMN_INTERNAL_PROVIDER_DATA
String COLUMN_INTERNAL_PROVIDER_DATA
Internal data used by individual TV input services.
This is internal to the provider that inserted it, and should not be decoded by other apps.
Type: BLOB
Constant Value: "internal_provider_data"
COLUMN_INTERNAL_PROVIDER_FLAG1
String COLUMN_INTERNAL_PROVIDER_FLAG1
Internal integer flag used by individual TV input services.
This is internal to the provider that inserted it, and should not be decoded by other apps.
Type: INTEGER
Constant Value: "internal_provider_flag1"
COLUMN_INTERNAL_PROVIDER_FLAG2
String COLUMN_INTERNAL_PROVIDER_FLAG2
Internal integer flag used by individual TV input services.
This is internal to the provider that inserted it, and should not be decoded by other apps.
Type: INTEGER
Constant Value: "internal_provider_flag2"
COLUMN_INTERNAL_PROVIDER_FLAG3
String COLUMN_INTERNAL_PROVIDER_FLAG3
Internal integer flag used by individual TV input services.
This is internal to the provider that inserted it, and should not be decoded by other apps.
Type: INTEGER
Constant Value: "internal_provider_flag3"
COLUMN_INTERNAL_PROVIDER_FLAG4
String COLUMN_INTERNAL_PROVIDER_FLAG4
Internal integer flag used by individual TV input services.
This is internal to the provider that inserted it, and should not be decoded by other apps.
Type: INTEGER
Constant Value: "internal_provider_flag4"
COLUMN_LONG_DESCRIPTION
String COLUMN_LONG_DESCRIPTION
The detailed, lengthy description of this TV program that is displayed only when the user wants to see more information.
TV input services should leave this field empty if they have no additional details
beyond COLUMN_SHORT_DESCRIPTION
.
Type: TEXT
Constant Value: "long_description"