Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in version 1.0.0
belongs to Maven artifact androidx.recyclerview:recyclerview-selection:1.0.0-rc01

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

added in version 1.0.0
public BandPredicate ()

Public methods

canInitiate

added in version 1.0.0
public abstract boolean canInitiate (MotionEvent e)

Parameters
e MotionEvent

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