LeftSideDismissalStrategy

class LeftSideDismissalStrategy(context: Context, dismissViewWidthThreshold: Float) : DismissalStrategy

Functions

Link copied to clipboard
open override fun getMovableArea(view: View): ClosedFloatingPointRange<Float>

Get an area within which a view can be dragged.

Inherited functions

Link copied to clipboard
fun getDismissDirection(view: View, horizontalVelocityPx: Float, horizontalDirection: HorizontalDirectionTracker.Direction): DismissalStrategy.DismissDirection?

Gets a direction that a view dragged with horizontalVelocityPx in horizontalDirection should be dismissed, if it should, otherwise returns the null.