KBAFetchedResultsObserverDelegate

@protocol KBAFetchedResultsObserverDelegate <NSObject>
@optional
/**
 Called before the fetched results observer updates its content. Corresponds to the `controllerWillChangeContent:` NSFetchedResultsControllerDelegate method.
 
 @param observer The sender of the message
 */
- (void)fetchedResultsObserverWillChange:(KBAFetchedResultsObserver *)observer;
/**
 Called after the fetched results observer updates its content. Corresponds to the `controllerDidChangeContent:` NSFetchedResultsControllerDelegate method.
 
 @param observer The sender of the message
 */
- (void)fetchedResultsObserverDidChange:(KBAFetchedResultsObserver *)observer;
/**
 Called after the fetched results observer updates its content, provides a an array of objects conforming to KBAFetchedResultsObserverChange protocol that describe each individual change.
 
 This method is preferred over fetchedResultsObserverDidChange: and will be called instead of fetchedResultsObserverDidChange: if the delegate implements both.
 
 @param observer The sender of the message
 @param changes The array of change objects
 */
- (void)fetchedResultsObserver:(KBAFetchedResultsObserver *)observer didObserveChanges:(NSArray<id<KBAFetchedResultsObserverChange>> *)changes;
@end

Undocumented

  • Called before the fetched results observer updates its content. Corresponds to the controllerWillChangeContent: NSFetchedResultsControllerDelegate method.

    Declaration

    Objective-C

    - (void)fetchedResultsObserverWillChange:
        (nonnull KBAFetchedResultsObserver *)observer;

    Parameters

    observer

    The sender of the message

  • Called after the fetched results observer updates its content. Corresponds to the controllerDidChangeContent: NSFetchedResultsControllerDelegate method.

    Declaration

    Objective-C

    - (void)fetchedResultsObserverDidChange:
        (nonnull KBAFetchedResultsObserver *)observer;

    Parameters

    observer

    The sender of the message

  • Called after the fetched results observer updates its content, provides a an array of objects conforming to KBAFetchedResultsObserverChange protocol that describe each individual change.

    This method is preferred over fetchedResultsObserverDidChange: and will be called instead of fetchedResultsObserverDidChange: if the delegate implements both.

    Declaration

    Objective-C

    - (void)fetchedResultsObserver:(nonnull KBAFetchedResultsObserver *)observer
                 didObserveChanges:
                     (nonnull NSArray<id<KBAFetchedResultsObserverChange>> *)
                         changes;

    Parameters

    observer

    The sender of the message

    changes

    The array of change objects