Package-level declarations

Types

Link copied to clipboard
data class PinPrompt(val title: String = "", val subtitle: String = "", var description: String = "")

Data class representing the prompt information displayed in the PIN collection dialog.

Link copied to clipboard
data class UserKeyOption(val id: String, val username: String, val authenticationType: String)

Data class representing a user key option that can be selected for device binding authentication.

Functions

Link copied to clipboard
suspend fun collectPin(activity: Activity, title: String, subtitle: String, description: String): CharArray

Collects an application PIN from the user via a Jetpack Compose dialog.

Link copied to clipboard
suspend fun collectUserKey(activity: Activity, userKeys: List<UserKeyOption> = emptyList()): UserKeyOption

Collects a user key selection from the user via a Jetpack Compose dialog.

Link copied to clipboard
fun PinCollectorDialog(prompt: PinPrompt, onPinEntered: (String) -> Unit, onCancelled: () -> Unit)

A Jetpack Compose dialog for collecting an application PIN from the user.

Link copied to clipboard
fun UserKeyDialog(userKeys: List<UserKeyOption>, onUserKeySelected: (UserKeyOption) -> Unit, onCancelled: () -> Unit)

A Jetpack Compose dialog for selecting a user key from multiple registered device bindings.