Keychain Screen View Model

class KeychainScreenViewModel : EquinoxViewModel

The KeychainScreenViewModel class is the support class used by com.tecknobit.glider.ui.screens.keychain.presenter.KeychainScreenTab to display and manage the passwords owned by the com.tecknobit.glider.localUser

Author

N7ghtm4r3 - Tecknobit

See also

Retriever.RetrieverWrapper

Constructors

Link copied to clipboard
constructor()

Properties

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

keywords the keywords used to filter the passwordsState result

Link copied to clipboard
val passwordsState: PaginationState<Int, Password>

passwordsState the state used to handle the pagination of the passwords list

Link copied to clipboard
lateinit var passwordTypes: SnapshotStateList<PasswordType>

passwordTypes the types of the password to filter the passwordsState result

Link copied to clipboard
lateinit var sessionFlowState: SessionFlowState

sessionFlowState the state used to manage the session lifecycle in the screen

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
fun copy(password: Password)

Method used to copy and notify the event

Link copied to clipboard
fun deletePassword(password: Password, onDelete: () -> Unit)

Method used to request the password deletion

Link copied to clipboard
expect fun <T : AutoCloseable> getCloseable(key: String): T?
Link copied to clipboard
fun refreshPassword(password: Password, onRefresh: () -> Unit)

Method used to request the password refreshing

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)