WebViewContentRenderer

abstract class WebViewContentRenderer

An instance of this class defines a WebView-based renderer for a specific content type.

Some types of content are natural to render in browser environment by transforming them to HTML. This class simplifies implementing such a renderer in Compose environment.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun Render(modifier: Modifier = Modifier, content: String = "", asset: String = "", verticalScrolling: Boolean = false, color: Color = MaterialTheme.colorScheme.onSurface, primaryColor: Color = MaterialTheme.colorScheme.primary, linkColor: Color = MaterialTheme.colorScheme.secondary, backgroundColor: Color = MaterialTheme.colorScheme.surface, assets: Map<String, ByteString>? = null)

Render the content given by content or given as an asset name asset (one or the other must be given).