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.
| |||||||||||
Build a special channel URI intended to be used with pass-through inputs.
| |||||||||||
Builds a URI that points to all channels from a given TV input.
| |||||||||||
Builds an ID that uniquely identifies a TV input service.
| |||||||||||
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.
| |||||||||||
Builds a URI that points to programs on a specific channel whose schedules overlap with the
given time frame.
| |||||||||||
Builds a URI that points to all programs on a given channel.
|
[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. |
---|
Build a special channel URI intended to be used with pass-through inputs. (e.g. HDMI)
inputId | The ID of the pass-through input to build a channels URI for. |
---|
Builds a URI that points to all channels from a given TV input.
inputId | The ID of the TV input to build a channels URI for. If null , builds a
URI for all the TV inputs.
|
---|
Builds an ID that uniquely identifies a TV input service.
name | The ComponentName of the TV input service to build ID for. |
---|
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.
channelId | The ID 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.
|
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.
|
Builds a URI that points to all programs on a given channel.
channelId | The ID of the channel to return programs for. |
---|