ThreadListViewModel

ViewModel responsible for managing the state of a threads list.

Parameters

controller

The ThreadListController handling the business logic and the state management for the threads list.

Constructors

Link copied to clipboard
constructor(controller: ThreadListController)

Properties

Link copied to clipboard
val state: StateFlow<ThreadListState>

The current thread list state.

Functions

Link copied to clipboard
open fun addCloseable(closeable: AutoCloseable)
fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
Link copied to clipboard
fun load()

Loads the initial data when requested. Overrides all previously retrieved data.

Link copied to clipboard

Loads more data when requested.