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) and PresentmentUnlockReason with appropriate subtitle based on whether the expected input is biometric, PIN, or passphrase. 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.