BandPredicate

public abstract class BandPredicate
extends Object

java.lang.Object
   ↳ androidx.recyclerview.selection.BandPredicate


Provides a means of controlling when and where band selection can be initiated.

Two default implementations are provided: BandPredicate.EmptyArea, and BandPredicate.NonDraggableArea.

Summary

Nested classes

class BandPredicate.EmptyArea

A BandPredicate that allows initiation of band selection only in areas of RecyclerView that map to RecyclerView.NO_POSITION

class BandPredicate.NonDraggableArea

A BandPredicate that allows initiation of band selection in any area that is not draggable as determined by consulting ItemDetailsLookup.ItemDetails.inDragRegion(MotionEvent)

Public constructors

BandPredicate()

Public methods

abstract boolean canInitiate(MotionEvent e)

Inherited methods

Public constructors

BandPredicate

public BandPredicate ()

Public methods

canInitiate

public abstract boolean canInitiate (MotionEvent e)

Parameters
e MotionEvent

Returns
boolean true if band selection can be initiated in response to the MotionEvent.