NotesScreenViewModel

class NotesScreenViewModel : EquinoxViewModel, NotesManager

The NotesScreenViewModel class is the support class used to manage the com.tecknobit.pandoro.ui.screens.notes.presenter.NotesScreen

Author

N7ghtm4r3 - Tecknobit

See also

Retriever.RetrieverWrapper
EquinoxViewModel

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val notesState: PaginationState<Int, Note>

notesState -> the state used to manage the pagination for the retrieveNotes method

Link copied to clipboard

selectCompletedNotes -> whether select the completed notes

Link copied to clipboard

selectToDoNotes -> whether select the to-do notes

Link copied to clipboard

Functions

Link copied to clipboard
expect open fun addCloseable(closeable: AutoCloseable)
expect fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
open override fun canRetrieverStart(): Boolean
Link copied to clipboard
open override fun continueToRetrieve(currentContext: KClass<*>): Boolean
Link copied to clipboard
open override fun deleteNote(update: ProjectUpdate?, note: Note, onDelete: () -> Unit)

Method to delete a note

Link copied to clipboard
expect fun <T : AutoCloseable> getCloseable(key: String): T?
Link copied to clipboard

Method to manage the selectCompletedNotes filter and apply if needed to the notesState

Link copied to clipboard
open override fun manageNoteStatus(update: ProjectUpdate?, note: Note)

Method to manage the status of the note

Link copied to clipboard

Method to manage the selectToDoNotes filter and apply if needed to the notesState

Link copied to clipboard
open override fun restartRetriever()
Link copied to clipboard
open fun restartRetrieverIf(condition: Boolean)
Link copied to clipboard
open override fun retrieve(currentContext: KClass<*>, routine: suspend () -> Unit, repeatRoutine: Boolean, refreshDelay: Long)
Link copied to clipboard
open fun setActiveContext(currentContext: KClass<*>)
Link copied to clipboard
fun showSnackbarMessage(response: JsonObject)
fun showSnackbarMessage(message: StringResource)
Link copied to clipboard
open override fun suspendRetriever()
Link copied to clipboard
open fun suspendRetrieverIf(condition: Boolean)