-
public class EventDispatcherModule extends BatchModule
-
-
Method Summary
Modifier and Type Method Description static EventDispatcherModuleprovide()StringgetId()ID of the module intgetState()Should return the state of the module (usually 0 for deactivated, 1 for activated) voidaddEventDispatcher(BatchEventDispatcher dispatcher)booleanremoveEventDispatcher(BatchEventDispatcher dispatcher)voiddispatchEvent(Batch.EventDispatcher.Type type, Batch.EventDispatcher.Payload params)voidloadDispatcherFromContext(Context context)JSONObjectgetDispatchersAnalyticRepresentation()Get dispatchers as json object used for the analytics -
Methods inherited from class com.batch.android.module.BatchModule
batchContextBecameAvailable, batchDidStart, batchDidStop, batchIsFinishing, batchWillStart, batchWillStop -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
provide
static EventDispatcherModule provide()
-
getState
int getState()
Should return the state of the module (usually 0 for deactivated, 1 for activated)
-
addEventDispatcher
void addEventDispatcher(BatchEventDispatcher dispatcher)
-
removeEventDispatcher
boolean removeEventDispatcher(BatchEventDispatcher dispatcher)
-
dispatchEvent
void dispatchEvent(Batch.EventDispatcher.Type type, Batch.EventDispatcher.Payload params)
-
loadDispatcherFromContext
void loadDispatcherFromContext(Context context)
-
getDispatchersAnalyticRepresentation
@Nullable() JSONObject getDispatchersAnalyticRepresentation()
Get dispatchers as json object used for the analytics
-
-
-
-