Application Screen View Model

open class ApplicationScreenViewModel(val applicationId: String) : ApplicationViewModel

The ApplicationScreenViewModel class is the support class used to execute the requests related to the AmetistaApplication displayed by the ApplicationScreen

Author

N7ghtm4r3 - Tecknobit

Parameters

applicationId

The identifier of the application displayed

See also

EquinoxViewModel
ViewModel
FetcherManagerWrapper

Constructors

Link copied to clipboard
constructor(applicationId: String)

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
val application: StateFlow<<Error class: unknown class>?>
Link copied to clipboard
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 override 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

Method to refresh the application details