Package org.robovm.apple.uikit
Interface UICollectionViewDataSource
- All Superinterfaces:
NSObjectProtocol,ObjCProtocol
- All Known Implementing Classes:
UICollectionViewController,UICollectionViewDataSourceAdapter,UICollectionViewDiffableDataSource,UICollectionViewModel
public interface UICollectionViewDataSource extends NSObjectProtocol
-
Method Summary
Modifier and Type Method Description booleancanMoveItemAt(UICollectionView collectionView, NSIndexPath indexPath)UICollectionViewCellgetCellForItem(UICollectionView collectionView, NSIndexPath indexPath)longgetNumberOfItemsInSection(UICollectionView collectionView, long section)longgetNumberOfSections(UICollectionView collectionView)UICollectionReusableViewgetViewForSupplementaryElement(UICollectionView collectionView, String kind, NSIndexPath indexPath)NSIndexPathindexPathForIndexTitle(UICollectionView collectionView, String title, long index)NSArray<NSString>indexTitlesForCollectionView(UICollectionView collectionView)voidmoveItemAt(UICollectionView collectionView, NSIndexPath sourceIndexPath, NSIndexPath destinationIndexPath)
-
Method Details
-
getNumberOfItemsInSection
-
getCellForItem
-
getNumberOfSections
-
getViewForSupplementaryElement
UICollectionReusableView getViewForSupplementaryElement(UICollectionView collectionView, String kind, NSIndexPath indexPath) -
canMoveItemAt
- Since:
- Available in iOS 9.0 and later.
-
moveItemAt
void moveItemAt(UICollectionView collectionView, NSIndexPath sourceIndexPath, NSIndexPath destinationIndexPath)- Since:
- Available in iOS 9.0 and later.
-
indexTitlesForCollectionView
- Since:
- Available in iOS 14.0 and later.
-
indexPathForIndexTitle
- Since:
- Available in iOS 14.0 and later.
-