Class EventsRepository

  • All Implemented Interfaces:

    
    public final class EventsRepository
    
                        

    SDK Events repository

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      EventsRepository(Handler handler)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Unit clear()
      final Boolean addEventListener(DidomiEventListener listener) Register a new event listener
      final Boolean removeEventListener(DidomiEventListener listener) Remove a previously added event listener
      final Unit triggerEvent(Event event) Fire an event to all listeners Call listeners on the main UI thread as that is what the app would expect and we are likely to be trigger events from a background thread
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait