Interface BatchEventDispatcher


public interface BatchEventDispatcher
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Callback when a new events just happened in the Batch SDK
    default String
    Get the name of the dispatcher This information is only used for analytics /!
    default int
    Get the version of the dispatcher This information is only used for analytics /!
  • Method Details

    • getName

      default String 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

      void dispatchEvent(Batch.EventDispatcher.Type eventType, Batch.EventDispatcher.Payload payload)
      Callback when a new events just happened in the Batch SDK
      Parameters:
      eventType -
      payload -