//Extensions for Jetpack Lifecycle/it.czerwinski.android.lifecycle.livedata/filterIsInstance

filterIsInstance

[androidJvm]
Content
inline fun <R> LiveData<*>.filterIsInstance(): LiveData<R>
More info

Returns a LiveData emitting only values of type R from this LiveData.

Example:

val resultLiveData: LiveData<Try> = ... val failureLiveData: LiveData = resultLiveData.filterIsInstance()