PassphrasePinScreen

fun PassphrasePinScreen(title: String, content: String, constraints: PassphraseConstraints, onSubmitPin: (String) -> Unit, onCancel: () -> Unit)

Composes a full screen with PassphraseFieldEntry and custom numerical key pad to use for PINs.

With fixed length constraints the user cannot tap on a "Done" button because it is automatically submitted when user enters the required number of digits - so only the Cancel button is composed on the bottom right that changes to "Delete" the moment digits start to be tapped. Tapping on Delete will delete the last tapped digit until there's no digits remaining/showing and the button's text changes back to "Cancel" that cancels the prompt.

For non-fixed constraints the user has the option to submit the entered PIN at any point unless the maximum number of digits has been entered that automatically submits the PIN. The Cancel/Delete button is composed on the bottom left and the "Done" button on the bottom right.