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 occurred while subscribing to changes.

    Declaration

    Objective-C

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

    Swift

    func didReceiveError(_ error: any Error)

    Parameters

    error

    The error that has occurred.

  • The stream was opened.

    Declaration

    Objective-C

    - (void)didOpen;

    Swift

    func didOpen()
  • The stream has been closed.

    Declaration

    Objective-C

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

    Swift

    func didCloseWithError(_ error: (any Error)?)

    Parameters

    error

    The error that has occurred.