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
public static final int ERROR_INVALID_INPUT
Constant Value: 3 (0x00000003)
ERROR_SLICE_NO_LONGER_PRESENT
public static final int ERROR_SLICE_NO_LONGER_PRESENT
Constant Value: 2 (0x00000002)
ERROR_STRUCTURE_CHANGED
public static final int ERROR_STRUCTURE_CHANGED
Constant Value: 1 (0x00000001)
ERROR_UNKNOWN
public static final int ERROR_UNKNOWN
Constant Value: 0 (0x00000000)
Public methods
onSliceError
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 |
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.