Package com.batch.android
Interface BatchEventDispatcher
-
public interface BatchEventDispatcherInterface used when listening for event to dispatch. SeeBatch.EventDispatcher.addDispatcher(BatchEventDispatcher)andBatch.EventDispatcher.removeDispatcher(BatchEventDispatcher).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voiddispatchEvent(Batch.EventDispatcher.Type eventType, Batch.EventDispatcher.Payload payload)Callback when a new events just happened in the Batch SDKdefault java.lang.StringgetName()Get the name of the dispatcher This information is only used for analyticsdefault intgetVersion()Get the version of the dispatcher This information is only used for analytics
-
-
-
Method Detail
-
getName
@Nullable default java.lang.String getName()
Get the name of the dispatcher This information is only used for analytics- Returns:
- the name of the dispatcher
-
getVersion
default int getVersion()
Get the version of the dispatcher This information is only used for analytics- Returns:
- the version of the dispatcher
-
dispatchEvent
void dispatchEvent(@NonNull Batch.EventDispatcher.Type eventType, @NonNull Batch.EventDispatcher.Payload payload)Callback when a new events just happened in the Batch SDK- Parameters:
eventType-payload-
-
-