java.lang.Object | |
↳ | android.media.tv.TvContract |
The contract between the TV provider and applications. Contains definitions for the supported URIs and columns.
TvContract defines a basic database of TV content metadata such as channel and program
information. The information is stored in TvContract.Channels
and TvContract.Programs
tables.
TvContract.Channels
table represents information about a TV channel. The data
format can vary greatly from standard to standard or according to service provider, thus
the columns here are mostly comprised of basic entities that are usually seen to users
regardless of standard such as channel number and name.TvContract.Programs
table represents a set of data describing a TV program such
as program title and start time.Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
TvContract.BaseTvColumns | Common base for the tables of TV channels/programs. | ||||||||||
TvContract.Channels | Column definitions for the TV channels table. | ||||||||||
TvContract.Programs | Column definitions for the TV programs table. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | AUTHORITY | The authority for the TV provider. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Builds a URI that points to a channel logo.
| |||||||||||
Builds a URI that points to a channel logo.
| |||||||||||
Builds a URI that points to a specific channel.
| |||||||||||
Builds a URI that points to all or browsable-only channels from a given TV input.
| |||||||||||
Builds a URI that points to all browsable channels from a given TV input.
| |||||||||||
Builds a URI that points to a specific program.
| |||||||||||
Builds a URI that points to all programs on a given channel.
| |||||||||||
Builds a URI that points to programs on a specific channel whose schedules overlap with the
given time frame.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
The authority for the TV provider.
Builds a URI that points to a channel logo. See TvContract.Channels.Logo
.
channelUri | The URI of the channel whose logo is pointed to. |
---|
Builds a URI that points to a channel logo. See TvContract.Channels.Logo
.
channelId | The ID of the channel whose logo is pointed to. |
---|
Builds a URI that points to a specific channel.
channelId | The ID of the channel to point to. |
---|
Builds a URI that points to all or browsable-only channels from a given TV input.
name | ComponentName of the TvInputService that
implements the given TV input. |
---|---|
browsableOnly | If set to true the URI points to only browsable channels. If set
to false the URI points to all channels regardless of whether they are
browsable or not.
|
Builds a URI that points to all browsable channels from a given TV input.
name | ComponentName of the TvInputService that
implements the given TV input.
|
---|
Builds a URI that points to a specific program.
programId | The ID of the program to point to. |
---|
Builds a URI that points to all programs on a given channel.
channelUri | The URI of the channel to return programs for. |
---|
Builds a URI that points to programs on a specific channel whose schedules overlap with the given time frame.
channelUri | The URI of the channel to return programs for. |
---|---|
startTime | The start time used to filter programs. The returned programs should have
COLUMN_END_TIME_UTC_MILLIS that is greater than this time. |
endTime | The end time used to filter programs. The returned programs should have
COLUMN_START_TIME_UTC_MILLIS that is less than this time.
|