Package com.batch.android
Class Batch.EventDispatcher
java.lang.Object
com.batch.android.Batch.EventDispatcher
- Enclosing class:
- Batch
Batch EventDispatcher module
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Accessor to the payload of the dispatched event inBatchEventDispatcher#dispatchEvent(Type, Payload)
.static enum
Represents the type of the dispatched event inBatchEventDispatcher#dispatchEvent(Type, Payload)
. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addDispatcher
(BatchEventDispatcher dispatcher) Add an event dispatcher.static boolean
removeDispatcher
(BatchEventDispatcher dispatcher) Remove an event dispatcher.
-
Method Details
-
addDispatcher
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
Remove an event dispatcher.- Parameters:
dispatcher
- The Batch Event Dispatcher to remove
-