UserOverviewViewModel

class UserOverviewViewModel(application: Application) : AndroidViewModel

ViewModel for retrieving and deleting keys of a user.

Is used in UserOverviewFragment for key management.

Constructors

UserOverviewViewModel
Link copied to clipboard
fun UserOverviewViewModel(application: Application)

Properties

_removingKey
Link copied to clipboard
private var _removingKey: MutableLiveData<Boolean>
Represents whether a delete operation is still in progress or not.
credentialList
Link copied to clipboard
val credentialList: LiveData<List<Credential>>
List of all registered FIDO2 keys of a user.
removingKey
Link copied to clipboard
val removingKey: LiveData<Boolean>
repository
Link copied to clipboard
private val repository: AuthRepository
Instance of AuthRepository.

Inherited properties

mApplication
Link copied to clipboard
private val mApplication: Application
mBagOfTags
Link copied to clipboard
private val mBagOfTags: MutableMap<String, Any>?
mCleared
Link copied to clipboard
private val mCleared: Boolean

Functions

removeKey
Link copied to clipboard
fun removeKey(credentialId: String)
Remove Key.

Inherited functions

clear
Link copied to clipboard
fun clear()
getApplication
Link copied to clipboard
open fun <T : Application> getApplication(): T
getTag
Link copied to clipboard
open fun <T : Any> getTag(p0: String): T
onCleared
Link copied to clipboard
open fun onCleared()
setTagIfAbsent
Link copied to clipboard
open fun <T : Any> setTagIfAbsent(p0: String, p1: T): T