SignInViewModel

class SignInViewModel @Inject constructor(client: AppHttpClient, savedStateHandle: SavedStateHandle) : ViewModel

ViewModel for SignInScreen

Constructors

SignInViewModel
Link copied to clipboard
@Inject
fun SignInViewModel(client: AppHttpClient, savedStateHandle: SavedStateHandle)

Functions

signInCode
Link copied to clipboard
private fun signInCode(code: String)

Properties

_error
Link copied to clipboard
private val _error: MutableStateFlow<String?>

Error response

_loading
Link copied to clipboard
private val _loading: MutableStateFlow<Boolean>

Loading query

_response
Link copied to clipboard
private val _response: MutableStateFlow<SecurityModel?>

Error response

client
Link copied to clipboard
private val client: AppHttpClient
code
Link copied to clipboard
val code: String?

Arg deep link code

error
Link copied to clipboard
val error: StateFlow<String?>

StateFlow for _error

loading
Link copied to clipboard
val loading: StateFlow<Boolean>

StateFlow for _loading

response
Link copied to clipboard
val response: StateFlow<SecurityModel?>

StateFlow for _response

state
Link copied to clipboard
val state: String?

Arg deep link state