Package-level declarations

Types

Link copied to clipboard
class KeyDetailViewModel @Inject constructor(keyRepository: KeyRepository) : ViewModel

androidx.lifecycle.ViewModel providing read-only detail and export access for a single key ring; all repository access happens on Dispatchers.IO.

Link copied to clipboard
class KeyListViewModel @Inject constructor(keyRepository: KeyRepository, cryptoOperations: CryptoOperations, settingsRepository: SettingsRepository) : ViewModel

ViewModel backing the key list and key detail screens.

Link copied to clipboard
data class KeySearchUiState(val query: String = "", val hits: List<KeyserverHit> = emptyList(), val error: String? = null, val status: String? = null, val isBusy: Boolean = false)

Immutable UI state for the keyserver search screen.

Link copied to clipboard
class KeySearchViewModel @Inject constructor(keyserverClient: KeyserverClient, keyRepository: KeyRepository, settingsRepository: SettingsRepository) : ViewModel

ViewModel that performs keyserver lookups and imports the fetched public key into the local repository.

Link copied to clipboard
data class KeyserverHit(val userId: String?, val keyId: Long, val fingerprint: String)

A single key result returned from a keyserver lookup.

Functions

Link copied to clipboard
fun CreateKeyScreen(onBack: () -> Unit, viewModel: KeyListViewModel = hiltViewModel())

Key creation screen.

Link copied to clipboard
fun ImportKeyScreen(onBack: () -> Unit, viewModel: KeyListViewModel = hiltViewModel())

Key import screen.

Link copied to clipboard
fun KeyDetailScreen(keyId: Long, onBack: () -> Unit, listViewModel: KeyListViewModel, detailViewModel: KeyDetailViewModel = hiltViewModel())

Detail screen for a single key ring.

Link copied to clipboard
fun KeyListScreen(onCreateKey: () -> Unit, onImportKey: () -> Unit, onSearchKeys: () -> Unit, onKeyClick: (Long) -> Unit, showTopBar: Boolean = true, viewModel: KeyListViewModel = hiltViewModel())

Key list screen listing the user's secret and public keys.

Link copied to clipboard
fun KeySearchScreen(onBack: () -> Unit, viewModel: KeySearchViewModel = hiltViewModel())

Keyserver search screen: lets the user query by fingerprint/user id and import the returned public key.