Package apple.uikit

Class NSDiffableDataSourceSnapshot<_SectionIdentifierType,​_ItemIdentifierType>

  • All Implemented Interfaces:
    NSCopying, NSObject

    public class NSDiffableDataSourceSnapshot<_SectionIdentifierType,​_ItemIdentifierType>
    extends NSObject
    implements NSCopying
    A NSDiffableDataSourceSnapshot represents the complete state of a UI element (e.g. UICollectionView) Snapshots can be created in two ways: 1. From a connected data source: e.g. UICollectionViewDiffableDataSource.snapshot() This will contain the current state of the UI element. 2. Constructing a new instance: e.g. NSDiffableDataSourceSnapshot() This will construct an empty snapshot with no section or item identifiers. Notes: 1. All identifiers must be unique. Section and Item identifiers do not overlap and may contain values that exist in the other (i.e. it is OK to have a section identifier == 1 and an item identifier == 1) 2. If you pass duplicate values in an item or section array (e.g. -appendItemsWithIdentifiers:), the system will throw an exception.
    • Constructor Detail

      • NSDiffableDataSourceSnapshot

        protected NSDiffableDataSourceSnapshot​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • appendItemsWithIdentifiers

        public void appendItemsWithIdentifiers​(NSArray<_ItemIdentifierType> identifiers)
        convenience: appends into last section
      • appendSectionsWithIdentifiers

        public void appendSectionsWithIdentifiers​(NSArray<?> sectionIdentifiers)
        section operations
      • 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()
      • copyWithZone

        public java.lang.Object copyWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • deleteAllItems

        public void deleteAllItems()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • indexOfItemIdentifier

        public long indexOfItemIdentifier​(_ItemIdentifierType itemIdentifier)
        If item identifier is not present returns NSNotFound
      • indexOfSectionIdentifier

        public long indexOfSectionIdentifier​(_SectionIdentifierType sectionIdentifier)
        If section identifier is not present returns NSNotFound
      • 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)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • numberOfItems

        public long numberOfItems()
        structure
      • numberOfSections

        public long numberOfSections()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()