public static interface CommonClock.OnTimelineChangedListener
CommonClockinstance 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
|Modifier and Type||Method and Description|
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_IDif the the service is not synchronized to any timeline.