Upsert Application Screen View Model

class UpsertApplicationScreenViewModel(applicationId: String? = null) : EquinoxViewModel

The UpsertApplicationScreenViewModel class is the support class used to insert or update an AmetistaApplication

Author

N7ghtm4r3 - Tecknobit

Parameters

applicationId

The identifier of the application to edit

See also

Retriever
EquinoxViewModel

Constructors

Link copied to clipboard
constructor(applicationId: String? = null)

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
var appIconPayload: PlatformFile?

appIconPayload -> the payload of the application icon to set

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

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
expect fun <T : AutoCloseable> getCloseable(key: String): T?
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

Method to retrieve the existing application data if needed

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)
Link copied to clipboard

Method to work on an application