animateHeightBy

fun M2Rect.animateHeightBy(durationMillis: Long, dHeight: Float, repeat: M2AnimatorRepeat = M2AnimatorRepeat.None, apply: Boolean = false, callback: IM2AnimatorCallback? = null): M2Animator

Animates this rectangle's height by a relative delta dHeight over the given duration.

Return

M2Animator — the configured height animator (not yet started).

Parameters

durationMillis

The Long animation duration in milliseconds.

dHeight

The Float height change in pixels.

repeat
apply

Booleantrue to synchronize the SDK-side height on stop.

callback

An optional IM2AnimatorCallback to receive lifecycle events.