Application View Model

abstract class ApplicationViewModel

The ApplicationViewModel class is the support class used to execute the managing requests related to an AmetistaApplication

Author

N7ghtm4r3 - Tecknobit

See also

EquinoxViewModel
ViewModel
FetcherManagerWrapper

Inheritors

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

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

Functions

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