Package com.batch.android
Interface BatchEventDispatcher
public interface BatchEventDispatcher
Interface used when listening for event to dispatch.
See
Batch.EventDispatcher#addDispatcher(BatchEventDispatcher) and Batch.EventDispatcher#removeDispatcher(BatchEventDispatcher).-
Method Summary
Modifier and TypeMethodDescriptionvoiddispatchEvent(Batch.EventDispatcher.Type eventType, Batch.EventDispatcher.Payload payload) Callback when a new events just happened in the Batch SDKdefault StringgetName()Get the name of the dispatcher This information is only used for analytics /!\ `default` method can lead to an AbstractMethodError if java 8 language features are not available (api < 24).default intGet the version of the dispatcher This information is only used for analytics /!\ `default` method can lead to an AbstractMethodError if java 8 language features are not available (api < 24).
-
Method Details
-
getName
Get the name of the dispatcher This information is only used for analytics /!\ `default` method can lead to an AbstractMethodError if java 8 language features are not available (api < 24). Ensure catching the exception when using this method or use reflection check.- Returns:
- the name of the dispatcher
-
getVersion
default int getVersion()Get the version of the dispatcher This information is only used for analytics /!\ `default` method can lead to an AbstractMethodError if java 8 language features are not available (api < 24). Ensure catching the exception when using this method or use reflection check.- Returns:
- the version of the dispatcher
-
dispatchEvent
Callback when a new events just happened in the Batch SDK- Parameters:
eventType-payload-
-