public interface

SliceLiveData.OnErrorListener

 androidx.slice.widget.SliceLiveData.OnErrorListener

Overview

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

Summary

Fields
public static final intERROR_INVALID_INPUT

public static final intERROR_SLICE_NO_LONGER_PRESENT

public static final intERROR_STRUCTURE_CHANGED

public static final intERROR_UNKNOWN

Methods
public voidonSliceError(int type, java.lang.Throwable source)

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

Fields

public static final int ERROR_UNKNOWN

public static final int ERROR_STRUCTURE_CHANGED

public static final int ERROR_SLICE_NO_LONGER_PRESENT

public static final int ERROR_INVALID_INPUT

Methods

public void onSliceError(int type, java.lang.Throwable source)

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