observeEventNotHandled

fun <T> LiveData<Event<T>>.observeEventNotHandled(owner: LifecycleOwner, observer: (T) -> Unit)

Utility method to ease the process of unhandled Events

Parameters

owner

: LifeCycleOwner that must be used for the observer

observer

block that will be executed when changes are emitted