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

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 functions

abstract Boolean

Public constructors

BandPredicate

Added in 1.0.0
BandPredicate()

Public functions

canInitiate

Added in 1.0.0
abstract fun canInitiate(e: MotionEvent): Boolean
Returns
Boolean

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