CollectionViewItemsBehavior

ceramic.CollectionViewItemsBehavior (Abstract)

Defines how a CollectionView manages item view creation and recycling.

Different behaviors offer trade-offs between performance and memory usage:

  • RECYCLE: Best for large collections with scrolling
  • FREEZE: Best for small, static collections
  • LAZY: Best for progressively loaded content
// Use recycling for a large list
collectionView.itemsBehavior = RECYCLE;

// Freeze items for a small grid that fits on screen
collectionView.itemsBehavior = FREEZE;

// Use lazy loading for content that builds up over time
collectionView.itemsBehavior = LAZY;

Metadata

Name Parameters
:enum -