TimeSchedule

interface TimeSchedule<T>

A time schedule that surfaces data either on timeProgressed or timeSkipped.

Functions

Link copied to clipboard
abstract fun disable()

Disables surfacing of timed data.

Link copied to clipboard
abstract fun enable()

Enables surfacing of timed data.

Link copied to clipboard
abstract fun resetTime()
Link copied to clipboard
abstract fun timeProgressed(time: Microseconds)

The time naturally progressed to the new time. All timed data between the new time and the previous time will be surfaced. See also timeSkipped for skipping time to a new time.

Link copied to clipboard
abstract fun timeSkipped(to: Microseconds)

Skips time until to without surfacing data in between. When skipping into the active duration of a scheduled data, the data is surfaced.

Properties

Link copied to clipboard
abstract var onScheduledData: (Microseconds, T) -> Unit?

Callback that surfaces data due to a timeProgressed or a timeSkipped call.

Inheritors

Link copied to clipboard