Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

SelectionPredicates

class SelectionPredicates
kotlin.Any
   ↳ 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 SelectionTracker.SelectionPredicate<K>

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

static SelectionTracker.SelectionPredicate<K>

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

Public methods

createSelectAnything

@NonNull static fun <K : Any!> createSelectAnything(): SelectionTracker.SelectionPredicate<K>

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

Parameters
<K> Selection key type. @see StorageStrategy for supported types.
Return
SelectionTracker.SelectionPredicate<K>

createSelectSingleAnything

@NonNull static fun <K : Any!> createSelectSingleAnything(): SelectionTracker.SelectionPredicate<K>

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

Parameters
<K> Selection key type. @see StorageStrategy for supported types.
Return
SelectionTracker.SelectionPredicate<K>