mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
RoomList: make the main room list working (WIP)
This commit is contained in:
+9
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user