public class UICollectionViewDiffableDataSource<_SectionIdentifierType,_ItemIdentifierType> extends NSObject implements UICollectionViewDataSource
| Modifier and Type | Class and Description |
|---|---|
static interface |
UICollectionViewDiffableDataSource.Block_applySnapshotAnimatingDifferencesCompletion |
static interface |
UICollectionViewDiffableDataSource.Block_applySnapshotToSectionAnimatingDifferencesCompletion |
static interface |
UICollectionViewDiffableDataSource.Block_applySnapshotUsingReloadDataCompletion |
static interface |
UICollectionViewDiffableDataSource.Block_initWithCollectionViewCellProvider |
static interface |
UICollectionViewDiffableDataSource.Block_setSupplementaryViewProvider |
static interface |
UICollectionViewDiffableDataSource.Block_supplementaryViewProvider_ret |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
UICollectionViewDiffableDataSource(org.moe.natj.general.Pointer peer) |
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeyprotected UICollectionViewDiffableDataSource(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public static UICollectionViewDiffableDataSource<?,?> alloc()
public static UICollectionViewDiffableDataSource<?,?> allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public void applySnapshotAnimatingDifferences(NSDiffableDataSourceSnapshot<_SectionIdentifierType,_ItemIdentifierType> snapshot, boolean animatingDifferences)
animatingDifferences == YES: perform a diff between the current UICollectionView state and the snapshot, and animate the update. animatingDifferences == NO: perform a diff between the current UICollectionView state and the snapshot, but don't animate the update.
If the (optional) completion block is specified, it will be called on the main queue when any animations are completed.
Note: you may call this from a background queue which will cause the diff (if needed) to be generated on the calling queue and the final UI update to be applied back on the main queue. However, all applySnapshot invocations must be confined to the same queue. (if you violate this restriction and mix calls between the main queue and some background queue, the framework will log and/or assert to avoid deadlocks)
public void applySnapshotAnimatingDifferencesCompletion(NSDiffableDataSourceSnapshot<_SectionIdentifierType,_ItemIdentifierType> snapshot, boolean animatingDifferences, UICollectionViewDiffableDataSource.Block_applySnapshotAnimatingDifferencesCompletion completion)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public boolean collectionViewCanMoveItemAtIndexPath(UICollectionView collectionView, NSIndexPath indexPath)
collectionViewCanMoveItemAtIndexPath in interface UICollectionViewDataSourcepublic UICollectionViewCell collectionViewCellForItemAtIndexPath(UICollectionView collectionView, NSIndexPath indexPath)
UICollectionViewDataSourcecollectionViewCellForItemAtIndexPath in interface UICollectionViewDataSourcepublic NSIndexPath collectionViewIndexPathForIndexTitleAtIndex(UICollectionView collectionView, java.lang.String title, long index)
UICollectionViewDataSourcecollectionViewIndexPathForIndexTitleAtIndex in interface UICollectionViewDataSourcepublic void collectionViewMoveItemAtIndexPathToIndexPath(UICollectionView collectionView, NSIndexPath sourceIndexPath, NSIndexPath destinationIndexPath)
collectionViewMoveItemAtIndexPathToIndexPath in interface UICollectionViewDataSourcepublic long collectionViewNumberOfItemsInSection(UICollectionView collectionView, long section)
collectionViewNumberOfItemsInSection in interface UICollectionViewDataSourcepublic UICollectionReusableView collectionViewViewForSupplementaryElementOfKindAtIndexPath(UICollectionView collectionView, java.lang.String kind, NSIndexPath indexPath)
UICollectionViewDataSourcecollectionViewViewForSupplementaryElementOfKindAtIndexPath in interface UICollectionViewDataSourcepublic static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public NSIndexPath indexPathForItemIdentifier(_ItemIdentifierType identifier)
public NSArray<java.lang.String> indexTitlesForCollectionView(UICollectionView collectionView)
UICollectionViewDataSourceindexTitlesForCollectionView in interface UICollectionViewDataSourcepublic UICollectionViewDiffableDataSource<?,?> init()
public UICollectionViewDiffableDataSource<?,?> initWithCollectionViewCellProvider(UICollectionView collectionView, UICollectionViewDiffableDataSource.Block_initWithCollectionViewCellProvider cellProvider)
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public _ItemIdentifierType itemIdentifierForIndexPath(NSIndexPath indexPath)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static UICollectionViewDiffableDataSource<?,?> new_objc()
public long numberOfSectionsInCollectionView(UICollectionView collectionView)
numberOfSectionsInCollectionView in interface UICollectionViewDataSourcepublic static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public void setSupplementaryViewProvider(UICollectionViewDiffableDataSource.Block_setSupplementaryViewProvider value)
public static void setVersion_static(long aVersion)
public NSDiffableDataSourceSnapshot<_SectionIdentifierType,_ItemIdentifierType> snapshot()
public static org.moe.natj.objc.Class superclass_static()
public UICollectionViewDiffableDataSource.Block_supplementaryViewProvider_ret supplementaryViewProvider()
public static long version_static()
public void applySnapshotToSectionAnimatingDifferences(NSDiffableDataSourceSectionSnapshot<_ItemIdentifierType> snapshot, _SectionIdentifierType sectionIdentifier, boolean animatingDifferences)
public void applySnapshotToSectionAnimatingDifferencesCompletion(NSDiffableDataSourceSectionSnapshot<_ItemIdentifierType> snapshot, _SectionIdentifierType sectionIdentifier, boolean animatingDifferences, UICollectionViewDiffableDataSource.Block_applySnapshotToSectionAnimatingDifferencesCompletion completion)
public UICollectionViewDiffableDataSourceReorderingHandlers<_SectionIdentifierType,_ItemIdentifierType> reorderingHandlers()
public UICollectionViewDiffableDataSourceSectionSnapshotHandlers<_ItemIdentifierType> sectionSnapshotHandlers()
public void setReorderingHandlers(UICollectionViewDiffableDataSourceReorderingHandlers<_SectionIdentifierType,_ItemIdentifierType> value)
public void setSectionSnapshotHandlers(UICollectionViewDiffableDataSourceSectionSnapshotHandlers<_ItemIdentifierType> value)
public NSDiffableDataSourceSectionSnapshot<_ItemIdentifierType> snapshotForSection(_SectionIdentifierType section)
public void applySnapshotUsingReloadData(NSDiffableDataSourceSnapshot<_SectionIdentifierType,_ItemIdentifierType> snapshot)
This always skips diffing, and immediately resets the UICollectionView to the new data source state without animation. Generally this should only be used for specific cases where you need to fully reset the collection view's data to the new state immediately (e.g. recycling the collection view for use with a completely different data set), or when you specifically want to skip diffing (e.g. applying an exceptionally large changeset).
public void applySnapshotUsingReloadDataCompletion(NSDiffableDataSourceSnapshot<_SectionIdentifierType,_ItemIdentifierType> snapshot, UICollectionViewDiffableDataSource.Block_applySnapshotUsingReloadDataCompletion completion)
public long indexForSectionIdentifier(_SectionIdentifierType identifier)
public _SectionIdentifierType sectionIdentifierForIndex(long index)