Package com.tomtom.sdk.common.event
Types
Messenger for generic events - allows publishing Events using provided Looper.
Generic event channel that allows registration of listeners that will be called when an event is published via an appropriate EventPublisher.
Generic event listener reporting an Event of the given type.
Generic event publisher. It should be used in conjunction with the EventChannel.
Extension of the MutableLiveData acting as single-shot observable event. Once a new data value is set, then the attached observer is notified only once. Note that only one observer is going to be notified of changes.
Synchronous messenger for generic events. It allows event publishing and also handles the subscription of event listeners.
Functions
Waits till provided event appears in the EventChannel
Registers EventListener that will be called only one time and only when given condition is met. Optional filter can be used to make the listener triggered only for certain events based on provided criteria. By default, all events are accepted. Once the listener is triggered, it will remove itself from this EventChannel automatically.