Package-level declarations

Types

Link copied to clipboard
data class CapturedValidationState(engine: ValidationEngine, input: String)
Link copied to clipboard
data class FailedValidationResult(val id: UUID, val message: StringResource)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class ValidationRule(val rule: (String) -> Boolean, val message: StringResource, val effect: CascadingValidationEffect = CascadingValidationEffect.CONTINUE)

Properties

Functions

Link copied to clipboard
fun OutlinedValidatedTextField(value: String, onValueChange: (String) -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, readOnly: Boolean = false, textStyle: TextStyle = LocalTextStyle.current, label: @Composable () -> Unit? = null, placeholder: @Composable () -> Unit? = null, leadingIcon: @Composable () -> Unit? = null, trailingIcon: @Composable () -> Unit? = null, prefix: @Composable () -> Unit? = null, suffix: @Composable () -> Unit? = null, footer: @Composable () -> Unit? = null, visualTransformation: VisualTransformation = VisualTransformation.None, keyboardOptions: KeyboardOptions = KeyboardOptions.Default, keyboardActions: KeyboardActions = KeyboardActions.Default, singleLine: Boolean = false, maxLines: Int = if (singleLine) 1 else Int.MAX_VALUE, minLines: Int = 1, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, shape: Shape = OutlinedTextFieldDefaults.shape, colors: TextFieldColors = OutlinedTextFieldDefaults.colors())
Link copied to clipboard
Link copied to clipboard
fun Validate(predicate: Boolean, message: StringResource, coroutineScope: CoroutineScope = rememberCoroutineScope(), debounceDuration: Duration = DEFAULT_VALIDATION_DEBOUNCE_DURATION, content: @Composable () -> Unit)
fun Validate(input: String, rules: List<ValidationRule>, coroutineScope: CoroutineScope = rememberCoroutineScope(), debounceDuration: Duration = DEFAULT_VALIDATION_DEBOUNCE_DURATION, content: @Composable () -> Unit)
Link copied to clipboard
fun ValidatedTextField(value: String, onValueChange: (String) -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, readOnly: Boolean = false, textStyle: TextStyle = LocalTextStyle.current, label: @Composable () -> Unit? = null, placeholder: @Composable () -> Unit? = null, leadingIcon: @Composable () -> Unit? = null, trailingIcon: @Composable () -> Unit? = null, prefix: @Composable () -> Unit? = null, suffix: @Composable () -> Unit? = null, footer: @Composable () -> Unit? = null, visualTransformation: VisualTransformation = VisualTransformation.None, keyboardOptions: KeyboardOptions = KeyboardOptions.Default, keyboardActions: KeyboardActions = KeyboardActions.Default, singleLine: Boolean = false, maxLines: Int = if (singleLine) 1 else Int.MAX_VALUE, minLines: Int = 1, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, shape: Shape = TextFieldDefaults.shape, colors: TextFieldColors = TextFieldDefaults.colors())