CvcController

class CvcController(cvcTextFieldConfig: CvcConfig = CvcConfig(), cardBrandFlow: StateFlow<CardBrand>, val initialValue: String? = null, val showOptionalLabel: Boolean = false) : TextFieldController, SectionFieldErrorController

Constructors

Link copied to clipboard
constructor(cvcTextFieldConfig: CvcConfig = CvcConfig(), cardBrandFlow: StateFlow<CardBrand>, initialValue: String? = null, showOptionalLabel: Boolean = false)

Properties

Link copied to clipboard
open override val autofillType: AutofillType
Link copied to clipboard
Link copied to clipboard
open override val contentDescription: StateFlow<String>
Link copied to clipboard
open override val debugLabel: String
Link copied to clipboard
open val enabled: Boolean
Link copied to clipboard
open override val error: StateFlow<FieldError?>

An error must be emitted if it is visible or not visible.

Link copied to clipboard
open override val fieldState: StateFlow<TextFieldState>
Link copied to clipboard
open override val fieldValue: StateFlow<String>
Link copied to clipboard
open override val formFieldValue: StateFlow<FormFieldEntry>
Link copied to clipboard
open override val initialValue: String? = null
Link copied to clipboard
open override val isComplete: StateFlow<Boolean>
Link copied to clipboard
open override val keyboardType: KeyboardType
Link copied to clipboard
open override val label: StateFlow<Int>
Link copied to clipboard
open override val loading: StateFlow<Boolean>
Link copied to clipboard
open val placeHolder: StateFlow<String?>
Link copied to clipboard
open override val rawFieldValue: StateFlow<String>
Link copied to clipboard
open override val showOptionalLabel: Boolean = false
Link copied to clipboard
open override val trailingIcon: StateFlow<TextFieldIcon?>
Link copied to clipboard
open override val visibleError: StateFlow<Boolean>
Link copied to clipboard

Functions

Link copied to clipboard
open override fun ComposeUI(enabled: Boolean, field: SectionFieldElement, modifier: Modifier, hiddenIdentifiers: Set<IdentifierSpec>, lastTextFieldIdentifier: IdentifierSpec?, nextFocusDirection: FocusDirection, previousFocusDirection: FocusDirection)
Link copied to clipboard
open override fun onFocusChange(newHasFocus: Boolean)
Link copied to clipboard
open override fun onRawValueChange(rawValue: String)

This is called when the value changed to is a raw backing value, not a display value.

Link copied to clipboard
open override fun onValueChange(displayFormatted: String): TextFieldState?

This is called when the value changed to is a display value.