Stay organized with collections
Save and categorize content based on your preferences.
Interfaces
Objects
Devices |
List with the pre-defined devices available to be used in the preview.
|
Wallpapers |
Wallpapers available to be used in the Preview .
|
Annotations
Preview |
Preview can be applied to either of the following:
|
PreviewDynamicColors |
A MultiPreview annotation for desplaying a @Composable method using four different wallpaper colors.
|
PreviewFontScale |
A MultiPreview annotation for desplaying a @Composable method using seven standard font sizes.
|
PreviewLightDark |
A MultiPreview annotation for desplaying a @Composable method using light and dark themes.
|
PreviewParameter |
PreviewParameter can be applied to any parameter of a @Preview .
|
PreviewScreenSizes |
A MultiPreview annotation for displaying a @Composable method using the screen sizes of five different reference devices.
|
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.compose.ui.tooling.preview\n===================================\n\nInterfaces\n----------\n\n|------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [PreviewParameterProvider](/reference/kotlin/androidx/compose/ui/tooling/preview/PreviewParameterProvider) | Interface to be implemented by any provider of values that you want to be injected as @[Preview](/reference/kotlin/androidx/compose/ui/tooling/preview/Preview) parameters. |\n\nObjects\n-------\n\n|--------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------|\n| [Devices](/reference/kotlin/androidx/compose/ui/tooling/preview/Devices) | List with the pre-defined devices available to be used in the preview. |\n| [Wallpapers](/reference/kotlin/androidx/compose/ui/tooling/preview/Wallpapers) | Wallpapers available to be used in the [Preview](/reference/kotlin/androidx/compose/ui/tooling/preview/Preview). |\n\nAnnotations\n-----------\n\n|----------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Preview](/reference/kotlin/androidx/compose/ui/tooling/preview/Preview) | [Preview](/reference/kotlin/androidx/compose/ui/tooling/preview/Preview) can be applied to either of the following: |\n| [PreviewDynamicColors](/reference/kotlin/androidx/compose/ui/tooling/preview/PreviewDynamicColors) | A MultiPreview annotation for desplaying a @Composable method using four different wallpaper colors. |\n| [PreviewFontScale](/reference/kotlin/androidx/compose/ui/tooling/preview/PreviewFontScale) | A MultiPreview annotation for desplaying a @Composable method using seven standard font sizes. |\n| [PreviewLightDark](/reference/kotlin/androidx/compose/ui/tooling/preview/PreviewLightDark) | A MultiPreview annotation for desplaying a @Composable method using light and dark themes. |\n| [PreviewParameter](/reference/kotlin/androidx/compose/ui/tooling/preview/PreviewParameter) | [PreviewParameter](/reference/kotlin/androidx/compose/ui/tooling/preview/PreviewParameter) can be applied to any parameter of a @[Preview](/reference/kotlin/androidx/compose/ui/tooling/preview/Preview). |\n| [PreviewScreenSizes](/reference/kotlin/androidx/compose/ui/tooling/preview/PreviewScreenSizes) | A MultiPreview annotation for displaying a @Composable method using the screen sizes of five different reference devices. |"]]