Condividi tramite


TvInputService.Session Class

Definition

Base class for derived classes to implement to provide a TV input session.

[Android.Runtime.Register("android/media/tv/TvInputService$Session", DoNotGenerateAcw=true)]
public abstract class TvInputService.Session : Java.Lang.Object, Android.Views.KeyEvent.ICallback, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/media/tv/TvInputService$Session", DoNotGenerateAcw=true)>]
type TvInputService.Session = class
    inherit Object
    interface KeyEvent.ICallback
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Inheritance
TvInputService.Session
Derived
Attributes
Implements

Remarks

Base class for derived classes to implement to provide a TV input session.

Java documentation for android.media.tv.TvInputService.Session.

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.

Constructors

TvInputService.Session(Context)

Creates a new Session.

TvInputService.Session(IntPtr, JniHandleOwnership)

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
ThresholdType

Methods

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)
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)
LayoutSurface(Int32, Int32, Int32, Int32)

Assigns a size and position to the surface passed in #onSetSurface.

Notify()

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

(Inherited from Object)
NotifyAdBufferConsumed(AdBuffer)

Notifies the advertisement buffer is consumed.

NotifyAdResponse(AdResponse)

Notifies response for advertisement.

NotifyAitInfoUpdated(AitInfo)

Informs the app that the AIT (Application Information Table) is updated.

NotifyAll()

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

(Inherited from Object)
NotifyAudioPresentationChanged(IList<AudioPresentation>)

Sends an updated list of all audio presentations available from a Next Generation Audio service.

NotifyAudioPresentationSelected(Int32, Int32)

Sends the presentation and program IDs of the selected audio presentation.

NotifyAvailableSpeeds(Single[])

Informs the app available speeds for time-shifting.

NotifyBroadcastInfoResponse(BroadcastInfoResponse)

Notifies response for broadcast info.

NotifyChannelRetuned(Uri)

Informs the application that the current channel is re-tuned for some reason and the session now displays the content from a new channel.

NotifyContentAllowed()

Informs the application that the user is allowed to watch the current program content.

NotifyContentBlocked(TvContentRating)

Informs the application that the current program content is blocked by parent controls.

NotifyCueingMessageAvailability(Boolean)

Informs the application that cueing message is available or unavailable.

NotifySignalStrength(Int32)

Notifies signal strength.

NotifyTimeShiftMode(TimeShiftMode)

Informs the app that the time shift mode is set or updated.

NotifyTimeShiftStatusChanged(TimeShiftStatus)

Informs the application that the time shift status is changed.

NotifyTracksChanged(IList<TvTrackInfo>)

Sends the list of all audio/video/subtitle tracks.

NotifyTrackSelected(TvTrackInfoType, String)

Sends the type and ID of a selected track.

NotifyTuned(Uri)

Informs the application that this session has been tuned to the given channel.

NotifyTvMessage(TVMessageType, Bundle)

Sends the raw data from the received TV message as well as the type of message received.

NotifyVideoAvailable()

Informs the application that the video is now available for watching.

NotifyVideoUnavailable(VideoUnavailableReason)

Informs the application that the video became unavailable for some reason.

OnAdBufferReady(AdBuffer)

Called when an advertisement buffer is ready for playback.

OnAppPrivateCommand(String, Bundle)

Processes a private command sent from the application to the TV input.

OnCreateOverlayView()

Called when the application requests to create an overlay view.

OnGenericMotionEvent(MotionEvent)

Implement this method to handle generic motion events on the current input session.

OnKeyDown(Keycode, KeyEvent)

Default implementation of android.view.KeyEvent.Callback#onKeyDown(int, KeyEvent) KeyEvent.Callback.onKeyDown(): always returns false (doesn't handle the event).

OnKeyLongPress(Keycode, KeyEvent)

Default implementation of android.view.KeyEvent.Callback#onKeyLongPress(int, KeyEvent) KeyEvent.Callback.onKeyLongPress(): always returns false (doesn't handle the event).

OnKeyMultiple(Keycode, Int32, KeyEvent)

Default implementation of android.view.KeyEvent.Callback#onKeyMultiple(int, int, KeyEvent) KeyEvent.Callback.onKeyMultiple(): always returns false (doesn't handle the event).

OnKeyUp(Keycode, KeyEvent)

Default implementation of android.view.KeyEvent.Callback#onKeyUp(int, KeyEvent) KeyEvent.Callback.onKeyUp(): always returns false (doesn't handle the event).

OnOverlayViewSizeChanged(Int32, Int32)

Called when the size of the overlay view is changed by the application.

OnRelease()

Called when the session is released.

OnRemoveBroadcastInfo(Int32)

Called when broadcast info is removed.

OnRequestAd(AdRequest)

Called when advertisement request is received.

OnRequestBroadcastInfo(BroadcastInfoRequest)

Called when broadcast info is requested.

OnSelectAudioPresentation(Int32, Int32)

Selects an audio presentation.

OnSelectTrack(TvTrackInfoType, String)

Selects a given track.

OnSetCaptionEnabled(Boolean)

Enables or disables the caption.

OnSetInteractiveAppNotificationEnabled(Boolean)

Enables or disables interactive app notification.

OnSetStreamVolume(Single)

Sets the relative stream volume of the current TV input session.

OnSetSurface(Surface)

Called when the application sets the surface.

OnSetTvMessageEnabled(TVMessageType, Boolean)

Called when the application enables or disables the detection of the specified message type.

OnSurfaceChanged(Format, Int32, Int32)

Called after any structural changes (format or size) have been made to the surface passed in #onSetSurface.

OnTimeShiftGetCurrentPosition()

Returns the current position for time shifting, in milliseconds since the epoch.

OnTimeShiftGetStartPosition()

Returns the start position for time shifting, in milliseconds since the epoch.

OnTimeShiftPause()

Called when the application requests to pause playback.

OnTimeShiftPlay(Uri)

Called when the application requests to play a given recorded TV program.

OnTimeShiftResume()

Called when the application requests to resume playback.

OnTimeShiftSeekTo(Int64)

Called when the application requests to seek to a specified time position.

OnTimeShiftSetMode(TimeShiftMode)

Called when the application sets time shift mode.

OnTimeShiftSetPlaybackParams(PlaybackParams)

Called when the application sets playback parameters containing the speed and audio mode.

OnTouchEvent(MotionEvent)

Implement this method to handle touch screen motion events on the current input session.

OnTrackballEvent(MotionEvent)

Implement this method to handle trackball events on the current input session.

OnTune(Uri, Bundle)

Tunes to a given channel.

OnTune(Uri)

Tunes to a given channel.

OnTvMessage(TVMessageType, Bundle)

Called when a TV message is received

OnUnblockContent(TvContentRating)

Requests to unblock the content according to the given rating.

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetOverlayViewEnabled(Boolean)

Enables or disables the overlay view.

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