Stay organized with collections
Save and categorize content based on your preferences.
sealed interface PreviewSizeMode : SizeMode
This marker interface determines which SizeMode
s can be used for preview compositions.
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-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[],[],null,["# PreviewSizeMode\n===============\n\nArtifact: [androidx.glance:glance-appwidget](/jetpack/androidx/releases/glance) \n[View Source](https://cs.android.com/search?q=file:androidx/glance/appwidget/SizeMode.kt+class:androidx.glance.appwidget.PreviewSizeMode) \nAdded in [1.2.0-alpha01](/jetpack/androidx/releases/glance#1.2.0-alpha01)\n\n\n```\ninterface PreviewSizeMode : SizeMode\n```\n\n\u003cbr /\u003e\n\nKnown direct subclasses \n[SizeMode.Responsive](/reference/kotlin/androidx/glance/appwidget/SizeMode.Responsive), [SizeMode.Single](/reference/kotlin/androidx/glance/appwidget/SizeMode.Single) \n\n|----------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------|\n| [SizeMode.Responsive](/reference/kotlin/androidx/glance/appwidget/SizeMode.Responsive) | The [GlanceAppWidget](/reference/kotlin/androidx/glance/appwidget/GlanceAppWidget) provides a UI for a fixed set of sizes. |\n| [SizeMode.Single](/reference/kotlin/androidx/glance/appwidget/SizeMode.Single) | The [GlanceAppWidget](/reference/kotlin/androidx/glance/appwidget/GlanceAppWidget) provides a single UI. |\n\n*** ** * ** ***\n\nThis marker interface determines which [SizeMode](/reference/kotlin/androidx/glance/appwidget/SizeMode)s can be used for preview compositions."]]