Timeline Base
An implementation for some restrictions required by Timeline.
Implementing this may be useful for tests (e.g. a TimelineMock).
Inheritors
Functions
Link copied to clipboard
open suspend override fun init(startFrom: EventId, configStart: GetTimelineEventConfig.() -> Unit, configBefore: GetTimelineEventsConfig.() -> Unit, configAfter: GetTimelineEventsConfig.() -> Unit): TimelineStateChange<T>
Initialize the timeline with the start event.
Link copied to clipboard
open suspend override fun loadAfter(config: GetTimelineEventsConfig.() -> Unit): TimelineStateChange<T>
Load new events after the newest event. With default config this may suspend until at least one event can be loaded.
Link copied to clipboard
open suspend override fun loadBefore(config: GetTimelineEventsConfig.() -> Unit): TimelineStateChange<T>
Load new events before the oldest event. With default config this may suspend until at least one event can be loaded.