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