Interface NSFetchedResultsControllerDelegate


  • public interface NSFetchedResultsControllerDelegate
    • Method Detail

      • controllerDidChangeObjectAtIndexPathForChangeTypeNewIndexPath

        default void controllerDidChangeObjectAtIndexPathForChangeTypeNewIndexPath​(@NotNull
                                                                                   @NotNull NSFetchedResultsController<?> controller,
                                                                                   @NotNull
                                                                                   @NotNull java.lang.Object anObject,
                                                                                   @Nullable
                                                                                   @Nullable NSIndexPath indexPath,
                                                                                   long type,
                                                                                   @Nullable
                                                                                   @Nullable NSIndexPath newIndexPath)
      • controllerDidChangeSectionAtIndexForChangeType

        default void controllerDidChangeSectionAtIndexForChangeType​(@NotNull
                                                                    @NotNull NSFetchedResultsController<?> controller,
                                                                    @NotNull
                                                                    @NotNull NSFetchedResultsSectionInfo sectionInfo,
                                                                    long sectionIndex,
                                                                    long type)
      • controllerSectionIndexTitleForSectionName

        @Nullable
        default @Nullable java.lang.String controllerSectionIndexTitleForSectionName​(@NotNull
                                                                                     @NotNull NSFetchedResultsController<?> controller,
                                                                                     @NotNull
                                                                                     @NotNull java.lang.String sectionName)
        API-Since: 4.0
      • controllerDidChangeContent

        default void controllerDidChangeContent​(@NotNull
                                                @NotNull NSFetchedResultsController<?> controller)
      • controllerWillChangeContent

        default void controllerWillChangeContent​(@NotNull
                                                 @NotNull NSFetchedResultsController<?> controller)
      • controllerDidChangeContentWithDifference

        default void controllerDidChangeContentWithDifference​(@NotNull
                                                              @NotNull NSFetchedResultsController<?> controller,
                                                              @NotNull
                                                              @NotNull NSOrderedCollectionDifference<NSManagedObjectID> diff)
        Called when the contents of the fetched results controller change. If this method is implemented and the controller is configured with sectionNameKeyPath = nil, no other delegate methods will be invoked. This method is only invoked if the controller's `sectionNameKeyPath` property is nil and `controller:didChangeContentWithSnapshot:` is not implemented. API-Since: 13.0
      • controllerDidChangeContentWithSnapshot

        default void controllerDidChangeContentWithSnapshot​(@NotNull
                                                            @NotNull NSFetchedResultsController<?> controller,
                                                            @NotNull
                                                            @NotNull NSDiffableDataSourceSnapshot<java.lang.String,​NSManagedObjectID> snapshot)
        Called when the contents of the fetched results controller change. If this method is implemented, no other delegate methods will be invoked. API-Since: 13.0