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

The current thread list state.

Functions

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.

Inherited functions

Link copied to clipboard
open fun addCloseable(closeable: AutoCloseable)
fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
@JvmName(name = "bind")
fun ThreadListViewModel.bindView(view: ThreadListView, lifecycleOwner: LifecycleOwner)

Binds ThreadListView to a ThreadListViewModel, updating the view's state based on data provided by the ViewModel and propagating view events to the ViewModel as needed.

Link copied to clipboard