Package apple.uikit
Class UITableViewDiffableDataSource<_SectionIdentifierType,_ItemIdentifierType>
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.uikit.UITableViewDiffableDataSource<_SectionIdentifierType,_ItemIdentifierType>
-
- All Implemented Interfaces:
NSObject,UITableViewDataSource
public class UITableViewDiffableDataSource<_SectionIdentifierType,_ItemIdentifierType> extends NSObject implements UITableViewDataSource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUITableViewDiffableDataSource.Block_applySnapshotAnimatingDifferencesCompletionstatic interfaceUITableViewDiffableDataSource.Block_initWithTableViewCellProvider-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUITableViewDiffableDataSource(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static UITableViewDiffableDataSource<?,?>alloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)voidapplySnapshotAnimatingDifferences(NSDiffableDataSourceSnapshot<_SectionIdentifierType,_ItemIdentifierType> snapshot, boolean animatingDifferences)Apply a snapshot to the table view committing to the new data source state.voidapplySnapshotAnimatingDifferencesCompletion(NSDiffableDataSourceSnapshot<_SectionIdentifierType,_ItemIdentifierType> snapshot, boolean animatingDifferences, UITableViewDiffableDataSource.Block_applySnapshotAnimatingDifferencesCompletion completion)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(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.ClassclassForKeyedUnarchiver()static java.lang.StringdebugDescription_static()longdefaultRowAnimation()Default value is UITableViewRowAnimationAutomatic.static java.lang.Stringdescription_static()static longhash_static()NSIndexPathindexPathForItemIdentifier(_ItemIdentifierType identifier)UITableViewDiffableDataSource<?,?>init()UITableViewDiffableDataSource<?,?>initWithTableViewCellProvider(UITableView tableView, UITableViewDiffableDataSource.Block_initWithTableViewCellProvider cellProvider)static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)_ItemIdentifierTypeitemIdentifierForIndexPath(NSIndexPath indexPath)convert IndexPath <-> ItemIdentifierTypestatic NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)static java.lang.Objectnew_objc()longnumberOfSectionsInTableView(UITableView tableView)Default is 1 if not implementedstatic booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)NSArray<java.lang.String>sectionIndexTitlesForTableView(UITableView tableView)return list of section titles to display in section index view (e.g.voidsetDefaultRowAnimation(long value)Default value is UITableViewRowAnimationAutomatic.static voidsetVersion_static(long aVersion)NSDiffableDataSourceSnapshot<_SectionIdentifierType,_ItemIdentifierType>snapshot()Create a snapshot of the current UITableView data source state.static org.moe.natj.objc.Classsuperclass_static()booleantableViewCanEditRowAtIndexPath(UITableView tableView, NSIndexPath indexPath)Individual rows can opt out of having the -editing property set for them.booleantableViewCanMoveRowAtIndexPath(UITableView tableView, NSIndexPath indexPath)Allows the reorder accessory view to optionally be shown for a particular row.UITableViewCelltableViewCellForRowAtIndexPath(UITableView tableView, NSIndexPath indexPath)Row display.voidtableViewCommitEditingStyleForRowAtIndexPath(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 insteadvoidtableViewMoveRowAtIndexPathToIndexPath(UITableView tableView, NSIndexPath sourceIndexPath, NSIndexPath destinationIndexPath)Data manipulation - reorder / moving supportlongtableViewNumberOfRowsInSection(UITableView tableView, long section)longtableViewSectionForSectionIndexTitleAtIndex(UITableView tableView, java.lang.String title, long index)tell table which section corresponds to section title/index (e.g.java.lang.StringtableViewTitleForFooterInSection(UITableView tableView, long section)java.lang.StringtableViewTitleForHeaderInSection(UITableView tableView, long section)fixed font style. use custom view (UILabel) if you want something differentstatic longversion_static()-
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 UITableViewDiffableDataSource<?,?> 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 table view committing to the new data source state. animatingDifferences == YES: perform a diff between the current UITableView state and the snapshot and animate the update. animatingDifferences == NO: commit to the new table 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, UITableViewDiffableDataSource.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()
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
defaultRowAnimation
public long defaultRowAnimation()
Default value is UITableViewRowAnimationAutomatic. Change takes effect on the next update.
-
description_static
public static java.lang.String description_static()
-
hash_static
public static long hash_static()
-
indexPathForItemIdentifier
public NSIndexPath indexPathForItemIdentifier(_ItemIdentifierType identifier)
-
init
public UITableViewDiffableDataSource<?,?> init()
-
initWithTableViewCellProvider
public UITableViewDiffableDataSource<?,?> initWithTableViewCellProvider(UITableView tableView, UITableViewDiffableDataSource.Block_initWithTableViewCellProvider 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()
-
numberOfSectionsInTableView
public long numberOfSectionsInTableView(UITableView tableView)
Description copied from interface:UITableViewDataSourceDefault is 1 if not implemented- Specified by:
numberOfSectionsInTableViewin interfaceUITableViewDataSource
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
sectionIndexTitlesForTableView
public NSArray<java.lang.String> sectionIndexTitlesForTableView(UITableView tableView)
Description copied from interface:UITableViewDataSourcereturn list of section titles to display in section index view (e.g. "ABCD...Z#")- Specified by:
sectionIndexTitlesForTableViewin interfaceUITableViewDataSource
-
setDefaultRowAnimation
public void setDefaultRowAnimation(long value)
Default value is UITableViewRowAnimationAutomatic. Change takes effect on the next update.
-
setVersion_static
public static void setVersion_static(long aVersion)
-
snapshot
public NSDiffableDataSourceSnapshot<_SectionIdentifierType,_ItemIdentifierType> snapshot()
Create a snapshot of the current UITableView 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()
-
tableViewCanEditRowAtIndexPath
public boolean tableViewCanEditRowAtIndexPath(UITableView tableView, NSIndexPath indexPath)
Description copied from interface:UITableViewDataSourceIndividual rows can opt out of having the -editing property set for them. If not implemented, all rows are assumed to be editable.- Specified by:
tableViewCanEditRowAtIndexPathin interfaceUITableViewDataSource
-
tableViewCanMoveRowAtIndexPath
public boolean tableViewCanMoveRowAtIndexPath(UITableView tableView, NSIndexPath indexPath)
Description copied from interface:UITableViewDataSourceAllows the reorder accessory view to optionally be shown for a particular row. By default, the reorder control will be shown only if the datasource implements -tableView:moveRowAtIndexPath:toIndexPath:- Specified by:
tableViewCanMoveRowAtIndexPathin interfaceUITableViewDataSource
-
tableViewCellForRowAtIndexPath
public UITableViewCell tableViewCellForRowAtIndexPath(UITableView tableView, NSIndexPath indexPath)
Description copied from interface:UITableViewDataSourceRow display. Implementers should *always* try to reuse cells by setting each cell's reuseIdentifier and querying for available reusable cells with dequeueReusableCellWithIdentifier: Cell gets various attributes set automatically based on table (separators) and data source (accessory views, editing controls)- Specified by:
tableViewCellForRowAtIndexPathin interfaceUITableViewDataSource
-
tableViewCommitEditingStyleForRowAtIndexPath
public void tableViewCommitEditingStyleForRowAtIndexPath(UITableView tableView, long editingStyle, NSIndexPath indexPath)
Description copied from interface:UITableViewDataSourceAfter 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- Specified by:
tableViewCommitEditingStyleForRowAtIndexPathin interfaceUITableViewDataSource
-
tableViewMoveRowAtIndexPathToIndexPath
public void tableViewMoveRowAtIndexPathToIndexPath(UITableView tableView, NSIndexPath sourceIndexPath, NSIndexPath destinationIndexPath)
Description copied from interface:UITableViewDataSourceData manipulation - reorder / moving support- Specified by:
tableViewMoveRowAtIndexPathToIndexPathin interfaceUITableViewDataSource
-
tableViewNumberOfRowsInSection
public long tableViewNumberOfRowsInSection(UITableView tableView, long section)
- Specified by:
tableViewNumberOfRowsInSectionin interfaceUITableViewDataSource
-
tableViewSectionForSectionIndexTitleAtIndex
public long tableViewSectionForSectionIndexTitleAtIndex(UITableView tableView, java.lang.String title, long index)
Description copied from interface:UITableViewDataSourcetell table which section corresponds to section title/index (e.g. "B",1))- Specified by:
tableViewSectionForSectionIndexTitleAtIndexin interfaceUITableViewDataSource
-
tableViewTitleForFooterInSection
public java.lang.String tableViewTitleForFooterInSection(UITableView tableView, long section)
- Specified by:
tableViewTitleForFooterInSectionin interfaceUITableViewDataSource
-
tableViewTitleForHeaderInSection
public java.lang.String tableViewTitleForHeaderInSection(UITableView tableView, long section)
Description copied from interface:UITableViewDataSourcefixed font style. use custom view (UILabel) if you want something different- Specified by:
tableViewTitleForHeaderInSectionin interfaceUITableViewDataSource
-
version_static
public static long version_static()
-
-