OtpCursorConfig

class OtpCursorConfig(val color: Color, val width: Dp, val height: Dp, val cornerRadius: Dp, val blinkInterval: Long)(source)

The blinking bar shown in the focused cell while it's empty. Get one from OtpInputDefaults.cursorConfig.

Constructors

Link copied to clipboard
constructor(color: Color, width: Dp, height: Dp, cornerRadius: Dp, blinkInterval: Long)

Properties

Link copied to clipboard

Time for the cursor to fade out or back in, in milliseconds.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val height: Dp
Link copied to clipboard
val width: Dp

Functions

Link copied to clipboard
fun copy(color: Color = this.color, width: Dp = this.width, height: Dp = this.height, cornerRadius: Dp = this.cornerRadius, blinkInterval: Long = this.blinkInterval): OtpCursorConfig
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int