SecureVerificationNumberField

fun SecureVerificationNumberField(onValueChange: (SpreedlySecureOpaqueString, Boolean) -> Unit, textStyle: TextStyle, shape: Shape, colors: TextFieldColors, textFieldPadding: PaddingValues, cardBrand: CardBrand, modifier: Modifier = Modifier, label: @Composable () -> Unit)

Composable function representing a secure input field for entering verification numbers (CVV/CVC).

Parameters

onValueChange

The callback triggered when the value of the verification number changes. It receives the entered verification number as well as a flag indicating its validity.

textStyle

The text style to be applied to the input text.

shape

The shape customization for the verification number input field.

colors

The colors customization for the text field.

textFieldPadding

The padding to be applied to the input field.

cardBrand

The brand of the credit card. If unknown or null, will validate with either 3 or 4 digits. If AmEx, will validate with 4 digits. Otherwise, will validate with 3 digits.

modifier

The modifier for the verification number input field.

label

The composable function used to display the label for the input field. It provides a label as a content parameter.