EasyFormsState

abstract class EasyFormsState<ST, CT>

Parameters

ST

defines the State type, for ex: MutableState, SnapshotStateList etc.

CT

defines the type to use in onValueChangedCallback.

Constructors

EasyFormsState
Link copied to clipboard
fun EasyFormsState()
defines the State type, for ex: MutableState, SnapshotStateList etc.

Functions

mapToResult
Link copied to clipboard
abstract fun mapToResult(key: Any): EasyFormsResult
restoreState
Link copied to clipboard
open fun restoreState(bundle: Bundle)
Each Bundle is tied to your EasyFormsState unique key.
saveState
Link copied to clipboard
open fun saveState(bundle: Bundle)
Each Bundle is tied to your EasyFormsState unique key.

Properties

errorState
Link copied to clipboard
val errorState: MutableState<EasyFormsErrorState>
The error state that is used across all children of EasyFormsState.
onValueChangedCallback
Link copied to clipboard
abstract val onValueChangedCallback: (CT) -> Unit
This callback is usually being used by most of Form fields of Compose, however there are some widgets that can't use this callback, therefore please ignore its implementation when its not necessary.
state
Link copied to clipboard
abstract val state: ST
This is the ST you defined when you inherited from this class.

Inheritors

EasyFormsTextFieldState
Link copied to clipboard
EasyFormsCheckboxState
Link copied to clipboard
EasyFormsTriCheckboxState
Link copied to clipboard
EasyFormsRadioButtonState
Link copied to clipboard
EasyFormsSwitchState
Link copied to clipboard
EasyFormsSliderState
Link copied to clipboard
EasyFormsRangeSliderState
Link copied to clipboard

Sources

androidJvm source
Link copied to clipboard