public interface UICollectionViewDataSource
| Modifier and Type | Method and Description |
|---|---|
default boolean |
collectionViewCanMoveItemAtIndexPath(UICollectionView collectionView,
NSIndexPath indexPath) |
UICollectionViewCell |
collectionViewCellForItemAtIndexPath(UICollectionView collectionView,
NSIndexPath indexPath)
The cell that is returned must be retrieved from a call to -dequeueReusableCellWithReuseIdentifier:forIndexPath:
|
default NSIndexPath |
collectionViewIndexPathForIndexTitleAtIndex(UICollectionView collectionView,
java.lang.String title,
long index)
Returns the index path that corresponds to the given title / index.
|
default void |
collectionViewMoveItemAtIndexPathToIndexPath(UICollectionView collectionView,
NSIndexPath sourceIndexPath,
NSIndexPath destinationIndexPath) |
long |
collectionViewNumberOfItemsInSection(UICollectionView collectionView,
long section) |
default UICollectionReusableView |
collectionViewViewForSupplementaryElementOfKindAtIndexPath(UICollectionView collectionView,
java.lang.String kind,
NSIndexPath indexPath)
The view that is returned must be retrieved from a call to -dequeueReusableSupplementaryViewOfKind:withReuseIdentifier:forIndexPath:
|
default NSArray<java.lang.String> |
indexTitlesForCollectionView(UICollectionView collectionView)
Returns a list of index titles to display in the index view (e.g.
|
default long |
numberOfSectionsInCollectionView(UICollectionView collectionView) |
default boolean collectionViewCanMoveItemAtIndexPath(UICollectionView collectionView, NSIndexPath indexPath)
UICollectionViewCell collectionViewCellForItemAtIndexPath(UICollectionView collectionView, NSIndexPath indexPath)
default void collectionViewMoveItemAtIndexPathToIndexPath(UICollectionView collectionView, NSIndexPath sourceIndexPath, NSIndexPath destinationIndexPath)
long collectionViewNumberOfItemsInSection(UICollectionView collectionView, long section)
default UICollectionReusableView collectionViewViewForSupplementaryElementOfKindAtIndexPath(UICollectionView collectionView, java.lang.String kind, NSIndexPath indexPath)
default long numberOfSectionsInCollectionView(UICollectionView collectionView)
default NSIndexPath collectionViewIndexPathForIndexTitleAtIndex(UICollectionView collectionView, java.lang.String title, long index)
default NSArray<java.lang.String> indexTitlesForCollectionView(UICollectionView collectionView)