defaultToHumanReadable
suspend fun defaultToHumanReadable(unlockReason: Reason, passphraseConstraints: PassphraseConstraints?): Reason.HumanReadable
Default implementation of ConvertToHumanReadableFn for use in PromptDialogs.
Uses translated string resources from the multipaz-compose module. Handles Reason.HumanReadable (passes through as-is), PresentmentUnlockReason with appropriate subtitle based on whether the expected input is biometric, PIN, or passphrase, FaceMatchingReason for face matching prompts, and FaceLivenessReason for face liveness prompts. All other Reason values are mapped to a generic unlock prompt.
Return
a Reason.HumanReadable containing localized title/subtitle text for display.
Parameters
unlockReason
the reason a secure unlock prompt is being requested.
passphraseConstraints
optional constraints that indicate whether passphrase input is expected, and if so, whether it must be numerical.