Protocols

The following protocols are available globally.

  • Protocol describing a change object.

    See more

    Declaration

    Objective-C

    @protocol KBAFetchedResultsObserverChange <NSObject>
  • Undocumented

    See more

    Declaration

    Objective-C

    @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
  • Protocol for objects that map JSON keys to entity names.

    See more

    Declaration

    Objective-C

    @protocol KBAManagedObjectEntityMapping <NSObject>
  • Protocol for objects that map JSON keys to managed object property names.

    See more

    Declaration

    Objective-C

    @protocol KBAManagedObjectPropertyMapping <NSObject>