Class EventObserver
-
- All Implemented Interfaces:
-
androidx.lifecycle.Observer
public final class EventObserver<T extends Object> implements 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.
-
-
Constructor Summary
Constructors Constructor Description EventObserver(Function1<T, Unit> onEventUnhandledContent)
-