Package com.batch.android
Class Batch.EventDispatcher
- java.lang.Object
-
- com.batch.android.Batch.EventDispatcher
-
- Enclosing class:
- Batch
public static final class Batch.EventDispatcher extends java.lang.ObjectBatch EventDispatcher module
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceBatch.EventDispatcher.PayloadAccessor to the payload of the dispatched event inBatchEventDispatcher.dispatchEvent(Type, Payload).static classBatch.EventDispatcher.TypeRepresents the type of the dispatched event inBatchEventDispatcher.dispatchEvent(Type, Payload).
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddDispatcher(BatchEventDispatcher dispatcher)Add an event dispatcher.static booleanremoveDispatcher(BatchEventDispatcher dispatcher)Remove an event dispatcher.
-
-
-
Method Detail
-
addDispatcher
public static void addDispatcher(BatchEventDispatcher dispatcher)
Add an event dispatcher. The Batch SDK must be opt-in for the dispatcher to receive events.- Parameters:
dispatcher-
-
removeDispatcher
public static boolean removeDispatcher(BatchEventDispatcher dispatcher)
Remove an event dispatcher.- Parameters:
dispatcher-
-
-