다음을 통해 공유


TvInputService.HardwareSession Class

Definition

Base class for a TV input session which represents an external device connected to a hardware TV input.

[Android.Runtime.Register("android/media/tv/TvInputService$HardwareSession", DoNotGenerateAcw=true)]
public abstract class TvInputService.HardwareSession : Android.Media.TV.TvInputService.Session
[<Android.Runtime.Register("android/media/tv/TvInputService$HardwareSession", DoNotGenerateAcw=true)>]
type TvInputService.HardwareSession = class
    inherit TvInputService.Session
Inheritance
TvInputService.HardwareSession
Attributes

Remarks

Base class for a TV input session which represents an external device connected to a hardware TV input.

This class is for an input which provides channels for the external set-top box to the application. Once a TV input returns an implementation of this class on #onCreateSession(String), the framework will create a separate session for a hardware TV Input (e.g. HDMI 1) and forward the application's surface to the session so that the user can see the screen of the hardware TV Input when she tunes to a channel from this TV input. The implementation of this class is expected to change the channel of the external set-top box via a proprietary protocol when HardwareSession#onTune is requested by the application.

Note that this class is not for inputs for internal hardware like built-in tuner and HDMI 1.

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

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.HardwareSession(Context)

Creates a new HardwareSession.

TvInputService.HardwareSession(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)
HardwareInputId
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.

(Inherited from TvInputService.Session)
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.

(Inherited from TvInputService.Session)
NotifyAdResponse(AdResponse)

Notifies response for advertisement.

(Inherited from TvInputService.Session)
NotifyAitInfoUpdated(AitInfo)

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

(Inherited from TvInputService.Session)
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.

(Inherited from TvInputService.Session)
NotifyAudioPresentationSelected(Int32, Int32)

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

(Inherited from TvInputService.Session)
NotifyAvailableSpeeds(Single[])

Informs the app available speeds for time-shifting.

(Inherited from TvInputService.Session)
NotifyBroadcastInfoResponse(BroadcastInfoResponse)

Notifies response for broadcast info.

(Inherited from TvInputService.Session)
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.

(Inherited from TvInputService.Session)
NotifyContentAllowed()

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

(Inherited from TvInputService.Session)
NotifyContentBlocked(TvContentRating)

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

(Inherited from TvInputService.Session)
NotifyCueingMessageAvailability(Boolean)

Informs the application that cueing message is available or unavailable.

(Inherited from TvInputService.Session)
NotifySignalStrength(Int32)

Notifies signal strength.

(Inherited from TvInputService.Session)
NotifyTimeShiftMode(TimeShiftMode)

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

(Inherited from TvInputService.Session)
NotifyTimeShiftStatusChanged(TimeShiftStatus)

Informs the application that the time shift status is changed.

(Inherited from TvInputService.Session)
NotifyTracksChanged(IList<TvTrackInfo>)

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

(Inherited from TvInputService.Session)
NotifyTrackSelected(TvTrackInfoType, String)

Sends the type and ID of a selected track.

(Inherited from TvInputService.Session)
NotifyTuned(Uri)

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

(Inherited from TvInputService.Session)
NotifyTvMessage(TVMessageType, Bundle)

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

(Inherited from TvInputService.Session)
NotifyVideoAvailable()

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

(Inherited from TvInputService.Session)
NotifyVideoUnavailable(VideoUnavailableReason)

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

(Inherited from TvInputService.Session)
OnAdBufferReady(AdBuffer)

Called when an advertisement buffer is ready for playback.

(Inherited from TvInputService.Session)
OnAppPrivateCommand(String, Bundle)

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

(Inherited from TvInputService.Session)
OnCreateOverlayView()

Called when the application requests to create an overlay view.

(Inherited from TvInputService.Session)
OnGenericMotionEvent(MotionEvent)

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

(Inherited from TvInputService.Session)
OnHardwareVideoAvailable()

Called when the underlying hardware TV input session calls TvInputService.Session#notifyVideoAvailable().

OnHardwareVideoUnavailable(VideoUnavailableReason)

Called when the underlying hardware TV input session calls TvInputService.Session#notifyVideoUnavailable(int).

OnKeyDown(Keycode, KeyEvent)

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

(Inherited from TvInputService.Session)
OnKeyLongPress(Keycode, KeyEvent)

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

(Inherited from TvInputService.Session)
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).

(Inherited from TvInputService.Session)
OnKeyUp(Keycode, KeyEvent)

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

(Inherited from TvInputService.Session)
OnOverlayViewSizeChanged(Int32, Int32)

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

(Inherited from TvInputService.Session)
OnRelease()

Called when the session is released.

(Inherited from TvInputService.Session)
OnRemoveBroadcastInfo(Int32)

Called when broadcast info is removed.

(Inherited from TvInputService.Session)
OnRequestAd(AdRequest)

Called when advertisement request is received.

(Inherited from TvInputService.Session)
OnRequestBroadcastInfo(BroadcastInfoRequest)

Called when broadcast info is requested.

(Inherited from TvInputService.Session)
OnSelectAudioPresentation(Int32, Int32)

Selects an audio presentation.

(Inherited from TvInputService.Session)
OnSelectTrack(TvTrackInfoType, String)

Selects a given track.

(Inherited from TvInputService.Session)
OnSetCaptionEnabled(Boolean)

Enables or disables the caption.

(Inherited from TvInputService.Session)
OnSetInteractiveAppNotificationEnabled(Boolean)

Enables or disables interactive app notification.

(Inherited from TvInputService.Session)
OnSetStreamVolume(Single)

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

(Inherited from TvInputService.Session)
OnSetSurface(Surface)

This method will not be called in HardwareSession.

OnSetTvMessageEnabled(TVMessageType, Boolean)

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

(Inherited from TvInputService.Session)
OnSurfaceChanged(Format, Int32, Int32)

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

(Inherited from TvInputService.Session)
OnTimeShiftGetCurrentPosition()

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

(Inherited from TvInputService.Session)
OnTimeShiftGetStartPosition()

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

(Inherited from TvInputService.Session)
OnTimeShiftPause()

Called when the application requests to pause playback.

(Inherited from TvInputService.Session)
OnTimeShiftPlay(Uri)

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

(Inherited from TvInputService.Session)
OnTimeShiftResume()

Called when the application requests to resume playback.

(Inherited from TvInputService.Session)
OnTimeShiftSeekTo(Int64)

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

(Inherited from TvInputService.Session)
OnTimeShiftSetMode(TimeShiftMode)

Called when the application sets time shift mode.

(Inherited from TvInputService.Session)
OnTimeShiftSetPlaybackParams(PlaybackParams)

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

(Inherited from TvInputService.Session)
OnTouchEvent(MotionEvent)

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

(Inherited from TvInputService.Session)
OnTrackballEvent(MotionEvent)

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

(Inherited from TvInputService.Session)
OnTune(Uri, Bundle)

Tunes to a given channel.

(Inherited from TvInputService.Session)
OnTune(Uri)

Tunes to a given channel.

(Inherited from TvInputService.Session)
OnTvMessage(TVMessageType, Bundle)

Called when a TV message is received

(Inherited from TvInputService.Session)
OnUnblockContent(TvContentRating)

Requests to unblock the content according to the given rating.

(Inherited from TvInputService.Session)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetOverlayViewEnabled(Boolean)

Enables or disables the overlay view.

(Inherited from TvInputService.Session)
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