Share via


TvInputService.Session.NotifyTimeShiftStatusChanged(TimeShiftStatus) Method

Definition

Informs the application that the time shift status is changed.

[Android.Runtime.Register("notifyTimeShiftStatusChanged", "(I)V", "GetNotifyTimeShiftStatusChanged_IHandler", ApiSince=23)]
public virtual void NotifyTimeShiftStatusChanged (Android.Media.TV.TimeShiftStatus status);
[<Android.Runtime.Register("notifyTimeShiftStatusChanged", "(I)V", "GetNotifyTimeShiftStatusChanged_IHandler", ApiSince=23)>]
abstract member NotifyTimeShiftStatusChanged : Android.Media.TV.TimeShiftStatus -> unit
override this.NotifyTimeShiftStatusChanged : Android.Media.TV.TimeShiftStatus -> unit

Parameters

status
TimeShiftStatus

The current time shift status. Should be one of the followings. <ul> <li>TvInputManager#TIME_SHIFT_STATUS_UNSUPPORTED<li>TvInputManager#TIME_SHIFT_STATUS_UNAVAILABLE<li>TvInputManager#TIME_SHIFT_STATUS_AVAILABLE</ul>

Attributes

Remarks

Informs the application that the time shift status is changed.

Prior to calling this method, the application assumes the status TvInputManager#TIME_SHIFT_STATUS_UNKNOWN. Right after the session is created, it is important to invoke the method with the status TvInputManager#TIME_SHIFT_STATUS_AVAILABLE if the implementation does support time shifting, or TvInputManager#TIME_SHIFT_STATUS_UNSUPPORTED otherwise. Failure to notifying the current status change immediately might result in an undesirable behavior in the application such as hiding the play controls.

If the status TvInputManager#TIME_SHIFT_STATUS_AVAILABLE is reported, the application assumes it can pause/resume playback, seek to a specified time position and set playback rate and audio mode. The implementation should override #onTimeShiftPause, #onTimeShiftResume, #onTimeShiftSeekTo, #onTimeShiftGetStartPosition, #onTimeShiftGetCurrentPosition and #onTimeShiftSetPlaybackParams.

Java documentation for android.media.tv.TvInputService.Session.notifyTimeShiftStatusChanged(int).

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.

Applies to