library / io.getstream.chat.android.livedata.utils / EventObserver

EventObserver

class EventObserver<T> : 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

<init>

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

EventObserver(onEventUnhandledContent: (T) -> Unit)

Functions

onChanged

fun onChanged(event: Event<T>?): Unit