OtpAnimationSpec
class OtpAnimationSpec(val shakeOnError: Boolean, val cellEntryAnimation: CellAnimation, val animationDuration: Int, val shakeAmplitude: Dp, val shakeStepDuration: Int, val shakeRepeatCount: Int)(source)
Animation settings for OTP cells. Get one from OtpInputDefaults.animationSpec.
Properties
Link copied to clipboard
Duration of color, border and entry animations, in milliseconds.
Link copied to clipboard
How a newly typed character appears.
Link copied to clipboard
How far a cell moves to each side while shaking.
Link copied to clipboard
Shake the cells sideways when the field switches into the error state.
Link copied to clipboard
Number of side to side movements in one shake.
Link copied to clipboard
Duration of a single shake movement, in milliseconds.
Functions
Link copied to clipboard
fun copy(shakeOnError: Boolean = this.shakeOnError, cellEntryAnimation: CellAnimation = this.cellEntryAnimation, animationDuration: Int = this.animationDuration, shakeAmplitude: Dp = this.shakeAmplitude, shakeStepDuration: Int = this.shakeStepDuration, shakeRepeatCount: Int = this.shakeRepeatCount): OtpAnimationSpec