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
API-Since: 13.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUICollectionViewDiffableDataSource.Block_applySnapshotAnimatingDifferencesCompletionstatic interfaceUICollectionViewDiffableDataSource.Block_applySnapshotToSectionAnimatingDifferencesCompletionstatic interfaceUICollectionViewDiffableDataSource.Block_applySnapshotUsingReloadDataCompletionstatic interfaceUICollectionViewDiffableDataSource.Block_initWithCollectionViewCellProviderstatic interfaceUICollectionViewDiffableDataSource.Block_setSupplementaryViewProviderstatic interfaceUICollectionViewDiffableDataSource.Block_supplementaryViewProvider_ret-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Block_accessibilityActivateBlock_ret, NSObject.Block_accessibilityActivationPointBlock_ret, NSObject.Block_accessibilityAttributedHintBlock_ret, NSObject.Block_accessibilityAttributedLabelBlock_ret, NSObject.Block_accessibilityAttributedUserInputLabelsBlock_ret, NSObject.Block_accessibilityAttributedValueBlock_ret, NSObject.Block_accessibilityContainerTypeBlock_ret, NSObject.Block_accessibilityCustomActionsBlock_ret, NSObject.Block_accessibilityCustomRotorsBlock_ret, NSObject.Block_accessibilityDecrementBlock_ret, NSObject.Block_accessibilityElementsBlock_ret, NSObject.Block_accessibilityElementsHiddenBlock_ret, NSObject.Block_accessibilityFrameBlock_ret, NSObject.Block_accessibilityHeaderElementsBlock_ret, NSObject.Block_accessibilityHintBlock_ret, NSObject.Block_accessibilityIdentifierBlock_ret, NSObject.Block_accessibilityIncrementBlock_ret, NSObject.Block_accessibilityLabelBlock_ret, NSObject.Block_accessibilityLanguageBlock_ret, NSObject.Block_accessibilityMagicTapBlock_ret, NSObject.Block_accessibilityNavigationStyleBlock_ret, NSObject.Block_accessibilityPathBlock_ret, NSObject.Block_accessibilityPerformEscapeBlock_ret, NSObject.Block_accessibilityRespondsToUserInteractionBlock_ret, NSObject.Block_accessibilityShouldGroupAccessibilityChildrenBlock_ret, NSObject.Block_accessibilityTextualContextBlock_ret, NSObject.Block_accessibilityTraitsBlock_ret, NSObject.Block_accessibilityUserInputLabelsBlock_ret, NSObject.Block_accessibilityValueBlock_ret, NSObject.Block_accessibilityViewIsModalBlock_ret, NSObject.Block_automationElementsBlock_ret, NSObject.Block_isAccessibilityElementBlock_ret, NSObject.Block_setAccessibilityActivateBlock, NSObject.Block_setAccessibilityActivationPointBlock, NSObject.Block_setAccessibilityAttributedHintBlock, NSObject.Block_setAccessibilityAttributedLabelBlock, NSObject.Block_setAccessibilityAttributedUserInputLabelsBlock, NSObject.Block_setAccessibilityAttributedValueBlock, NSObject.Block_setAccessibilityContainerTypeBlock, NSObject.Block_setAccessibilityCustomActionsBlock, NSObject.Block_setAccessibilityCustomRotorsBlock, NSObject.Block_setAccessibilityDecrementBlock, NSObject.Block_setAccessibilityElementsBlock, NSObject.Block_setAccessibilityElementsHiddenBlock, NSObject.Block_setAccessibilityFrameBlock, NSObject.Block_setAccessibilityHeaderElementsBlock, NSObject.Block_setAccessibilityHintBlock, NSObject.Block_setAccessibilityIdentifierBlock, NSObject.Block_setAccessibilityIncrementBlock, NSObject.Block_setAccessibilityLabelBlock, NSObject.Block_setAccessibilityLanguageBlock, NSObject.Block_setAccessibilityMagicTapBlock, NSObject.Block_setAccessibilityNavigationStyleBlock, NSObject.Block_setAccessibilityPathBlock, NSObject.Block_setAccessibilityPerformEscapeBlock, NSObject.Block_setAccessibilityRespondsToUserInteractionBlock, NSObject.Block_setAccessibilityShouldGroupAccessibilityChildrenBlock, NSObject.Block_setAccessibilityTextualContextBlock, NSObject.Block_setAccessibilityTraitsBlock, NSObject.Block_setAccessibilityUserInputLabelsBlock, NSObject.Block_setAccessibilityValueBlock, NSObject.Block_setAccessibilityViewIsModalBlock, NSObject.Block_setAutomationElementsBlock, NSObject.Block_setIsAccessibilityElementBlock, 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, accessibilityActivateBlock, accessibilityActivationPoint, accessibilityActivationPointBlock, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedHintBlock, accessibilityAttributedLabel, accessibilityAttributedLabelBlock, accessibilityAttributedUserInputLabels, accessibilityAttributedUserInputLabelsBlock, accessibilityAttributedValue, accessibilityAttributedValueBlock, accessibilityContainerType, accessibilityContainerTypeBlock, accessibilityCustomActions, accessibilityCustomActionsBlock, accessibilityCustomRotors, accessibilityCustomRotorsBlock, accessibilityDecrement, accessibilityDecrementBlock, accessibilityDirectTouchOptions, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsBlock, accessibilityElementsHidden, accessibilityElementsHiddenBlock, accessibilityFrame, accessibilityFrameBlock, accessibilityHeaderElementsBlock, accessibilityHint, accessibilityHintBlock, accessibilityIdentifierBlock, accessibilityIncrement, accessibilityIncrementBlock, accessibilityLabel, accessibilityLabelBlock, accessibilityLanguage, accessibilityLanguageBlock, accessibilityMagicTapBlock, accessibilityNavigationStyle, accessibilityNavigationStyleBlock, accessibilityPath, accessibilityPathBlock, accessibilityPerformEscape, accessibilityPerformEscapeBlock, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityRespondsToUserInteractionBlock, accessibilityScroll, accessibilityShouldGroupAccessibilityChildrenBlock, accessibilityTextualContext, accessibilityTextualContextBlock, accessibilityTraits, accessibilityTraitsBlock, accessibilityUserInputLabels, accessibilityUserInputLabelsBlock, accessibilityValue, accessibilityValueBlock, accessibilityViewIsModal, accessibilityViewIsModalBlock, accessibilityZoomInAtPoint, accessibilityZoomOutAtPoint, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, automationElements, automationElementsBlock, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hash, indexOfAccessibilityElement, isAccessibilityElement, isAccessibilityElementBlock, 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, setAccessibilityActivateBlock, setAccessibilityActivationPoint, setAccessibilityActivationPointBlock, setAccessibilityAttributedHint, setAccessibilityAttributedHintBlock, setAccessibilityAttributedLabel, setAccessibilityAttributedLabelBlock, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedUserInputLabelsBlock, setAccessibilityAttributedValue, setAccessibilityAttributedValueBlock, setAccessibilityContainerType, setAccessibilityContainerTypeBlock, setAccessibilityCustomActions, setAccessibilityCustomActionsBlock, setAccessibilityCustomRotors, setAccessibilityCustomRotorsBlock, setAccessibilityDecrementBlock, setAccessibilityDirectTouchOptions, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsBlock, setAccessibilityElementsHidden, setAccessibilityElementsHiddenBlock, setAccessibilityFrame, setAccessibilityFrameBlock, setAccessibilityHeaderElementsBlock, setAccessibilityHint, setAccessibilityHintBlock, setAccessibilityIdentifierBlock, setAccessibilityIncrementBlock, setAccessibilityLabel, setAccessibilityLabelBlock, setAccessibilityLanguage, setAccessibilityLanguageBlock, setAccessibilityMagicTapBlock, setAccessibilityNavigationStyle, setAccessibilityNavigationStyleBlock, setAccessibilityPath, setAccessibilityPathBlock, setAccessibilityPerformEscapeBlock, setAccessibilityRespondsToUserInteraction, setAccessibilityRespondsToUserInteractionBlock, setAccessibilityShouldGroupAccessibilityChildrenBlock, setAccessibilityTextualContext, setAccessibilityTextualContextBlock, setAccessibilityTraits, setAccessibilityTraitsBlock, setAccessibilityUserInputLabels, setAccessibilityUserInputLabelsBlock, setAccessibilityValue, setAccessibilityValueBlock, setAccessibilityViewIsModal, setAccessibilityViewIsModalBlock, setAutomationElements, setAutomationElementsBlock, setIsAccessibilityElement, setIsAccessibilityElementBlock, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, storedValueForKey, superclass, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, unableToSetNilForKey, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, valuesForKeys, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static UICollectionViewDiffableDataSource<?,?> alloc()
-
allocWithZone
public static UICollectionViewDiffableDataSource<?,?> allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
applySnapshotAnimatingDifferences
public void applySnapshotAnimatingDifferences(@NotNull @NotNull 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: 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)
-
applySnapshotAnimatingDifferencesCompletion
public void applySnapshotAnimatingDifferencesCompletion(@NotNull @NotNull NSDiffableDataSourceSnapshot<_SectionIdentifierType,_ItemIdentifierType> snapshot, boolean animatingDifferences, @Nullable @Nullable UICollectionViewDiffableDataSource.Block_applySnapshotAnimatingDifferencesCompletion completion)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(@NotNull @NotNull java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(@NotNull @NotNull java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull @NotNull java.lang.Object aTarget, @NotNull @NotNull org.moe.natj.objc.SEL aSelector, @Nullable @Nullable java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
@NotNull public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
@NotNull public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
-
collectionViewCanMoveItemAtIndexPath
public boolean collectionViewCanMoveItemAtIndexPath(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull NSIndexPath indexPath)Description copied from interface:UICollectionViewDataSourceAPI-Since: 9.0- Specified by:
collectionViewCanMoveItemAtIndexPathin interfaceUICollectionViewDataSource
-
collectionViewCellForItemAtIndexPath
@NotNull public @NotNull UICollectionViewCell collectionViewCellForItemAtIndexPath(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull 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
@NotNull public @NotNull NSIndexPath collectionViewIndexPathForIndexTitleAtIndex(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull 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. API-Since: 14.0- Specified by:
collectionViewIndexPathForIndexTitleAtIndexin interfaceUICollectionViewDataSource
-
collectionViewMoveItemAtIndexPathToIndexPath
public void collectionViewMoveItemAtIndexPathToIndexPath(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull NSIndexPath sourceIndexPath, @NotNull @NotNull NSIndexPath destinationIndexPath)Description copied from interface:UICollectionViewDataSourceAPI-Since: 9.0- Specified by:
collectionViewMoveItemAtIndexPathToIndexPathin interfaceUICollectionViewDataSource
-
collectionViewNumberOfItemsInSection
public long collectionViewNumberOfItemsInSection(@NotNull @NotNull UICollectionView collectionView, long section)- Specified by:
collectionViewNumberOfItemsInSectionin interfaceUICollectionViewDataSource
-
collectionViewViewForSupplementaryElementOfKindAtIndexPath
@NotNull public @NotNull UICollectionReusableView collectionViewViewForSupplementaryElementOfKindAtIndexPath(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull java.lang.String kind, @NotNull @NotNull 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
@Nullable public @Nullable NSIndexPath indexPathForItemIdentifier(@NotNull _ItemIdentifierType identifier)
-
indexTitlesForCollectionView
@Nullable public @Nullable NSArray<java.lang.String> indexTitlesForCollectionView(@NotNull @NotNull UICollectionView collectionView)
Description copied from interface:UICollectionViewDataSourceReturns a list of index titles to display in the index view (e.g. ["A", "B", "C" ... "Z", "#"]) API-Since: 14.0- Specified by:
indexTitlesForCollectionViewin interfaceUICollectionViewDataSource
-
init
public UICollectionViewDiffableDataSource<?,?> init()
-
initWithCollectionViewCellProvider
public UICollectionViewDiffableDataSource<?,?> initWithCollectionViewCellProvider(@NotNull @NotNull UICollectionView collectionView, @NotNull @NotNull 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
@Nullable public _ItemIdentifierType itemIdentifierForIndexPath(@NotNull @NotNull NSIndexPath indexPath)
convert item NSIndexPath <-> ItemIdentifierType
-
keyPathsForValuesAffectingValueForKey
@NotNull public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(@NotNull @NotNull java.lang.String key)
-
new_objc
public static UICollectionViewDiffableDataSource<?,?> new_objc()
-
numberOfSectionsInCollectionView
public long numberOfSectionsInCollectionView(@NotNull @NotNull 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(@Nullable @Nullable UICollectionViewDiffableDataSource.Block_setSupplementaryViewProvider value)
-
setVersion_static
public static void setVersion_static(long aVersion)
-
snapshot
@NotNull public @NotNull 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
@Nullable public @Nullable UICollectionViewDiffableDataSource.Block_supplementaryViewProvider_ret supplementaryViewProvider()
-
version_static
public static long version_static()
-
applySnapshotToSectionAnimatingDifferences
public void applySnapshotToSectionAnimatingDifferences(@NotNull @NotNull NSDiffableDataSourceSectionSnapshot<_ItemIdentifierType> snapshot, @NotNull _SectionIdentifierType sectionIdentifier, boolean animatingDifferences)Section Snapshot Support API-Since: 14.0
-
applySnapshotToSectionAnimatingDifferencesCompletion
public void applySnapshotToSectionAnimatingDifferencesCompletion(@NotNull @NotNull NSDiffableDataSourceSectionSnapshot<_ItemIdentifierType> snapshot, @NotNull _SectionIdentifierType sectionIdentifier, boolean animatingDifferences, @Nullable @Nullable UICollectionViewDiffableDataSource.Block_applySnapshotToSectionAnimatingDifferencesCompletion completion)API-Since: 14.0
-
reorderingHandlers
@NotNull public @NotNull UICollectionViewDiffableDataSourceReorderingHandlers<_SectionIdentifierType,_ItemIdentifierType> reorderingHandlers()
Reordering Support API-Since: 14.0
-
sectionSnapshotHandlers
@NotNull public @NotNull UICollectionViewDiffableDataSourceSectionSnapshotHandlers<_ItemIdentifierType> sectionSnapshotHandlers()
API-Since: 14.0
-
setReorderingHandlers
public void setReorderingHandlers(@NotNull @NotNull UICollectionViewDiffableDataSourceReorderingHandlers<_SectionIdentifierType,_ItemIdentifierType> value)Reordering Support API-Since: 14.0
-
setSectionSnapshotHandlers
public void setSectionSnapshotHandlers(@NotNull @NotNull UICollectionViewDiffableDataSourceSectionSnapshotHandlers<_ItemIdentifierType> value)API-Since: 14.0
-
snapshotForSection
@NotNull public @NotNull NSDiffableDataSourceSectionSnapshot<_ItemIdentifierType> snapshotForSection(@NotNull _SectionIdentifierType section)
API-Since: 14.0
-
applySnapshotUsingReloadData
public void applySnapshotUsingReloadData(@NotNull @NotNull NSDiffableDataSourceSnapshot<_SectionIdentifierType,_ItemIdentifierType> snapshot)Apply a snapshot to the collection view using reloadData. 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). API-Since: 15.0
-
applySnapshotUsingReloadDataCompletion
public void applySnapshotUsingReloadDataCompletion(@NotNull @NotNull NSDiffableDataSourceSnapshot<_SectionIdentifierType,_ItemIdentifierType> snapshot, @Nullable @Nullable UICollectionViewDiffableDataSource.Block_applySnapshotUsingReloadDataCompletion completion)API-Since: 15.0
-
indexForSectionIdentifier
public long indexForSectionIdentifier(@NotNull _SectionIdentifierType identifier)API-Since: 15.0
-
sectionIdentifierForIndex
@Nullable public _SectionIdentifierType sectionIdentifierForIndex(long index)
convert section index <-> SectionIdentifierType API-Since: 15.0
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-