public abstract class BandPredicate

Known direct subclasses
BandPredicate.EmptyArea

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

BandPredicate.NonDraggableArea

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


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

Two default implementations are provided: EmptyArea, and NonDraggableArea.

Summary

Nested types

public final class BandPredicate.EmptyArea extends BandPredicate

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

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

Public constructors

Public methods

abstract boolean

Public constructors

BandPredicate

Added in 1.0.0
public BandPredicate()

Public methods

canInitiate

Added in 1.0.0
public abstract boolean canInitiate(@NonNull MotionEvent e)
Returns
boolean

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