Slice
public
final
class
Slice
extends Object
implements
VersionedParcelable,
VersionedParcelable
java.lang.Object
|
↳ |
androidx.slice.Slice
|
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 TemplateSliceBuilder
s
in a tree structure that provides the OS some information about how the content should be
displayed.
Summary
Constants |
String |
EXTRA_SELECTION
Key to retrieve an extra added to an intent when an item in a selection is selected.
|
Inherited methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Constants
public static final String EXTRA_SELECTION
Key to retrieve an extra added to an intent when an item in a selection is selected.
Constant Value:
"android.app.slice.extra.SELECTION"
Public methods
getHints
public List<String> getHints ()
Returns |
List<String> |
All hints associated with this Slice.
|
getUri
public Uri getUri ()
Returns |
Uri |
The Uri that this Slice represents.
|
toString
public String toString ()
Returns |
String |
A string representation of this slice.
|