Package com.maxkeppeler.sheets.input.type

Types

Link copied to clipboard
typealias ButtonToggleGroupInputListener = (index: Int) -> Unit

Listener that returns the new index.

Link copied to clipboard
typealias CheckBoxInputListener = (value: Boolean) -> Unit

Listener which returns the new value.

Link copied to clipboard
typealias EditTextInputListener = (value: CharSequence?) -> Unit

Listener that returns the new value.

Link copied to clipboard
typealias EditTextInputValidationListener = (value: CharSequence) -> ValidationResult

Listener that is invoked when the value changes and to which a custom validation logic can be executed.

Link copied to clipboard
abstract class Input(key: String? = null)

The base class of any input. Every input can have a label and a drawable. It can be optional or required.

Link copied to clipboard
class InputButtonToggleGroup(key: String? = null, func: InputButtonToggleGroup.() -> Unit) : Input

Input of the type ButtonToggleGroup.

Link copied to clipboard
class InputCheckBox(key: String? = null, func: InputCheckBox.() -> Unit) : Input

Input of the type Checkbox.

Link copied to clipboard
class InputCustom(key: String? = null, func: InputCustom.() -> Unit) : Input

Input of a unknown type displayed in a custom view.

Link copied to clipboard
typealias InputCustomDataChangeListener = () -> Unit

Listener that is invoked when the data of the input changed.

Link copied to clipboard
typealias InputCustomViewListener = (view: View) -> Unit

Listener that is invoked when the view is ready.

Link copied to clipboard
class InputEditText(key: String? = null, func: InputEditText.() -> Unit) : Input

Input of the type EditText.

Link copied to clipboard
class InputRadioButtons(key: String? = null, func: InputRadioButtons.() -> Unit) : Input

Input of the type RadioButton.

Link copied to clipboard
class InputSeparator(key: String? = null, func: InputSeparator.() -> Unit? = null) : Input

Represents a separator view that can be used to create the visual effect that following inputs belong to a specific section.

Link copied to clipboard
class InputSwitch(key: String? = null, func: InputSwitch.() -> Unit) : Input

Input of the type Switch.

Link copied to clipboard
typealias RadioButtonsInputListener = (index: Int) -> Unit

Listener which returns the new index.

Link copied to clipboard
typealias SwitchInputListener = (value: Boolean) -> Unit

Listener which returns the new value.