Auth Screen View Model

class AuthScreenViewModel : EquinoxAuthViewModel

The AuthScreenViewModel class is the support class used to execute the authentication requests to the backend

Author

N7ghtm4r3 - Tecknobit

See also

Retriever
EquinoxViewModel
EquinoxAuthViewModel

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
lateinit var email: MutableState<String>
Link copied to clipboard
Link copied to clipboard
lateinit var host: MutableState<String>
Link copied to clipboard
Link copied to clipboard
lateinit var isSignUp: MutableState<Boolean>
Link copied to clipboard
lateinit var name: MutableState<String>
Link copied to clipboard
Link copied to clipboard
lateinit var password: MutableState<String>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
lateinit var surname: MutableState<String>
Link copied to clipboard
Link copied to clipboard
lateinit var tagName: MutableState<String>

tagName the tag name of the user

Link copied to clipboard

tagNameError whether the tagName field is not valid

Functions

Link copied to clipboard
expect open fun addCloseable(closeable: AutoCloseable)
expect fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
fun auth()
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
open fun setActiveContext(currentContext: KClass<*>)
Link copied to clipboard
fun showSnackbarMessage(message: String, actionLabel: String?, onDismiss: () -> Unit?, onActionPerformed: () -> Unit?, withDismissAction: Boolean, duration: SnackbarDuration)
fun showSnackbarMessage(response: JsonObject, actionLabel: String?, onDismiss: () -> Unit?, onActionPerformed: () -> Unit?, withDismissAction: Boolean, duration: SnackbarDuration)
fun showSnackbarMessage(message: StringResource, actionLabel: StringResource?, onDismiss: () -> Unit?, onActionPerformed: () -> Unit?, withDismissAction: Boolean, duration: SnackbarDuration)
Link copied to clipboard
open override fun suspendRetriever()
Link copied to clipboard
open fun suspendRetrieverIf(condition: Boolean)