EventObserver

class EventObserver<T>(onEventUnhandledContent: (T) -> Unit) : Observer<Event<T>>

An Observer for Events, simplifying the pattern of checking if the Event's content has already been handled.

onEventUnhandledContent is only called if the Event's contents has not been handled.

Constructors

Link copied to clipboard
constructor(onEventUnhandledContent: (T) -> Unit)

Functions

Link copied to clipboard
open override fun onChanged(event: Event<T>)