create

Creates a new PCIFieldState instance. Use this factory method when you need to create PCI field states outside of a Composable, for example in a ViewModel to survive configuration changes.

class PaymentViewModel : ViewModel() {
val cardNumberState = PCIFieldState.create()
}