RoomList: make the main room list working (WIP)
This commit is contained in:
parent
3e9475c8ab
commit
4c0507a757
10 changed files with 146 additions and 328 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue