Applications Screen View Model

The ApplicationsScreenViewModel class is the support class used to execute the requests related to the com.tecknobit.ametista.ui.screens.applications.data.AmetistaApplication

Author

N7ghtm4r3 - Tecknobit

See also

Retriever
EquinoxViewModel

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val applicationsState: PaginationState<Int, AmetistaApplication>

applicationsState -> the state used to manage the pagination for the loadApplications method

Link copied to clipboard

filterQuery -> the query filter typed

Link copied to clipboard
lateinit var platformsFilter: SnapshotStateList<Platform>

platformsFilter -> the list of platforms to use as filter

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
fun deleteApplication(application: AmetistaApplication, onDelete: () -> Unit)

Method to delete an application

Link copied to clipboard
expect fun <T : AutoCloseable> getCloseable(key: String): T?
Link copied to clipboard
fun managePlatforms(platform: Platform)
fun managePlatforms(checked: Boolean, platform: Platform)

Method to remove or add a platform to the platformsFilter list

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)