SliceLiveData.OnErrorListener
public interface SliceLiveData.OnErrorListener
Listener for errors when using fromStream.
Summary
Nested types |
|---|
@IntDef(value = ) |
Constants |
|
|---|---|
default static final int |
|
default static final int |
|
default static final int |
|
default static final int |
ERROR_UNKNOWN = 0 |
Public methods |
|
|---|---|
abstract void |
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
default static final int ERROR_SLICE_NO_LONGER_PRESENT = 2
Public methods
onSliceError
Added in 1.1.0-alpha02
abstract void onSliceError(
@SliceLiveData.OnErrorListener.ErrorType int type,
@Nullable Throwable source
)
Called when an error occurs converting a serialized slice into a live slice.