-
public interface EventListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classEventListener.EventNote: Event is Serializable for convenience but we currently make no guarantee that the Serialization is backward / forward compatible across LeakCanary versions, so plan accordingly. This is convenient for passing events around processes, and shouldn't be used to store them.
-
Method Summary
Modifier and Type Method Description abstract UnitonEvent(EventListener.Event event)onEvent is always called from the thread the events are emitted from, which is documented for each event. -
-
Method Detail
-
onEvent
abstract Unit onEvent(EventListener.Event event)
onEvent is always called from the thread the events are emitted from, which is documented for each event. This enables you to potentially block a chain of events, waiting for some pre work to be done.
-
-
-
-