BatchEventDispatcherDelegate

@protocol BatchEventDispatcherDelegate

Represents a dispatcher that can be registered to receive events.

  • Get the name of the dispatcher

    Declaration

    Objective-C

    - (id)name;
  • Get the version of the dispatcher

    Declaration

    Objective-C

    - (id)version;
  • Called when a new event happens in the Batch SDK.

    No guarantee about the thread this method will be called on is made.

    Declaration

    Objective-C

    - (void)dispatchEventWithType:(id)type
                          payload:(nonnull id<BatchEventDispatcherPayload>)payload;

    Parameters

    type

    The type of the event

    payload

    The payload associated with the event