Android.App.Slices Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides types to build, publish, and request slices of app content for display in other apps or system surfaces.
Classes
| Name | Description |
|---|---|
| Slice |
A slice is a piece of app content and actions that can be surfaced outside of the app. |
| Slice.Builder |
A Builder used to construct |
| Slice.InterfaceConsts |
Contains the parcelable interface constants exposed by the .NET binding for Slice. |
| SliceItem |
A SliceItem is a single unit in the tree structure of a |
| SliceItem.InterfaceConsts |
Contains the parcelable interface constants exposed by the .NET binding for SliceItem. |
| SliceManager |
Class to handle interactions with |
| SliceMetrics |
Metrics interface for slices. |
| SliceProvider |
A SliceProvider allows an app to provide content to be displayed in system spaces. |
| SliceSpec |
Class describing the structure of the data contained within a slice. |
| SliceSpec.InterfaceConsts |
Contains the parcelable interface constants exposed by the .NET binding for SliceSpec. |
Remarks
A Slice contains a tree of SliceItem objects. A SliceProvider supplies the content, and SliceManager requests and pins slices. A SliceSpec identifies a supported data structure and revision.
The Android slice framework is deprecated from Android 15 (API level 35) and will receive no further updates. The Android reference recommends AppSearch for sending displayable data between apps.