public static interface CommonClock.OnTimelineChangedListener
CommonClock
instance to indicate that the time synchronization service has
either synchronized with a new timeline, or is no longer a member of any timeline. The
client application can implement this interface and register the listener with the
CommonClock.setTimelineChangedListener(OnTimelineChangedListener)
method.Modifier and Type | Method and Description |
---|---|
void |
onTimelineChanged(long newTimelineId)
Method called when the time service's timeline has changed.
|
void onTimelineChanged(long newTimelineId)
newTimelineId
- a long which uniquely identifies the timeline the time
synchronization service is now a member of, or CommonClock.INVALID_TIMELINE_ID
if the the
service is not synchronized to any timeline.