hwsecurity-ui / de.cotech.hw.ui / SecurityKeyDialogOptions / Builder /
Builder
abstract class Builder
Functions
Name | Summary |
---|---|
autoBuild | abstract fun autoBuild(): SecurityKeyDialogOptions |
build | open fun build(): SecurityKeyDialogOptions |
setAllowKeyboard |
abstract fun setAllowKeyboard(allowKeyboard: Boolean): SecurityKeyDialogOptions.Builder Shows a button to switch between numeric keypad and full soft-keyboard. |
setFormFactor |
abstract fun setFormFactor(formFactor: SecurityKeyDialogOptions.FormFactor): SecurityKeyDialogOptions.Builder Option to choose the form factor displayed after the PIN input. |
setPinLength |
abstract fun setPinLength(pinLength: Integer): SecurityKeyDialogOptions.Builder Setting a PIN length hides the “confirm PIN” (checkmark) button from the PIN input step.Instead, the PIN is automatically used when the correct length has been entered. |
setPinMode |
abstract fun setPinMode(pinMode: SecurityKeyDialogOptions.PinMode): SecurityKeyDialogOptions.Builder By default a PIN input is shown as most operations require a PIN authentication.For other operations NO_PIN_INPUT can be chosen. |
setPreventScreenshots |
abstract fun setPreventScreenshots(preventScreenshots: Boolean): SecurityKeyDialogOptions.Builder Sets FLAG_SECURE on the dialog fragment. |
setPukLength |
abstract fun setPukLength(pukLength: Integer): SecurityKeyDialogOptions.Builder Same as PIN length. |
setShowReset |
abstract fun setShowReset(showReset: Boolean): SecurityKeyDialogOptions.Builder Shows a button that allows the reset flow using the PUK.This allows the user to set a new PIN if the security key is blocked after 3 failed PIN attempts. |
setShowSdkLogo |
abstract fun setShowSdkLogo(showLogo: Boolean): SecurityKeyDialogOptions.Builder Shows the Hardware Security SDK Logo with a clickable linkDefault: false |
setTheme |
abstract fun setTheme(theme: Int): SecurityKeyDialogOptions.Builder Set your own custom theme for the dialog to change colors. |
setTitle |
abstract fun setTitle(title: String): SecurityKeyDialogOptions.Builder Title shown inside the dialogDefault: For PinMode. |