public class UITableViewDiffableDataSource<_SectionIdentifierType,_ItemIdentifierType> extends NSObject implements UITableViewDataSource
| Modifier and Type | Class and Description |
|---|---|
static interface |
UITableViewDiffableDataSource.Block_applySnapshotAnimatingDifferencesCompletion |
static interface |
UITableViewDiffableDataSource.Block_applySnapshotUsingReloadDataCompletion |
static interface |
UITableViewDiffableDataSource.Block_initWithTableViewCellProvider |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
UITableViewDiffableDataSource(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static UITableViewDiffableDataSource<?,?> |
alloc() |
static UITableViewDiffableDataSource<?,?> |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
void |
applySnapshotAnimatingDifferences(NSDiffableDataSourceSnapshot<_SectionIdentifierType,_ItemIdentifierType> snapshot,
boolean animatingDifferences)
Apply a snapshot to the table view committing to the new data source state.
|
void |
applySnapshotAnimatingDifferencesCompletion(NSDiffableDataSourceSnapshot<_SectionIdentifierType,_ItemIdentifierType> snapshot,
boolean animatingDifferences,
UITableViewDiffableDataSource.Block_applySnapshotAnimatingDifferencesCompletion completion) |
void |
applySnapshotUsingReloadData(NSDiffableDataSourceSnapshot<_SectionIdentifierType,_ItemIdentifierType> snapshot)
Apply a snapshot to the table view using reloadData.
|
void |
applySnapshotUsingReloadDataCompletion(NSDiffableDataSourceSnapshot<_SectionIdentifierType,_ItemIdentifierType> snapshot,
UITableViewDiffableDataSource.Block_applySnapshotUsingReloadDataCompletion completion) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
static java.lang.String |
debugDescription_static() |
long |
defaultRowAnimation()
Default value is UITableViewRowAnimationAutomatic.
|
static java.lang.String |
description_static() |
static long |
hash_static() |
long |
indexForSectionIdentifier(_SectionIdentifierType identifier) |
NSIndexPath |
indexPathForItemIdentifier(_ItemIdentifierType identifier) |
UITableViewDiffableDataSource<?,?> |
init() |
UITableViewDiffableDataSource<?,?> |
initWithTableViewCellProvider(UITableView tableView,
UITableViewDiffableDataSource.Block_initWithTableViewCellProvider cellProvider) |
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
_ItemIdentifierType |
itemIdentifierForIndexPath(NSIndexPath indexPath)
convert item NSIndexPath <-> ItemIdentifierType
|
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
static UITableViewDiffableDataSource<?,?> |
new_objc() |
long |
numberOfSectionsInTableView(UITableView tableView)
Default is 1 if not implemented
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
_SectionIdentifierType |
sectionIdentifierForIndex(long index)
convert section index <-> SectionIdentifierType
|
NSArray<java.lang.String> |
sectionIndexTitlesForTableView(UITableView tableView)
return list of section titles to display in section index view (e.g.
|
void |
setDefaultRowAnimation(long value)
Default value is UITableViewRowAnimationAutomatic.
|
static void |
setVersion_static(long aVersion) |
NSDiffableDataSourceSnapshot<_SectionIdentifierType,_ItemIdentifierType> |
snapshot()
Create a snapshot of the current UITableView data source state.
|
static org.moe.natj.objc.Class |
superclass_static() |
boolean |
tableViewCanEditRowAtIndexPath(UITableView tableView,
NSIndexPath indexPath)
Individual rows can opt out of having the -editing property set for them.
|
boolean |
tableViewCanMoveRowAtIndexPath(UITableView tableView,
NSIndexPath indexPath)
Allows the reorder accessory view to optionally be shown for a particular row.
|
UITableViewCell |
tableViewCellForRowAtIndexPath(UITableView tableView,
NSIndexPath indexPath)
Row display.
|
void |
tableViewCommitEditingStyleForRowAtIndexPath(UITableView tableView,
long editingStyle,
NSIndexPath indexPath)
After a row has the minus or plus button invoked (based on the UITableViewCellEditingStyle for the cell), the dataSource must commit the change
Not called for edit actions using UITableViewRowAction - the action's handler will be invoked instead
|
void |
tableViewMoveRowAtIndexPathToIndexPath(UITableView tableView,
NSIndexPath sourceIndexPath,
NSIndexPath destinationIndexPath)
Data manipulation - reorder / moving support
|
long |
tableViewNumberOfRowsInSection(UITableView tableView,
long section) |
long |
tableViewSectionForSectionIndexTitleAtIndex(UITableView tableView,
java.lang.String title,
long index)
tell table which section corresponds to section title/index (e.g.
|
java.lang.String |
tableViewTitleForFooterInSection(UITableView tableView,
long section) |
java.lang.String |
tableViewTitleForHeaderInSection(UITableView tableView,
long section)
fixed font style.
|
static long |
version_static() |
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 UITableViewDiffableDataSource(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public static UITableViewDiffableDataSource<?,?> alloc()
public static UITableViewDiffableDataSource<?,?> 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 UITableView state and the snapshot, and animate the update. animatingDifferences == NO: perform a diff between the current UITableView 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, UITableViewDiffableDataSource.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 static java.lang.String debugDescription_static()
public long defaultRowAnimation()
public static java.lang.String description_static()
public static long hash_static()
public NSIndexPath indexPathForItemIdentifier(_ItemIdentifierType identifier)
public UITableViewDiffableDataSource<?,?> init()
public UITableViewDiffableDataSource<?,?> initWithTableViewCellProvider(UITableView tableView, UITableViewDiffableDataSource.Block_initWithTableViewCellProvider 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 UITableViewDiffableDataSource<?,?> new_objc()
public long numberOfSectionsInTableView(UITableView tableView)
UITableViewDataSourcenumberOfSectionsInTableView in interface UITableViewDataSourcepublic static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public NSArray<java.lang.String> sectionIndexTitlesForTableView(UITableView tableView)
UITableViewDataSourcesectionIndexTitlesForTableView in interface UITableViewDataSourcepublic void setDefaultRowAnimation(long value)
public static void setVersion_static(long aVersion)
public NSDiffableDataSourceSnapshot<_SectionIdentifierType,_ItemIdentifierType> snapshot()
public static org.moe.natj.objc.Class superclass_static()
public boolean tableViewCanEditRowAtIndexPath(UITableView tableView, NSIndexPath indexPath)
UITableViewDataSourcetableViewCanEditRowAtIndexPath in interface UITableViewDataSourcepublic boolean tableViewCanMoveRowAtIndexPath(UITableView tableView, NSIndexPath indexPath)
UITableViewDataSourcetableViewCanMoveRowAtIndexPath in interface UITableViewDataSourcepublic UITableViewCell tableViewCellForRowAtIndexPath(UITableView tableView, NSIndexPath indexPath)
UITableViewDataSourcetableViewCellForRowAtIndexPath in interface UITableViewDataSourcepublic void tableViewCommitEditingStyleForRowAtIndexPath(UITableView tableView, long editingStyle, NSIndexPath indexPath)
UITableViewDataSourcetableViewCommitEditingStyleForRowAtIndexPath in interface UITableViewDataSourcepublic void tableViewMoveRowAtIndexPathToIndexPath(UITableView tableView, NSIndexPath sourceIndexPath, NSIndexPath destinationIndexPath)
UITableViewDataSourcetableViewMoveRowAtIndexPathToIndexPath in interface UITableViewDataSourcepublic long tableViewNumberOfRowsInSection(UITableView tableView, long section)
tableViewNumberOfRowsInSection in interface UITableViewDataSourcepublic long tableViewSectionForSectionIndexTitleAtIndex(UITableView tableView, java.lang.String title, long index)
UITableViewDataSourcetableViewSectionForSectionIndexTitleAtIndex in interface UITableViewDataSourcepublic java.lang.String tableViewTitleForFooterInSection(UITableView tableView, long section)
tableViewTitleForFooterInSection in interface UITableViewDataSourcepublic java.lang.String tableViewTitleForHeaderInSection(UITableView tableView, long section)
UITableViewDataSourcetableViewTitleForHeaderInSection in interface UITableViewDataSourcepublic static long version_static()
public void applySnapshotUsingReloadData(NSDiffableDataSourceSnapshot<_SectionIdentifierType,_ItemIdentifierType> snapshot)
This always skips diffing, and immediately resets the UITableView to the new data source state without animation. Generally this should only be used for specific cases where you need to fully reset the table view's data to the new state immediately (e.g. recycling the table 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, UITableViewDiffableDataSource.Block_applySnapshotUsingReloadDataCompletion completion)
public long indexForSectionIdentifier(_SectionIdentifierType identifier)
public _SectionIdentifierType sectionIdentifierForIndex(long index)