RoomList: make the main room list working (WIP)

This commit is contained in:
ganfra 2023-06-20 23:22:58 +02:00
parent 3e9475c8ab
commit 4c0507a757
10 changed files with 146 additions and 328 deletions

View file

@ -19,6 +19,15 @@ package io.element.android.libraries.matrix.api.room
import kotlinx.coroutines.flow.StateFlow
interface RoomSummaryDataSource {
enum class LoadingState {
NotLoaded,
PreLoaded,
PartiallyLoaded,
FullyLoaded,
}
fun loadingState(): StateFlow<LoadingState>
fun roomSummaries(): StateFlow<List<RoomSummary>>
fun setSlidingSyncRange(range: IntRange)
}