TvInteractiveAppService.Session Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Base class for derived classes to implement to provide a TV interactive app session.
[Android.Runtime.Register("android/media/tv/interactive/TvInteractiveAppService$Session", ApiSince=33, DoNotGenerateAcw=true)]
public abstract class TvInteractiveAppService.Session : Java.Lang.Object, Android.Views.KeyEvent.ICallback, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/media/tv/interactive/TvInteractiveAppService$Session", ApiSince=33, DoNotGenerateAcw=true)>]
type TvInteractiveAppService.Session = class
inherit Object
interface KeyEvent.ICallback
interface IJavaObject
interface IDisposable
interface IJavaPeerable
- Inheritance
- Attributes
- Implements
Remarks
Base class for derived classes to implement to provide a TV interactive app session.
A session is associated with a TvInteractiveAppView
instance and handles corresponding communications. It also handles the communications with android.media.tv.TvInputService.Session
if connected.
Java documentation for android.media.tv.interactive.TvInteractiveAppService.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
TvInteractiveAppService.Session(Context) |
Creates a new Session. |
TvInteractiveAppService.Session(IntPtr, JniHandleOwnership) |
Properties
Class |
Returns the runtime class of this |
Handle |
The handle to the underlying Android instance. (Inherited from Object) |
JniIdentityHashCode | (Inherited from Object) |
JniPeerMembers | |
MediaViewEnabled |
Returns |
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 |
Notify() |
Wakes up a single thread that is waiting on this object's monitor. (Inherited from Object) |
NotifyAdBufferReady(AdBuffer) |
Notifies when the advertisement buffer is filled and ready to be read. |
NotifyAll() |
Wakes up all threads that are waiting on this object's monitor. (Inherited from Object) |
NotifyBiInteractiveAppCreated(Uri, String) |
Notifies the broadcast-independent(BI) interactive application has been created. |
NotifySessionStateChanged(Int32, Int32) |
Notifies when the session state is changed. |
NotifyTeletextAppStateChanged(Int32) |
Notifies when the digital teletext app state is changed. |
OnAdBufferConsumed(AdBuffer) |
Called when an advertisement buffer is consumed. |
OnAdResponse(AdResponse) |
Called when an advertisement response is received. |
OnAvailableSpeeds(Single[]) |
Receives available playback speeds. |
OnBroadcastInfoResponse(BroadcastInfoResponse) |
Called when a broadcast info response is received. |
OnContentAllowed() |
Called when content is allowed. |
OnContentBlocked(TvContentRating) |
Called when content is blocked. |
OnCreateBiInteractiveAppRequest(Uri, Bundle) |
Creates broadcast-independent(BI) interactive application. |
OnCreateMediaView() |
Called when the application requests to create an media view. |
OnCurrentChannelLcn(Int32) |
Receives logical channel number (LCN) of current channel. |
OnCurrentChannelUri(Uri) |
Receives current channel URI. |
OnCurrentTvInputId(String) |
Receives current TV input ID. |
OnCurrentVideoBounds(Rect) |
Receives current video bounds. |
OnDestroyBiInteractiveAppRequest(String) |
Destroys broadcast-independent(BI) interactive application. |
OnError(String, Bundle) |
Called when the application sends information of an error. |
OnGenericMotionEvent(MotionEvent) |
Implement this method to handle generic motion events on the current session. |
OnKeyDown(Keycode, KeyEvent) | |
OnKeyLongPress(Keycode, KeyEvent) | |
OnKeyMultiple(Keycode, Int32, KeyEvent) | |
OnKeyUp(Keycode, KeyEvent) | |
OnMediaViewSizeChanged(Int32, Int32) |
Called when the size of the media view is changed by the application. |
OnRecordingConnectionFailed(String, String) |
This is called when an error occurred while establishing a connection to the recording session for the corresponding TV input. |
OnRecordingDisconnected(String, String) |
This is called when the connection to the current recording session is lost. |
OnRecordingError(String, RecordingError) |
This is called when an issue has occurred. |
OnRecordingScheduled(String, String) |
This is called when the recording has been scheduled. |
OnRecordingStarted(String, String) |
This is called when a recording has been started. |
OnRecordingStopped(String) |
This is called when the recording has been stopped. |
OnRecordingTuned(String, Uri) |
This is called when the recording session has been tuned to the given channel and is ready to start recording. |
OnRelease() |
Releases TvInteractiveAppService session. |
OnResetInteractiveApp() |
Resets TvInteractiveAppService session. |
OnSetSurface(Surface) |
Called when the application sets the surface. |
OnSetTeletextAppEnabled(Boolean) |
To toggle Digital Teletext Application if there is one in AIT app list. |
OnSignalStrength(Int32) |
Called when signal strength is changed. |
OnSigningResult(String, Byte[]) |
Receives signing result. |
OnStartInteractiveApp() |
Starts TvInteractiveAppService session. |
OnStopInteractiveApp() |
Stops TvInteractiveAppService session. |
OnStreamVolume(Single) |
Receives current stream volume. |
OnSurfaceChanged(Int32, Int32, Int32) |
Called after any structural changes (format or size) have been made to the surface passed
in |
OnTimeShiftCurrentPositionChanged(String, Int64) |
Called when time shift current position is changed. |
OnTimeShiftMode(TimeShiftMode) |
Receives current time shift mode. |
OnTimeShiftPlaybackParams(PlaybackParams) |
Called when the time shift |
OnTimeShiftStartPositionChanged(String, Int64) |
Called when time shift start position is changed. |
OnTimeShiftStatusChanged(String, TimeShiftStatus) |
Called when time shift status is changed. |
OnTouchEvent(MotionEvent) |
Implement this method to handle touch screen motion events on the current session. |
OnTrackballEvent(MotionEvent) |
Implement this method to handle trackball events on the current session. |
OnTrackInfoList(IList<TvTrackInfo>) |
Receives track list. |
OnTracksChanged(IList<TvTrackInfo>) |
Called when the tracks are changed. |
OnTrackSelected(Int32, String) |
Called when the corresponding TV input selected to a track. |
OnTuned(Uri) |
Called when the corresponding TV input tuned to a channel. |
OnTvMessage(TVMessageType, Bundle) |
Called when a TV message is received |
OnTvRecordingInfo(TvRecordingInfo) |
Receives the requested |
OnTvRecordingInfoList(IList<TvRecordingInfo>) |
Receives requested recording info list. |
OnVideoAvailable() |
Called when video is available. |
OnVideoUnavailable(Int32) |
Called when video is unavailable. |
RemoveBroadcastInfo(Int32) |
Remove broadcast information request from the related TV input. |
RequestAd(AdRequest) |
Sends an advertisement request to be processed by the related TV input. |
RequestAvailableSpeeds() |
Requests available speeds for time shift. |
RequestBroadcastInfo(BroadcastInfoRequest) |
Requests broadcast related information from the related TV input. |
RequestCurrentChannelLcn() |
Requests the logic channel number (LCN) of the current channel. |
RequestCurrentChannelUri() |
Requests the URI of the current channel. |
RequestCurrentTvInputId() |
Requests current TV input ID. |
RequestCurrentVideoBounds() |
Requests the bounds of the current video. |
RequestScheduleRecording(String, String, Uri, Int64, Int64, RecordingWeekDays, Bundle) |
Requests scheduling of a recording. |
RequestScheduleRecording(String, String, Uri, Uri, Bundle) |
Requests scheduling of a recording. |
RequestSigning(String, String, String, Byte[]) |
Requests signing of the given data. |
RequestStartRecording(String, Uri) |
Requests starting of recording |
RequestStopRecording(String) |
Requests the recording associated with the recordingId to stop. |
RequestStreamVolume() |
Requests stream volume. |
RequestTimeShiftMode() |
Requests time shift mode. |
RequestTrackInfoList() |
Requests the list of |
RequestTvRecordingInfo(String) |
Gets the recording info for the specified recording |
RequestTvRecordingInfoList(RecordingStatus) |
Gets a list of |
SendPlaybackCommandRequest(String, Bundle) |
Sends a specific playback command to be processed by the related TV input. |
SendTimeShiftCommandRequest(String, Bundle) |
Sends a specific time shift command to be processed by the related TV input. |
SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
SetTvRecordingInfo(String, TvRecordingInfo) |
Sets the recording info for the specified recording |
SetVideoBounds(Rect) |
Sets broadcast video bounds. |
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) |