RecyclerView.OnFlingListener

public static abstract class RecyclerView.OnFlingListener
extends Object

java.lang.Object
   ↳ androidx.recyclerview.widget.RecyclerView.OnFlingListener


This class defines the behavior of fling if the developer wishes to handle it.

Subclasses of RecyclerView.OnFlingListener can be used to implement custom fling behavior.

Summary

Public constructors

OnFlingListener()

Public methods

abstract boolean onFling(int velocityX, int velocityY)

Override this to handle a fling given the velocities in both x and y directions.

Inherited methods