PreviewThemeProvider

Resolves the application theme for a static preview variant.

Implementations should be stateless Kotlin objects or public classes with a no-argument constructor. Mark exactly one implementation in a previewed module with @ViewComposePreviewThemeProvider from preview-core.

Functions

Link copied to clipboard
abstract fun resolve(context: Context, theme: PreviewTheme): PreviewThemeResolution

Resolves the themed Android context and ViewCompose tokens for theme.