onSlide

abstract fun onSlide(@NonNull sheet: View, slideOffset: Float)

Called when the sheet is being dragged.

Parameters

sheet

The sheet view.

slideOffset

The new offset of this sheet within [0,1] range. Offset increases as this sheet is moving towards the outer edge. A value of 0 means that the sheet is hidden, and a value of 1 means that the sheet is fully expanded.