belongs to Maven artifact androidx.slice:slice-core:1.0.0-alpha1

Slice

public final class Slice
extends Object

java.lang.Object
   ↳ androidx.slice.Slice


A slice is a piece of app content and actions that can be surfaced outside of the app.

They are constructed using TemplateSliceBuilders in a tree structure that provides the OS some information about how the content should be displayed.

Summary

Public methods

List<String> getHints()
List<SliceItem> getItems()
Uri getUri()
String toString()

Inherited methods

Public methods

getHints

List<String> getHints ()

Returns
List<String> All hints associated with this Slice.

getItems

List<SliceItem> getItems ()

Returns
List<SliceItem> All child SliceItems that this Slice contains.

getUri

Uri getUri ()

Returns
Uri The Uri that this Slice represents.

toString

String toString ()

Returns
String A string representation of this slice.