Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in version 1.0.0
belongs to Maven artifact androidx.slice:slice-view:1.0.0-rc01

SliceLiveData.OnErrorListener

public static interface SliceLiveData.OnErrorListener

androidx.slice.widget.SliceLiveData.OnErrorListener


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

Summary

Nested classes

@interface SliceLiveData.OnErrorListener.ErrorType

 

Constants

int ERROR_INVALID_INPUT

int ERROR_SLICE_NO_LONGER_PRESENT

int ERROR_STRUCTURE_CHANGED

int ERROR_UNKNOWN

Public methods

abstract void onSliceError(int type, Throwable source)

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

Constants

ERROR_INVALID_INPUT

added in version 1.0.0
public static final int ERROR_INVALID_INPUT

Constant Value: 3 (0x00000003)

ERROR_SLICE_NO_LONGER_PRESENT

added in version 1.0.0
public static final int ERROR_SLICE_NO_LONGER_PRESENT

Constant Value: 2 (0x00000002)

ERROR_STRUCTURE_CHANGED

added in version 1.0.0
public static final int ERROR_STRUCTURE_CHANGED

Constant Value: 1 (0x00000001)

ERROR_UNKNOWN

added in version 1.0.0
public static final int ERROR_UNKNOWN

Constant Value: 0 (0x00000000)

Public methods

onSliceError

added in version 1.0.0
public abstract void onSliceError (int type, 
                Throwable source)

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

Parameters
type int

source Throwable