RLMDictionaryChange

Objective-C

@interface RLMDictionaryChange : NSObject

Swift

@_nonSendable(_assumed) class RLMDictionaryChange : NSObject

A RLMDictionaryChange object encapsulates information about changes to dictionaries that are reported by Realm notifications.

RLMDictionaryChange is passed to the notification blocks registered with -addNotificationBlock on RLMDictionary, and reports what keys in the dictionary changed since the last time the notification block was called.

  • The keys in the new version of the dictionary which were newly inserted.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSArray<id> *_Nonnull insertions;

    Swift

    var insertions: [Any] { get }
  • The keys in the new version of the dictionary which were modified.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSArray<id> *_Nonnull modifications;

    Swift

    var modifications: [Any] { get }
  • The keys which were deleted from the old version.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSArray<id> *_Nonnull deletions;

    Swift

    var deletions: [Any] { get }