DismissalStrategy
Define dismissal behavior of an animation.
Parameters
context
Context.
dismissViewWidthThreshold
A constant to determine width proportion threshold to dismiss a view. This constant should be in range 0f to 1f.
Constructors
Types
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.
Link copied to clipboard
Get an area within which a view can be dragged.