-
public final class Batch.EventDispatcherBatch EventDispatcher module
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumBatch.EventDispatcher.TypeRepresents the type of the dispatched event in dispatchEvent.Declared under Batch.EventDispatcher to avoid ambiguity with BatchEventAttributes.
public interfaceBatch.EventDispatcher.PayloadAccessor to the payload of the dispatched event in dispatchEvent.Declared under Batch.EventDispatcher to avoid ambiguity with BatchEventAttributes and BatchPushPayload.
-
Method Summary
Modifier and Type Method Description static voidaddDispatcher(BatchEventDispatcher dispatcher)Add an event dispatcher.The Batch SDK must be opt-in for the dispatcher to receive events. static booleanremoveDispatcher(BatchEventDispatcher dispatcher)Remove an event dispatcher. -
-
Method Detail
-
addDispatcher
static void addDispatcher(BatchEventDispatcher dispatcher)
Add an event dispatcher.The Batch SDK must be opt-in for the dispatcher to receive events.
- Parameters:
dispatcher- The Batch Event Dispatcher to add
-
removeDispatcher
static boolean removeDispatcher(BatchEventDispatcher dispatcher)
Remove an event dispatcher.
- Parameters:
dispatcher- The Batch Event Dispatcher to remove
-
-
-
-