Prompt
Represents user interface prompt information for authentication dialogs and user interactions.
This data class encapsulates the textual content displayed to users during authentication flows, providing consistent messaging across different authentication methods such as biometric authentication, PIN entry, and device binding operations.
The prompt information is used to:
Configure BiometricPrompt dialogs with appropriate context
Display meaningful messages during PIN collection
Provide user guidance during device binding and signing operations
Ensure consistent user experience across authentication flows
Example usage:
val prompt = Prompt(
title = "Authenticate for Device Binding",
subtitle = "Secure your account",
description = "Use your fingerprint to complete device registration"
)Parameters
The primary title displayed prominently in authentication dialogs. Should be concise and clearly indicate the purpose of the authentication. Defaults to an empty string if not specified.
The secondary text displayed below the title in authentication dialogs. Provides additional context about the authentication request. Defaults to an empty string if not specified.
The detailed explanatory text shown in authentication dialogs. Should explain why authentication is required and what will happen. This property is mutable to allow dynamic updates based on context. Defaults to an empty string if not specified.