Slice
@RequiresApi(19) class Slice : CustomVersionedParcelable, VersionedParcelable
A slice is a piece of app content and actions that can be surfaced outside of the app. A slice is identified by a Uri and served via a SliceProvider
.
Slices are constructed using androidx.slice.builders.TemplateSliceBuilder
s in a tree structure that provides the OS some information about how the content should be displayed.
Summary
Constants |
static String |
Key to retrieve an extra added to an intent when an item in a selection is selected.
|
Constants
static val EXTRA_SELECTION: String
Key to retrieve an extra added to an intent when an item in a selection is selected.
Value: "android.app.slice.extra.SELECTION"
Public methods
getUri
fun getUri(): Uri!
Return |
Uri! |
The Uri that this Slice represents. |
toString
fun toString(): String
Return |
String |
A string representation of this slice. |