setPeekHeight

fun setPeekHeight(peekHeight: Int, animate: Boolean)

Sets the height of the bottom sheet when it is collapsed while optionally animating between the old height and the new height.

Parameters

peekHeight

The height of the collapsed bottom sheet in pixels, or PEEK_HEIGHT_AUTO to configure the sheet to peek automatically at 16:9 ratio keyline.

animate

Whether to animate between the old height and the new height.