ScheduledBreaksTracker

class ScheduledBreaksTracker(emit: (List<ScheduledBreak>) -> Unit, canPlay: (Break) -> Boolean = { breakPlanEmptyReason(buildSeqBreak(it), EffectiveInsertionMode.OVERLAY) == null }, mapPts: (Double) -> Double? = { null }) : ScheduledBreaksObserver

Session-scoped schedule snapshots with value-based change detection.

Constructors

Link copied to clipboard
constructor(emit: (List<ScheduledBreak>) -> Unit, canPlay: (Break) -> Boolean = { breakPlanEmptyReason(buildSeqBreak(it), EffectiveInsertionMode.OVERLAY) == null }, mapPts: (Double) -> Double? = { null })

Properties

Link copied to clipboard

Changes whenever the channel or session history is cleared.

Functions

Link copied to clipboard
fun exclude(id: String)

Exclude an overlap-skipped id until session reset.

Link copied to clipboard

Return independent entries and a new list.

Link copied to clipboard

Record an emitted break-begin, never an internal scheduler claim.

Link copied to clipboard
open override fun refresh()

Reevaluate dynamic viewer inputs and PTS mappings.

Link copied to clipboard
fun reset()

Clear the session and emit empty only if the schedule changed.

Link copied to clipboard
open override fun resetForChannelSwitch(manifest: BreakManifest)

Clear channel history and adopt its replacement manifest.

Link copied to clipboard
open override fun skipBookmark(brk: Break)

Exclude only a bookmark-skipped pre-roll.

Link copied to clipboard
open override fun update(manifest: BreakManifest)

Replace the effective manifest.