Methods

collectionViewSize(collectionView:CollectionView):Int

Get the number of elements.

collectionViewItemFrameAtIndex(collectionView:CollectionView, itemIndex:Int, frame:CollectionViewItemFrame):Void

Get the item frame at the requested index.

collectionViewReleaseItemAtIndex(collectionView:CollectionView, itemIndex:Int, view:View):Bool

Called when a view is not used anymore at the given index. Lets the dataSource do some cleanup if needed, before this view gets reused (if it can). Returns true if the view can be reused at another index of false otherwise.

collectionViewItemAtIndex(collectionView:CollectionView, itemIndex:Int, reusableView:View):View

Get a view at the given index. If reusableView is provided, it can be recycled as the new item to avoid creating new instances.