SliceLiveData.OnErrorListener


interface SliceLiveData.OnErrorListener


Listener for errors when using fromStream.

Summary

Nested types

@IntDef(value = )
@Retention(value = RetentionPolicy.SOURCE)
annotation SliceLiveData.OnErrorListener.ErrorType

Public functions

Unit

Called when an error occurs converting a serialized slice into a live slice.

Constants

ERROR_INVALID_INPUT

Added in 1.1.0-alpha02
const val ERROR_INVALID_INPUT = 3: Int

ERROR_SLICE_NO_LONGER_PRESENT

Added in 1.1.0-alpha02
const val ERROR_SLICE_NO_LONGER_PRESENT = 2: Int

ERROR_STRUCTURE_CHANGED

Added in 1.1.0-alpha02
const val ERROR_STRUCTURE_CHANGED = 1: Int

ERROR_UNKNOWN

Added in 1.1.0-alpha02
const val ERROR_UNKNOWN = 0: 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.