OnErrorListener

interface OnErrorListener
androidx.slice.widget.SliceLiveData.OnErrorListener

Listener for errors when using fromStream(Context, InputStream, OnErrorListener).

Summary

Nested classes

Constants
static Int

static Int

static Int

static Int

Public methods
abstract Unit
onSliceError(type: Int, @Nullable source: Throwable?)

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

Constants

ERROR_UNKNOWN

static val ERROR_UNKNOWN: Int
Value: 0

ERROR_STRUCTURE_CHANGED

static val ERROR_STRUCTURE_CHANGED: Int
Value: 1

ERROR_SLICE_NO_LONGER_PRESENT

static val ERROR_SLICE_NO_LONGER_PRESENT: Int
Value: 2

ERROR_INVALID_INPUT

static val ERROR_INVALID_INPUT: Int
Value: 3

Public methods

onSliceError

abstract fun onSliceError(type: Int, @Nullable source: Throwable?): Unit

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