BlueConicEventManagerImpl

Implementation of the event manager interface. This singleton keeps track of an event queue and makes sure the published events are passed on to the registered event handlers.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun cleanup()

Clears the event when the location is changed (another activity is opened).

Link copied to clipboard

Clears the event handler mapping for a listener UUID

Link copied to clipboard
open override fun clearEvents()

Clears the event queue. This method is typically used when a new screen is loaded. The events from the previous screen have to be ignored.

Link copied to clipboard
open override fun handleAllEvents()

Publishes all events that were in the event queue. These will be validated by the given listeners and happen after the onLoad. Used at a new PAGEVIEW after all listeners are activated, and onLoad is called.

Link copied to clipboard
open override fun publish(event: Event)

Method to publish an event. An event handler can act on these events. For example: when the app developer throws an event "Video started", the engagement is increased in the Interest Ranker based on this event (because the marketer defined an event rule in the BlueConic UI).

Link copied to clipboard
open override fun setBlueConicClient(client: BlueConicClient)

Sets the BlueConic client.

Link copied to clipboard
fun subscribe(className: String, callbackObject: EventHandler, uuid: String)

Subscribes an event handler for an event class name.