-
public interface BatchEventDispatcherInterface used when listening for event to dispatch. See addDispatcher and removeDispatcher.
-
-
Method Summary
Modifier and Type Method Description StringgetName()Get the name of the dispatcherThis 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. intgetVersion()Get the version of the dispatcherThis 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. abstract voiddispatchEvent(@NonNull() Batch.EventDispatcher.Type eventType, @NonNull() Batch.EventDispatcher.Payload payload)Callback when a new events just happened in the Batch SDK -
-
Method Detail
-
getName
@Nullable() String getName()
Get the name of the dispatcherThis 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.
-
getVersion
int getVersion()
Get the version of the dispatcherThis 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.
-
dispatchEvent
abstract void dispatchEvent(@NonNull() Batch.EventDispatcher.Type eventType, @NonNull() Batch.EventDispatcher.Payload payload)
Callback when a new events just happened in the Batch SDK
-
-
-
-