RLMEventDelegate

Objective-C

@protocol RLMEventDelegate <NSObject>

Swift

protocol RLMEventDelegate : NSObjectProtocol

Delegate which is used for subscribing to changes.

  • Invoked when a change event has been received.

    Declaration

    Objective-C

    - (void)didReceiveEvent:(nonnull NSData *)event;

    Swift

    func didReceiveEvent(_ event: Data)

    Parameters

    event

    The change event encoded as NSData

  • A error has occured while subscribing to changes.

    Declaration

    Objective-C

    - (void)didReceiveError:(nonnull NSError *)error;

    Swift

    func didReceiveError(_ error: Error)

    Parameters

    error

    The error that has occured.

  • The stream was opened.

    Declaration

    Objective-C

    - (void)didOpen;

    Swift

    func didOpen()
  • The stream has been closed.

    Declaration

    Objective-C

    - (void)didCloseWithError:(nonnull NSError *)error;

    Swift

    func didCloseWithError(_ error: Error)

    Parameters

    error

    The error that has occured.