Stay organized with collections
Save and categorize content based on your preferences.
@RequiresApi(value = 19)
abstract class TemplateSliceBuilder
Known direct subclasses
ListBuilder |
Builder for constructing slices composed of rows of content.
|
Known indirect subclasses
ListBuilderDsl |
Helper class annotated with @SliceMarker, which is annotated with @DslMarker.
|
Base class of builders of various template types.
Summary
Public functions |
Slice |
Construct the slice.
|
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,["# TemplateSliceBuilder\n====================\n\nArtifact: [androidx.slice:slice-builders](/jetpack/androidx/releases/slice) \n[View Source](https://cs.android.com/search?q=file:androidx/slice/builders/TemplateSliceBuilder.java+class:androidx.slice.builders.TemplateSliceBuilder) \nAdded in [1.1.0-alpha02](/jetpack/androidx/releases/slice#1.1.0-alpha02)\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/androidx/slice/builders/TemplateSliceBuilder \"View this page in Java\")\n\n\n```\n@RequiresApi(value = 19)\nabstract class TemplateSliceBuilder\n```\n\n\u003cbr /\u003e\n\nKnown direct subclasses \n[ListBuilder](/reference/kotlin/androidx/slice/builders/ListBuilder) \n\n|----------------------------------------------------------------------|--------------------------------------------------------------|\n| [ListBuilder](/reference/kotlin/androidx/slice/builders/ListBuilder) | Builder for constructing slices composed of rows of content. |\n\nKnown indirect subclasses \n[ListBuilderDsl](/reference/kotlin/androidx/slice/builders/ListBuilderDsl) \n\n|----------------------------------------------------------------------------|-------------------------------------------------------------------------------|\n| [ListBuilderDsl](/reference/kotlin/androidx/slice/builders/ListBuilderDsl) | Helper class annotated with @SliceMarker, which is annotated with @DslMarker. |\n\n*** ** * ** ***\n\nBase class of builders of various template types.\n\nSummary\n-------\n\n| ### Public functions |\n|-------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| [Slice](/reference/kotlin/androidx/slice/Slice) | [build](/reference/kotlin/androidx/slice/builders/TemplateSliceBuilder#build())`()` Construct the slice. |\n\nPublic functions\n----------------\n\n### build\n\nAdded in [1.1.0-alpha02](/jetpack/androidx/releases/slice#1.1.0-alpha02) \n\n```\nfun build(): Slice\n```\n\nConstruct the slice."]]