Package org.robovm.apple.uikit
Class UICollectionViewDataSourceAdapter
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.uikit.UICollectionViewDataSourceAdapter
-
- All Implemented Interfaces:
NSObjectProtocol
,UICollectionViewDataSource
,org.robovm.objc.ObjCProtocol
public class UICollectionViewDataSourceAdapter extends NSObject implements UICollectionViewDataSource
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Constructor Description UICollectionViewDataSourceAdapter()
-
Method Summary
All Methods Instance Methods Concrete 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)
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Method Detail
-
getNumberOfItemsInSection
public long getNumberOfItemsInSection(UICollectionView collectionView, long section)
- Specified by:
getNumberOfItemsInSection
in interfaceUICollectionViewDataSource
-
getCellForItem
public UICollectionViewCell getCellForItem(UICollectionView collectionView, NSIndexPath indexPath)
- Specified by:
getCellForItem
in interfaceUICollectionViewDataSource
-
getNumberOfSections
public long getNumberOfSections(UICollectionView collectionView)
- Specified by:
getNumberOfSections
in interfaceUICollectionViewDataSource
-
getViewForSupplementaryElement
public UICollectionReusableView getViewForSupplementaryElement(UICollectionView collectionView, java.lang.String kind, NSIndexPath indexPath)
- Specified by:
getViewForSupplementaryElement
in interfaceUICollectionViewDataSource
-
canMoveItemAt
public boolean canMoveItemAt(UICollectionView collectionView, NSIndexPath indexPath)
- Specified by:
canMoveItemAt
in interfaceUICollectionViewDataSource
- Since:
- Available in iOS 9.0 and later.
-
moveItemAt
public void moveItemAt(UICollectionView collectionView, NSIndexPath sourceIndexPath, NSIndexPath destinationIndexPath)
- Specified by:
moveItemAt
in interfaceUICollectionViewDataSource
- Since:
- Available in iOS 9.0 and later.
-
indexTitlesForCollectionView
public NSArray<NSString> indexTitlesForCollectionView(UICollectionView collectionView)
- Specified by:
indexTitlesForCollectionView
in interfaceUICollectionViewDataSource
-
indexPathForIndexTitle
public NSIndexPath indexPathForIndexTitle(UICollectionView collectionView, java.lang.String title, long index)
- Specified by:
indexPathForIndexTitle
in interfaceUICollectionViewDataSource
-
-