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

SelectionPredicates

public final class SelectionPredicates
extends Object

java.lang.Object
   ↳ androidx.recyclerview.selection.SelectionPredicates


Utility class for creating SelectionPredicate instances. Provides default implementations for common cases like "single selection" and "select anything".

Summary

Public methods

static <K> SelectionPredicate<K> createSelectAnything()

Returns a selection predicate that allows multiples items to be selected, without any restrictions on which items can be selected.

static <K> SelectionPredicate<K> createSelectSingleAnything()

Returns a selection predicate that allows a single item to be selected, without any restrictions on which item can be selected.

Inherited methods

Public methods

createSelectAnything

added in version 1.0.0
public static SelectionPredicate<K> createSelectAnything ()

Returns a selection predicate that allows multiples items to be selected, without any restrictions on which items can be selected.

Returns
SelectionPredicate<K>

createSelectSingleAnything

added in version 1.0.0
public static SelectionPredicate<K> createSelectSingleAnything ()

Returns a selection predicate that allows a single item to be selected, without any restrictions on which item can be selected.

Returns
SelectionPredicate<K>