OtpCellState

class OtpCellState(val index: Int, val char: Char?, val isFocused: Boolean, val isError: Boolean, val isEnabled: Boolean)(source)

What a single cell needs to know to draw itself. OtpInputField passes one to its cell slot.

Constructors

Link copied to clipboard
constructor(index: Int, char: Char?, isFocused: Boolean, isError: Boolean, isEnabled: Boolean)

Properties

Link copied to clipboard
val char: Char?

The character in this cell, or null while it's empty.

Link copied to clipboard
val index: Int

Position of the cell, starting at 0.

Link copied to clipboard

False when the field is disabled.

Link copied to clipboard

True while the field is in the error state.

Link copied to clipboard
Link copied to clipboard

True for the cell the next digit goes into, while the field has focus.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String