1package androidx.slice {
2
3  public abstract class SliceManager {
4    method public abstract androidx.slice.Slice bindSlice(android.net.Uri);
5    method public abstract androidx.slice.Slice bindSlice(android.content.Intent);
6    method public static androidx.slice.SliceManager getInstance(android.content.Context);
7    method public abstract android.net.Uri mapIntentToUri(android.content.Intent);
8    method public abstract void pinSlice(android.net.Uri);
9    method public abstract void registerSliceCallback(android.net.Uri, androidx.slice.SliceManager.SliceCallback);
10    method public abstract void registerSliceCallback(android.net.Uri, java.util.concurrent.Executor, androidx.slice.SliceManager.SliceCallback);
11    method public abstract void unpinSlice(android.net.Uri);
12    method public abstract void unregisterSliceCallback(android.net.Uri, androidx.slice.SliceManager.SliceCallback);
13  }
14
15  public static abstract interface SliceManager.SliceCallback {
16    method public abstract void onSliceUpdated(androidx.slice.Slice);
17  }
18
19  public class SliceUtils {
20    method public static int getLoadingState(androidx.slice.Slice);
21    method public static java.util.List<androidx.slice.SliceItem> getSliceActions(androidx.slice.Slice);
22    method public static androidx.slice.Slice parseSlice(java.io.InputStream, java.lang.String) throws java.io.IOException;
23    method public static void serializeSlice(androidx.slice.Slice, android.content.Context, java.io.OutputStream, java.lang.String, androidx.slice.SliceUtils.SerializeOptions) throws java.io.IOException;
24    field public static final int LOADING_ALL = 0; // 0x0
25    field public static final int LOADING_COMPLETE = 2; // 0x2
26    field public static final int LOADING_PARTIAL = 1; // 0x1
27  }
28
29  public static class SliceUtils.SerializeOptions {
30    ctor public SliceUtils.SerializeOptions();
31    method public androidx.slice.SliceUtils.SerializeOptions setActionMode(int);
32    method public androidx.slice.SliceUtils.SerializeOptions setImageMode(int);
33    field public static final int MODE_DISABLE = 2; // 0x2
34    field public static final int MODE_REMOVE = 1; // 0x1
35    field public static final int MODE_THROW = 0; // 0x0
36  }
37
38}
39
40package androidx.slice.widget {
41
42  public class EventInfo {
43    ctor public EventInfo(int, int, int, int);
44    method public void setPosition(int, int, int);
45    field public static final int ACTION_TYPE_BUTTON = 1; // 0x1
46    field public static final int ACTION_TYPE_CONTENT = 3; // 0x3
47    field public static final int ACTION_TYPE_SEE_MORE = 4; // 0x4
48    field public static final int ACTION_TYPE_SLIDER = 2; // 0x2
49    field public static final int ACTION_TYPE_TOGGLE = 0; // 0x0
50    field public static final int POSITION_CELL = 2; // 0x2
51    field public static final int POSITION_END = 1; // 0x1
52    field public static final int POSITION_START = 0; // 0x0
53    field public static final int ROW_TYPE_GRID = 1; // 0x1
54    field public static final int ROW_TYPE_LIST = 0; // 0x0
55    field public static final int ROW_TYPE_MESSAGING = 2; // 0x2
56    field public static final int ROW_TYPE_SHORTCUT = -1; // 0xffffffff
57    field public static final int STATE_OFF = 0; // 0x0
58    field public static final int STATE_ON = 1; // 0x1
59    field public int actionCount;
60    field public int actionIndex;
61    field public int actionPosition;
62    field public int actionType;
63    field public int rowIndex;
64    field public int rowTemplateType;
65    field public int sliceMode;
66    field public int state;
67  }
68
69  public final class SliceLiveData {
70    ctor public SliceLiveData();
71    method public static android.arch.lifecycle.LiveData<androidx.slice.Slice> fromIntent(android.content.Context, android.content.Intent);
72    method public static android.arch.lifecycle.LiveData<androidx.slice.Slice> fromUri(android.content.Context, android.net.Uri);
73  }
74
75  public class SliceView extends android.view.ViewGroup implements android.arch.lifecycle.Observer {
76    ctor public SliceView(android.content.Context);
77    ctor public SliceView(android.content.Context, android.util.AttributeSet);
78    ctor public SliceView(android.content.Context, android.util.AttributeSet, int);
79    ctor public SliceView(android.content.Context, android.util.AttributeSet, int, int);
80    method public int getMode();
81    method public java.util.List<androidx.slice.SliceItem> getSliceActions();
82    method public void onChanged(androidx.slice.Slice);
83    method public void setMode(int);
84    method public void setOnSliceActionListener(androidx.slice.widget.SliceView.OnSliceActionListener);
85    method public void setScrollable(boolean);
86    method public void setSlice(androidx.slice.Slice);
87    method public void setSliceActions(java.util.List<androidx.slice.SliceItem>);
88    method public void setTint(int);
89    field public static final int MODE_LARGE = 2; // 0x2
90    field public static final int MODE_SHORTCUT = 3; // 0x3
91    field public static final int MODE_SMALL = 1; // 0x1
92  }
93
94  public static abstract interface SliceView.OnSliceActionListener {
95    method public abstract void onSliceAction(androidx.slice.widget.EventInfo, androidx.slice.SliceItem);
96  }
97
98}
99
100