Applications Screen View Model

The ApplicationsScreenViewModel class is the support class used to execute the requests related to the ApplicationsScreen

Author

N7ghtm4r3 - Tecknobit

See also

EquinoxViewModel
ViewModel
FetcherManagerWrapper

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

appDescription -> the value of the application description

Link copied to clipboard

appDescriptionError -> whether the appDescription field is not valid

Link copied to clipboard
lateinit var appIcon: MutableState<String>

appIcon -> the application icon

Link copied to clipboard

appIconBorderColor -> the color used for the application icon picker

Link copied to clipboard
lateinit var appName: MutableState<String>

appName -> the value of the application name

Link copied to clipboard

appNameError -> whether the appName field is not valid

Link copied to clipboard

filterQuery -> the query filter typed

Link copied to clipboard
val paginationState: <Error class: unknown class>

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

Link copied to clipboard
lateinit var platformsFilter: SnapshotStateList<<Error class: unknown class>>

platformsFilter -> the list of platforms to use as filter

Link copied to clipboard

workOnApplication -> the state to allow the creation or the editing of an application

Functions

Link copied to clipboard

Method to clear the current filters selected by the user

Link copied to clipboard
open fun deleteApplication(application: <Error class: unknown class>, onDelete: () -> Unit)

Method to delete an application

Link copied to clipboard
fun editApplication(application: <Error class: unknown class>, onSuccess: () -> Unit)

Method to edit an existing application

Link copied to clipboard
fun managePlatforms(platform: <Error class: unknown class>)
fun managePlatforms(checked: Boolean, platform: <Error class: unknown class>)

Method to remove or add a platform to the platformsFilter list

Link copied to clipboard
fun workOnApplication(application: <Error class: unknown class>?, onSuccess: () -> Unit)

Method to work on an application