EventObserver

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

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

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

Constructors

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

Functions

Link copied to clipboard
open override fun onChanged(singleEvent: SingleEvent<T>)