BandPredicate

abstract class BandPredicate
kotlin.Any
   ↳ androidx.recyclerview.selection.BandPredicate

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

Two default implementations are provided: EmptyArea, and NonDraggableArea.

Summary

Nested classes

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

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

Public methods
abstract Boolean

Public constructors

<init>

BandPredicate()

Public methods

canInitiate

abstract fun canInitiate(e: MotionEvent!): Boolean
Return
Boolean: true if band selection can be initiated in response to the MotionEvent.