RLMPropertyChange

@interface RLMPropertyChange : NSObject

Information about a specific property which changed in an RLMObject change notification.

  • The name of the property which changed.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) NSString *_Nonnull name;

    Swift

    var name: String { get }
  • The value of the property before the change occurred. This will always be nil if the change happened on the same thread as the notification and for RLMArray properties.

    For object properties this will give the object which was previously linked to, but that object will have its new values and not the values it had before the changes. This means that previousValue may be a deleted object, and you will need to check invalidated before accessing any of its properties.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nullable) id previousValue;

    Swift

    var previousValue: Any? { get }
  • The value of the property after the change occurred. This will always be nil for RLMArray properties.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nullable) id value;

    Swift

    var value: Any? { get }