Package org.robovm.apple.uikit
Interface UICollectionViewDataSource
-
- All Superinterfaces:
NSObjectProtocol
,org.robovm.objc.ObjCProtocol
- All Known Implementing Classes:
UICollectionViewController
,UICollectionViewDataSourceAdapter
,UICollectionViewModel
public interface UICollectionViewDataSource extends NSObjectProtocol
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canMoveItemAt(UICollectionView collectionView, NSIndexPath indexPath)
UICollectionViewCell
getCellForItem(UICollectionView collectionView, NSIndexPath indexPath)
long
getNumberOfItemsInSection(UICollectionView collectionView, long section)
long
getNumberOfSections(UICollectionView collectionView)
UICollectionReusableView
getViewForSupplementaryElement(UICollectionView collectionView, java.lang.String kind, NSIndexPath indexPath)
NSIndexPath
indexPathForIndexTitle(UICollectionView collectionView, java.lang.String title, long index)
NSArray<NSString>
indexTitlesForCollectionView(UICollectionView collectionView)
void
moveItemAt(UICollectionView collectionView, NSIndexPath sourceIndexPath, NSIndexPath destinationIndexPath)
-
-
-
Method Detail
-
getNumberOfItemsInSection
long getNumberOfItemsInSection(UICollectionView collectionView, long section)
-
getCellForItem
UICollectionViewCell getCellForItem(UICollectionView collectionView, NSIndexPath indexPath)
-
getNumberOfSections
long getNumberOfSections(UICollectionView collectionView)
-
getViewForSupplementaryElement
UICollectionReusableView getViewForSupplementaryElement(UICollectionView collectionView, java.lang.String kind, NSIndexPath indexPath)
-
canMoveItemAt
boolean canMoveItemAt(UICollectionView collectionView, NSIndexPath indexPath)
- 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
NSArray<NSString> indexTitlesForCollectionView(UICollectionView collectionView)
-
indexPathForIndexTitle
NSIndexPath indexPathForIndexTitle(UICollectionView collectionView, java.lang.String title, long index)
-
-