Stay organized with collections
Save and categorize content based on your preferences.
Annotations
Interfaces
Classes
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-15 UTC."],[],[],null,["# androidx.slice.widget\n=====================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/androidx/slice/widget/package-summary \"View this page in Kotlin\") \\|Java\n\nAnnotations\n-----------\n\n|---------------------------------------------------------------------------------------------------------------------|---|\n| [SliceLiveData.OnErrorListener.ErrorType](/reference/androidx/slice/widget/SliceLiveData.OnErrorListener.ErrorType) | |\n\nInterfaces\n----------\n\n|-----------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [RowStyleFactory](/reference/androidx/slice/widget/RowStyleFactory) | Factory to return different styles for child views of a slice. |\n| [SliceLiveData.OnErrorListener](/reference/androidx/slice/widget/SliceLiveData.OnErrorListener) | Listener for errors when using [fromStream](/reference/androidx/slice/widget/SliceLiveData#fromStream(android.content.Context,java.io.InputStream,androidx.slice.widget.SliceLiveData.OnErrorListener)). |\n| [SliceView.OnSliceActionListener](/reference/androidx/slice/widget/SliceView.OnSliceActionListener) | Implement this interface to be notified of interactions with the slice displayed in this view. |\n\nClasses\n-------\n\n|---------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------|\n| [EventInfo](/reference/androidx/slice/widget/EventInfo) | Represents information associated with a logged event on [SliceView](/reference/androidx/slice/widget/SliceView). |\n| [SliceLiveData](/reference/androidx/slice/widget/SliceLiveData) | Class with factory methods for creating LiveData that observes slices. |\n| [SliceLiveData.CachedSliceLiveData](/reference/androidx/slice/widget/SliceLiveData.CachedSliceLiveData) | Implementation of [LiveData](/reference/androidx/lifecycle/LiveData)that provides controls over how cached vs live slices work. |\n| [SliceView](/reference/androidx/slice/widget/SliceView) | A view for displaying [Slice](/reference/androidx/slice/Slice)s. |"]]