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

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

Public methods

abstract Boolean
canInitiate(@NonNull e: MotionEvent)

Public constructors

<init>

BandPredicate()

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

Two default implementations are provided: EmptyArea, and NonDraggableArea.

Public methods

canInitiate

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