Join Project Screen View Model

The JoinProjectScreenViewModel class is the support class used by the JoinProjectScreen to execute the requests to join in a project

Author

N7ghtm4r3 - Tecknobit

Parameters

snackbarHostState

: the host to launch the snackbar messages

See also

FetcherManagerWrapper
EquinoxViewModel

Constructors

Link copied to clipboard
constructor(snackbarHostState: SnackbarHostState)

Properties

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

host -> the value of the host to reach

Link copied to clipboard

hostError -> whether the host field is not valid

Functions

Link copied to clipboard
fun joinWithCode(joinCode: String)

Function to execute the request to join in a project by a join code

Link copied to clipboard
fun joinWithScannedQR(content: String)

Function to execute the request to join in a project by a scan a join code