RLMPropertyChange

Objective-C

@interface RLMPropertyChange : NSObject

Swift

class 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 (nonatomic, strong, readonly) 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 (nonatomic, strong, readonly, 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 (nonatomic, strong, readonly, nullable) id value;

    Swift

    var value: Any? { get }