OtpMask

sealed interface OtpMask(source)

Visual masking of entered characters. Masking also switches the Android keyboard to a password keyboard, marks the field as a password for screen readers, and blocks copy, so visual and assistive-technology privacy stay consistent. Entries may be added in future versions; handle unknown values with an else branch.

Inheritors

Types

Link copied to clipboard
class Character(val char: Char = '*') : OtpMask

Each entered digit is drawn as char.

Link copied to clipboard
data object FilledCell : OtpMask

Each entered cell is filled with its current border color and shows no glyph.

Link copied to clipboard
data object None : OtpMask

Digits are shown.