BaseFieldState

abstract class BaseFieldState

Common state contract shared by every VGS Compose field state (card number, CVC, expiry, SSN, cardholder, generic text).

Instances are immutable — every keystroke produces a new state object. The raw text value is never exposed publicly; submit the state via VGSCollect.asyncSubmit(...) and the SDK reads it internally.

Obtain concrete states with the matching rememberVgs…TextFieldState factory (e.g. rememberVgsCardNumberTextFieldState), then pass them to the corresponding Vgs…TextField composable.

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

current length of the entered value.

Link copied to clipboard

JSON key the value is sent under in the submit payload.

Link copied to clipboard

true when the field has no input.

Link copied to clipboard

true when every validator reports a valid result.

Link copied to clipboard

optional tokenization settings; when present, the value is tokenized on submit and the token is sent in its place.

Link copied to clipboard

per-validator outcomes for the current value.

Link copied to clipboard

custom validators applied to the value, or null to use the field's default validators.

Functions

Link copied to clipboard
open override fun toString(): String