BatchEventDispatcher
@interface BatchEventDispatcher
Batch’s Event Dispatcher module.
-
Check if the event is associated with a push notification.
Declaration
Objective-C
+ (id)isNotificationEvent:(id)eventType;
Parameters
eventType
The type of the event
Return Value
True if the event is associated with a push notification, false otherwise
-
Check if the event is associated with an in-app or landing message.
Declaration
Objective-C
+ (id)isMessagingEvent:(id)eventType;
Parameters
eventType
The type of the event
Return Value
True if the event is associated with an in-app or landing message, false otherwise
-
Add an event dispatcher. If that dispatcher is already added, it won’t be added a second time.
Declaration
Objective-C
+ (void)addDispatcher:(nonnull id<BatchEventDispatcherDelegate>)dispatcher;
Parameters
dispatcher
The dispatcher to add
-
Remove an event dispatcher. If that dispatcher isn’t already added, nothing will be done.
Declaration
Objective-C
+ (void)removeDispatcher:(nonnull id<BatchEventDispatcherDelegate>)dispatcher;
Parameters
dispatcher
The dispatcher to remove