shouldExpandOnUpwardDrag

open fun shouldExpandOnUpwardDrag(dragDurationMillis: Long, @FloatRange(from = 0.0, to = 100.0) yPositionPercentage: Float): Boolean

Checks whether the bottom sheet should be expanded after it has been released after dragging.

Parameters

dragDurationMillis

how long the bottom sheet was dragged.

yPositionPercentage

position of the bottom sheet when released after dragging. Lower values mean that view was released closer to the top of the screen.