DITCollectionsEvent

@interface DITCollectionsEvent : NSObject

Describes events delivered when observing collections in the store.

Only the first event will have the isInitial BOOL set to true. The first event will return empty arrays for all values because there can’t be any modifications to the set of collections if it’s the first time event handler is being called.

  • Whether or not this is the initial event being delivered.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL isInitial;
  • The collections that are known about by the store.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSArray<DITCollection *> *_Nonnull collections;
  • The collections that were previously known about by the store.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSArray<DITCollection *> *_Nonnull oldCollections;
  • The indexes in the collections array that relate to a collection that was not in the previous list of collections, but is now.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSArray<NSNumber *> *_Nonnull insertions;
  • The indexes in the oldCollections array that relate to collections that were previously known about by the store but that are now no longer being tracked.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSArray<NSNumber *> *_Nonnull deletions;
  • The indexes in the collections array that relate to collections that have been updated since the previous event.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSArray<NSNumber *> *_Nonnull updates;
  • Objects that describe how collections’ positions in the collections array have changed since the previous event.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSArray<DITLiveQueryMove *> *_Nonnull moves;