animateStateTransition

abstract fun animateStateTransition(layout: ResponsivePaneLayout, toState: PaneState, skipAnimation: Boolean, callback: ResponsivePaneSlideOffsetCallback? = null, onAnimationEnd: () -> Unit)

Moves the drawer in layout to toState.

Parameters

skipAnimation

whether to move immediately to the final width.

callback

optional listener for width progress.

onAnimationEnd

transition-end callback; implementations may also invoke it on cancellation. The resize strategy does not invoke it if no drawer is available.