EasyFormsSliderState

data class EasyFormsSliderState(defaultValue: Float, isRequired: Boolean) : EasyFormsState<MutableState<Float>, Float>

Constructors

EasyFormsSliderState
Link copied to clipboard
fun EasyFormsSliderState(defaultValue: Float = 0F, isRequired: Boolean = true)

Functions

mapToResult
Link copied to clipboard
open override fun mapToResult(key: Any): EasyFormsResult.SliderStateResult
rememberSaveable
Link copied to clipboard
fun rememberSaveable(): MutableState<Float>
Returns a rememberSaveable state that will survive across configuration changes

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
open override val onValueChangedCallback: (Float) -> 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 neccessary.
onValueChangeFinished
Link copied to clipboard
val onValueChangeFinished: () -> Unit
Triggered when the user stops sliding the Slider to determine the error state.
state
Link copied to clipboard
open override val state: MutableState<Float>
This is the ST you defined when you inherited from this class.

Sources

androidJvm source
Link copied to clipboard