-
- All Implemented Interfaces:
public final class EventsRepositorySDK Events repository
-
-
Constructor Summary
Constructors Constructor Description EventsRepository(Handler handler)
-
Method Summary
Modifier and Type Method Description final Unitclear()final BooleanaddEventListener(DidomiEventListener listener)Register a new event listener final BooleanremoveEventListener(DidomiEventListener listener)Remove a previously added event listener final UnittriggerEvent(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 -
-
Method Detail
-
addEventListener
final Boolean addEventListener(DidomiEventListener listener)
Register a new event listener
- Parameters:
listener- as DidomiEventListener
-
removeEventListener
final Boolean removeEventListener(DidomiEventListener listener)
Remove a previously added event listener
- Parameters:
listener- as DidomiEventListener
-
triggerEvent
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
-
-
-
-