Timeline
Functions
Link copied to clipboard
Drop all events before a given eventId.
Link copied to clipboard
abstract suspend fun init(roomId: RoomId, startFrom: EventId, configStart: GetTimelineEventConfig.() -> Unit = {}, configBefore: GetTimelineEventsConfig.() -> Unit = {}, configAfter: GetTimelineEventsConfig.() -> Unit = {}): TimelineStateChange<T>
Initialize the timeline with the start event.
Link copied to clipboard
abstract suspend 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
abstract suspend 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.