Sdílet prostřednictvím


TvContract Class

Definition

The contract between the TV provider and applications.

[Android.Runtime.Register("android/media/tv/TvContract", DoNotGenerateAcw=true)]
public sealed class TvContract : Java.Lang.Object
[<Android.Runtime.Register("android/media/tv/TvContract", DoNotGenerateAcw=true)>]
type TvContract = class
    inherit Object
Inheritance
TvContract
Attributes

Remarks

The contract between the TV provider and applications. Contains definitions for the supported URIs and columns. <h3>Overview</h3>

TvContract defines a basic database of TV content metadata such as channel and program information. The information is stored in Channels and Programs tables.

<ul> <li>A row in the 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.</li> <li>A row in the Programs table represents a set of data describing a TV program such as program title and start time.</li> </ul>

Java documentation for android.media.tv.TvContract.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Fields

ActionInitializePrograms

Broadcast Action: sent to the target TV input after it is first installed to notify the input to initialize its channels and programs to the system content provider.

ActionPreviewProgramAddedToWatchNext

Broadcast Action: sent by the system to tell the target TV input that one of its existing preview programs is added to the watch next programs table by user.

ActionPreviewProgramBrowsableDisabled

Broadcast Action: sent by the system to tell the target TV input that one of its preview program's browsable state is disabled, i.

ActionRequestChannelBrowsable

Activity Action: sent by an application telling the system to make the given channel browsable with user interaction.

ActionWatchNextProgramBrowsableDisabled

Broadcast Action: sent by the system to tell the target TV input that one of its "watch next" program's browsable state is disabled, i.

Authority

The authority for the TV provider.

ExtraChannelId

The key for a bundle parameter containing a channel ID as a long integer

ExtraPreviewProgramId

The key for a bundle parameter containing a program ID as a long integer.

ExtraWatchNextProgramId

The key for a bundle parameter containing a watch next program ID as a long integer.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
PeerReference (Inherited from Object)
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)

Methods

BuildChannelLogoUri(Int64)

Builds a URI that points to a channel logo.

BuildChannelLogoUri(Uri)

Builds a URI that points to a channel logo.

BuildChannelsUriForInput(String)

Builds a URI that points to all channels from a given TV input.

BuildChannelUri(Int64)

Builds a URI that points to a specific channel.

BuildChannelUriForPassthroughInput(String)

Build a special channel URI intended to be used with pass-through inputs.

BuildInputId(ComponentName)

Builds an ID that uniquely identifies a TV input service.

BuildPreviewProgramsUriForChannel(Int64)

Builds a URI that points to all preview programs on a given channel.

BuildPreviewProgramsUriForChannel(Uri)

Builds a URI that points to all preview programs on a given channel.

BuildPreviewProgramUri(Int64)

Builds a URI that points to a specific preview program.

BuildProgramsUriForChannel(Int64, Int64, Int64)

Builds a URI that points to programs on a specific channel whose schedules overlap with the given time frame.

BuildProgramsUriForChannel(Int64)

Builds a URI that points to all programs on a given channel.

BuildProgramsUriForChannel(Uri, Int64, Int64)

Builds a URI that points to programs on a specific channel whose schedules overlap with the given time frame.

BuildProgramsUriForChannel(Uri)

Builds a URI that points to all programs on a given channel.

BuildProgramUri(Int64)

Builds a URI that points to a specific program.

BuildRecordedProgramUri(Int64)

Builds a URI that points to a specific recorded program.

BuildWatchNextProgramUri(Int64)

Builds a URI that points to a specific watch next program.

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
IsChannelUri(Uri)
IsChannelUriForPassthroughInput(Uri)
IsChannelUriForTunerInput(Uri)
IsProgramUri(Uri)
IsRecordedProgramUri(Uri)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
RequestChannelBrowsable(Context, Int64)

Requests to make a channel browsable.

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to