SliceLiveData.OnErrorListener


public interface SliceLiveData.OnErrorListener


Listener for errors when using fromStream.

Summary

Nested types

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

Constants

default static final int
default static final int
default static final int
default static final int

Public methods

abstract void

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

Constants

ERROR_INVALID_INPUT

Added in 1.1.0-alpha02
default static final int ERROR_INVALID_INPUT = 3

ERROR_SLICE_NO_LONGER_PRESENT

Added in 1.1.0-alpha02
default static final int ERROR_SLICE_NO_LONGER_PRESENT = 2

ERROR_STRUCTURE_CHANGED

Added in 1.1.0-alpha02
default static final int ERROR_STRUCTURE_CHANGED = 1

ERROR_UNKNOWN

Added in 1.1.0-alpha02
default static final int ERROR_UNKNOWN = 0

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.