Package org.robovm.apple.uikit
Class UICollectionViewDiffableDataSource<SectionIdentifierType extends NSObject,ItemIdentifierType extends NSObject>
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.objc.ObjCObject
org.robovm.apple.foundation.NSObject
org.robovm.apple.uikit.UICollectionViewDiffableDataSource<SectionIdentifierType,ItemIdentifierType>
- All Implemented Interfaces:
NSObjectProtocol,UICollectionViewDataSource,ObjCProtocol
public class UICollectionViewDiffableDataSource<SectionIdentifierType extends NSObject,ItemIdentifierType extends NSObject> extends NSObject implements UICollectionViewDataSource
- Since:
- Available in iOS 13.0 and later.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUICollectionViewDiffableDataSource.UICollectionViewDiffableDataSourcePtr<SectionIdentifierType extends NSObject,ItemIdentifierType extends NSObject>Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInitNested classes/interfaces inherited from class org.robovm.objc.ObjCObject
ObjCObject.ObjCObjectPtr, ObjCObject.Super -
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protectedUICollectionViewDiffableDataSource()protectedUICollectionViewDiffableDataSource(NSObject.Handle h, long handle)protectedUICollectionViewDiffableDataSource(NSObject.SkipInit skipInit)UICollectionViewDiffableDataSource(UICollectionView collectionView, Block3<UICollectionView,NSIndexPath,NSObject,UICollectionViewCell> cellProvider) -
Method Summary
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, willChangeValuesMethods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRef
-
Constructor Details
-
UICollectionViewDiffableDataSource
protected UICollectionViewDiffableDataSource() -
UICollectionViewDiffableDataSource
-
UICollectionViewDiffableDataSource
-
UICollectionViewDiffableDataSource
public UICollectionViewDiffableDataSource(UICollectionView collectionView, Block3<UICollectionView,NSIndexPath,NSObject,UICollectionViewCell> cellProvider)
-
-
Method Details
-
getSupplementaryViewProvider
public Block3<UICollectionView,NSString,NSIndexPath,UICollectionReusableView> getSupplementaryViewProvider() -
setSupplementaryViewProvider
public void setSupplementaryViewProvider(Block3<UICollectionView,NSString,NSIndexPath,UICollectionReusableView> v) -
getReorderingHandlers
public UICollectionViewDiffableDataSourceReorderingHandlers<SectionIdentifierType,ItemIdentifierType> getReorderingHandlers()- Since:
- Available in iOS 14.0 and later.
-
setReorderingHandlers
public void setReorderingHandlers(UICollectionViewDiffableDataSourceReorderingHandlers<SectionIdentifierType,ItemIdentifierType> v)- Since:
- Available in iOS 14.0 and later.
-
getSectionSnapshotHandlers
public UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemIdentifierType> getSectionSnapshotHandlers()- Since:
- Available in iOS 14.0 and later.
-
setSectionSnapshotHandlers
public void setSectionSnapshotHandlers(UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemIdentifierType> v)- Since:
- Available in iOS 14.0 and later.
-
init
protected long init(UICollectionView collectionView, Block3<UICollectionView,NSIndexPath,NSObject,UICollectionViewCell> cellProvider) -
snapshot
-
applySnapshot
public void applySnapshot(NSDiffableDataSourceSnapshot<SectionIdentifierType,ItemIdentifierType> snapshot, boolean animatingDifferences) -
applySnapshot
public void applySnapshot(NSDiffableDataSourceSnapshot<SectionIdentifierType,ItemIdentifierType> snapshot, boolean animatingDifferences, Runnable completion) -
applySnapshotUsingReloadData
public void applySnapshotUsingReloadData(NSDiffableDataSourceSnapshot<SectionIdentifierType,ItemIdentifierType> snapshot)- Since:
- Available in iOS 15.0 and later.
-
applySnapshot
public void applySnapshot(NSDiffableDataSourceSnapshot<SectionIdentifierType,ItemIdentifierType> snapshot, Runnable completion)- Since:
- Available in iOS 15.0 and later.
-
sectionIdentifierForIndex
- Since:
- Available in iOS 15.0 and later.
-
indexForSectionIdentifier
- Since:
- Available in iOS 15.0 and later.
-
itemIdentifierForIndexPath
-
indexPathForItemIdentifier
-
applySnapshot
public void applySnapshot(NSDiffableDataSourceSectionSnapshot<ItemIdentifierType> snapshot, SectionIdentifierType sectionIdentifier, boolean animatingDifferences)- Since:
- Available in iOS 14.0 and later.
-
applySnapshot
public void applySnapshot(NSDiffableDataSourceSectionSnapshot<ItemIdentifierType> snapshot, SectionIdentifierType sectionIdentifier, boolean animatingDifferences, Runnable completion)- Since:
- Available in iOS 14.0 and later.
-
snapshotForSection
public NSDiffableDataSourceSectionSnapshot<ItemIdentifierType> snapshotForSection(SectionIdentifierType section)- Since:
- Available in iOS 14.0 and later.
-
getNumberOfItemsInSection
- Specified by:
getNumberOfItemsInSectionin interfaceUICollectionViewDataSource
-
getCellForItem
- Specified by:
getCellForItemin interfaceUICollectionViewDataSource
-
getNumberOfSections
- Specified by:
getNumberOfSectionsin interfaceUICollectionViewDataSource
-
getViewForSupplementaryElement
public UICollectionReusableView getViewForSupplementaryElement(UICollectionView collectionView, String kind, NSIndexPath indexPath)- Specified by:
getViewForSupplementaryElementin interfaceUICollectionViewDataSource
-
canMoveItemAt
- Specified by:
canMoveItemAtin interfaceUICollectionViewDataSource- Since:
- Available in iOS 9.0 and later.
-
moveItemAt
public void moveItemAt(UICollectionView collectionView, NSIndexPath sourceIndexPath, NSIndexPath destinationIndexPath)- Specified by:
moveItemAtin interfaceUICollectionViewDataSource- Since:
- Available in iOS 9.0 and later.
-
indexTitlesForCollectionView
- Specified by:
indexTitlesForCollectionViewin interfaceUICollectionViewDataSource- Since:
- Available in iOS 14.0 and later.
-
indexPathForIndexTitle
public NSIndexPath indexPathForIndexTitle(UICollectionView collectionView, String title, long index)- Specified by:
indexPathForIndexTitlein interfaceUICollectionViewDataSource- Since:
- Available in iOS 14.0 and later.
-