get Timeline Events Around
fun RoomService.getTimelineEventsAround(roomId: RoomId, startFrom: EventId, maxSizeBefore: StateFlow<Int>, maxSizeAfter: StateFlow<Int>, configStart: GetTimelineEventConfig.() -> Unit = {}, configBefore: GetTimelineEventsConfig.() -> Unit = {}, configAfter: GetTimelineEventsConfig.() -> Unit = {}): Flow<List<Flow<TimelineEvent>>>
Returns all timeline events around a starting event sorted with higher indexes being more recent.
The size of the returned list can be expanded in 2 directions: before and after the start element.
Parameters
start From
the start event id
max Size Before
how many events to possibly get before the start event
max Size After
how many events to possibly get after the start event
config Start
The config for getting the startFrom.
config Before
The config for getting TimelineEvents before startFrom.
config After
The config for getting TimelineEvents after startFrom.
suspend fun RoomService.getTimelineEventsAround(roomId: RoomId, startFrom: EventId, configStart: GetTimelineEventConfig.() -> Unit = {}, configBefore: GetTimelineEventsConfig.() -> Unit = {}, configAfter: GetTimelineEventsConfig.() -> Unit = {}): List<Flow<TimelineEvent>>
Returns all timeline events around a starting event.
Parameters
config Start
The config for getting the startFrom.
config Before
The config for getting TimelineEvents before startFrom.
config After
The config for getting TimelineEvents after startFrom.