Package apple.uikit
Class UICollectionViewDiffableDataSource<_SectionIdentifierType,_ItemIdentifierType>
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.uikit.UICollectionViewDiffableDataSource<_SectionIdentifierType,_ItemIdentifierType>
-
- All Implemented Interfaces:
NSObject,UICollectionViewDataSource
public class UICollectionViewDiffableDataSource<_SectionIdentifierType,_ItemIdentifierType> extends NSObject implements UICollectionViewDataSource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUICollectionViewDiffableDataSource.Block_applySnapshotAnimatingDifferencesCompletionstatic interfaceUICollectionViewDiffableDataSource.Block_applySnapshotToSectionAnimatingDifferencesCompletionstatic interfaceUICollectionViewDiffableDataSource.Block_initWithCollectionViewCellProviderstatic interfaceUICollectionViewDiffableDataSource.Block_setSupplementaryViewProviderstatic interfaceUICollectionViewDiffableDataSource.Block_supplementaryViewProvider_ret-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUICollectionViewDiffableDataSource(org.moe.natj.general.Pointer peer)
-
Method Summary
-
Methods inherited from class apple.NSObject
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, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static UICollectionViewDiffableDataSource<?,?> alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
applySnapshotAnimatingDifferences
public void applySnapshotAnimatingDifferences(NSDiffableDataSourceSnapshot<_SectionIdentifierType,_ItemIdentifierType> snapshot, boolean animatingDifferences)
Apply a snapshot to the collection view committing to the new data source state. animatingDifferences == YES: perform a diff between the current UICollectionView state and the snapshot and animate the update. animatingDifferences == NO: commit to the new collection view state from the snapshot. The changes will not be animated. If the (optional) completion block is specified, it will be called on the main queue when the 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)
-
applySnapshotAnimatingDifferencesCompletion
public void applySnapshotAnimatingDifferencesCompletion(NSDiffableDataSourceSnapshot<_SectionIdentifierType,_ItemIdentifierType> snapshot, boolean animatingDifferences, UICollectionViewDiffableDataSource.Block_applySnapshotAnimatingDifferencesCompletion completion)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
-
collectionViewCanMoveItemAtIndexPath
public boolean collectionViewCanMoveItemAtIndexPath(UICollectionView collectionView, NSIndexPath indexPath)
- Specified by:
collectionViewCanMoveItemAtIndexPathin interfaceUICollectionViewDataSource
-
collectionViewCellForItemAtIndexPath
public UICollectionViewCell collectionViewCellForItemAtIndexPath(UICollectionView collectionView, NSIndexPath indexPath)
Description copied from interface:UICollectionViewDataSourceThe cell that is returned must be retrieved from a call to -dequeueReusableCellWithReuseIdentifier:forIndexPath:- Specified by:
collectionViewCellForItemAtIndexPathin interfaceUICollectionViewDataSource
-
collectionViewIndexPathForIndexTitleAtIndex
public NSIndexPath collectionViewIndexPathForIndexTitleAtIndex(UICollectionView collectionView, java.lang.String title, long index)
Description copied from interface:UICollectionViewDataSourceReturns the index path that corresponds to the given title / index. (e.g. "B",1) Return an index path with a single index to indicate an entire section, instead of a specific item.- Specified by:
collectionViewIndexPathForIndexTitleAtIndexin interfaceUICollectionViewDataSource
-
collectionViewMoveItemAtIndexPathToIndexPath
public void collectionViewMoveItemAtIndexPathToIndexPath(UICollectionView collectionView, NSIndexPath sourceIndexPath, NSIndexPath destinationIndexPath)
- Specified by:
collectionViewMoveItemAtIndexPathToIndexPathin interfaceUICollectionViewDataSource
-
collectionViewNumberOfItemsInSection
public long collectionViewNumberOfItemsInSection(UICollectionView collectionView, long section)
- Specified by:
collectionViewNumberOfItemsInSectionin interfaceUICollectionViewDataSource
-
collectionViewViewForSupplementaryElementOfKindAtIndexPath
public UICollectionReusableView collectionViewViewForSupplementaryElementOfKindAtIndexPath(UICollectionView collectionView, java.lang.String kind, NSIndexPath indexPath)
Description copied from interface:UICollectionViewDataSourceThe view that is returned must be retrieved from a call to -dequeueReusableSupplementaryViewOfKind:withReuseIdentifier:forIndexPath:- Specified by:
collectionViewViewForSupplementaryElementOfKindAtIndexPathin interfaceUICollectionViewDataSource
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
hash_static
public static long hash_static()
-
indexPathForItemIdentifier
public NSIndexPath indexPathForItemIdentifier(_ItemIdentifierType identifier)
-
indexTitlesForCollectionView
public NSArray<java.lang.String> indexTitlesForCollectionView(UICollectionView collectionView)
Description copied from interface:UICollectionViewDataSourceReturns a list of index titles to display in the index view (e.g. ["A", "B", "C" ... "Z", "#"])- Specified by:
indexTitlesForCollectionViewin interfaceUICollectionViewDataSource
-
init
public UICollectionViewDiffableDataSource<?,?> init()
-
initWithCollectionViewCellProvider
public UICollectionViewDiffableDataSource<?,?> initWithCollectionViewCellProvider(UICollectionView collectionView, UICollectionViewDiffableDataSource.Block_initWithCollectionViewCellProvider cellProvider)
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
itemIdentifierForIndexPath
public _ItemIdentifierType itemIdentifierForIndexPath(NSIndexPath indexPath)
convert IndexPath <-> ItemIdentifierType
-
keyPathsForValuesAffectingValueForKey
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
new_objc
public static java.lang.Object new_objc()
-
numberOfSectionsInCollectionView
public long numberOfSectionsInCollectionView(UICollectionView collectionView)
- Specified by:
numberOfSectionsInCollectionViewin interfaceUICollectionViewDataSource
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setSupplementaryViewProvider
public void setSupplementaryViewProvider(UICollectionViewDiffableDataSource.Block_setSupplementaryViewProvider value)
-
setVersion_static
public static void setVersion_static(long aVersion)
-
snapshot
public NSDiffableDataSourceSnapshot<_SectionIdentifierType,_ItemIdentifierType> snapshot()
Create a snapshot of the current UICollectionView data source state. This snapshot can be mutated and later applied via -applySnapshot:animatingDifferences:
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
supplementaryViewProvider
public UICollectionViewDiffableDataSource.Block_supplementaryViewProvider_ret supplementaryViewProvider()
-
version_static
public static long version_static()
-
applySnapshotToSectionAnimatingDifferences
public void applySnapshotToSectionAnimatingDifferences(NSDiffableDataSourceSectionSnapshot<_ItemIdentifierType> snapshot, _SectionIdentifierType sectionIdentifier, boolean animatingDifferences)
Section Snapshot Support
-
applySnapshotToSectionAnimatingDifferencesCompletion
public void applySnapshotToSectionAnimatingDifferencesCompletion(NSDiffableDataSourceSectionSnapshot<_ItemIdentifierType> snapshot, _SectionIdentifierType sectionIdentifier, boolean animatingDifferences, UICollectionViewDiffableDataSource.Block_applySnapshotToSectionAnimatingDifferencesCompletion completion)
-
reorderingHandlers
public UICollectionViewDiffableDataSourceReorderingHandlers<_SectionIdentifierType,_ItemIdentifierType> reorderingHandlers()
Reordering Support
-
sectionSnapshotHandlers
public UICollectionViewDiffableDataSourceSectionSnapshotHandlers<_ItemIdentifierType> sectionSnapshotHandlers()
-
setReorderingHandlers
public void setReorderingHandlers(UICollectionViewDiffableDataSourceReorderingHandlers<_SectionIdentifierType,_ItemIdentifierType> value)
Reordering Support
-
setSectionSnapshotHandlers
public void setSectionSnapshotHandlers(UICollectionViewDiffableDataSourceSectionSnapshotHandlers<_ItemIdentifierType> value)
-
snapshotForSection
public NSDiffableDataSourceSectionSnapshot<_ItemIdentifierType> snapshotForSection(_SectionIdentifierType section)
-
-