Android APIs
public static abstract class

TvView.TimeShiftPositionCallback

extends Object
java.lang.Object
   ↳ android.media.tv.TvView.TimeShiftPositionCallback

Class Overview

Callback used to receive time shift position changes.

Summary

Public Constructors
TvView.TimeShiftPositionCallback()
Public Methods
void onTimeShiftCurrentPositionChanged(String inputId, long timeMs)
This is called when the current playback position is changed.
void onTimeShiftStartPositionChanged(String inputId, long timeMs)
This is called when the start playback position is changed.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public TvView.TimeShiftPositionCallback ()

Added in API level 23

Public Methods

public void onTimeShiftCurrentPositionChanged (String inputId, long timeMs)

Added in API level 23

This is called when the current playback position is changed.

Note that timeMs is not relative time in the program but wall-clock time, which is intended to avoid calling this method unnecessarily around program boundaries.

Parameters
inputId The ID of the TV input bound to this view.
timeMs The current playback position of the time shifted program, in milliseconds since the epoch.

public void onTimeShiftStartPositionChanged (String inputId, long timeMs)

Added in API level 23

This is called when the start playback position is changed.

The start playback position of the time shifted program can be adjusted by the TV input when it cannot retain the whole recorded program due to some reason (e.g. limitation on storage space). The application should not allow the user to seek to a position earlier than the start position.

Note that timeMs is not relative time in the program but wall-clock time, which is intended to avoid calling this method unnecessarily around program boundaries.

Parameters
inputId The ID of the TV input bound to this view.
timeMs The start playback position of the time shifted program, in milliseconds since the epoch.