Package-level declarations

Types

Link copied to clipboard
data class CollectionItemPosition(val index: Int, val previousIndex: Int?)
Link copied to clipboard
class CollectionSwipeAnimator<Key : Any, Context>(settleableFactory: (Key) -> ItemAnimation<Context>, contextFor: (CollectionItemPosition) -> Context, scope: CoroutineScope, visibleKeys: () -> List<Key>)

This class only tracks WHICH keys are involved in the active gesture and at WHAT distance from its origin. It does not know about, or dispatch to, capabilities.

Functions

Link copied to clipboard
Link copied to clipboard
fun <Key : Any, Context> rememberCollectionSwipeAnimator(settleableFactory: (Key) -> ItemAnimation<Context>, contextFor: (CollectionItemPosition) -> Context, visibleKeys: () -> List<Key>, scope: CoroutineScope = rememberCoroutineScope()): CollectionSwipeAnimator<Key, Context>