ConvertToHumanReadableFn

typealias ConvertToHumanReadableFn = suspend (unlockReason: UnlockReason, passphraseConstraints: PassphraseConstraints?) -> UnlockReason.HumanReadable

A function that converts arbitrary UnlockReason to a human-readable kind UnlockReason.HumanReadable.

The result is then used to create a prompt for the user input. If the expected input requires user to enter application-defined data (e.g. a PIN or a passphrase), passphraseConstraints describes the required input. When the expected input is determined by the OS (e.g. biometrics), passphraseConstraints is null.