SliceLiveData.OnErrorListener
interface SliceLiveData.OnErrorListener
Listener for errors when using fromStream.
Summary
Nested types |
|---|
@IntDef(value = ) |
Constants |
|
|---|---|
const Int |
|
const Int |
|
const Int |
|
const Int |
ERROR_UNKNOWN = 0 |
Public functions |
|
|---|---|
Unit |
onSliceError(Called when an error occurs converting a serialized slice into a live slice. |
Constants
ERROR_SLICE_NO_LONGER_PRESENT
Added in 1.1.0-alpha02
const val ERROR_SLICE_NO_LONGER_PRESENT = 2: Int
Public functions
onSliceError
Added in 1.1.0-alpha02
fun onSliceError(
@SliceLiveData.OnErrorListener.ErrorType type: Int,
source: Throwable?
): Unit
Called when an error occurs converting a serialized slice into a live slice.