WebContent

sealed class WebContent

Represents different types of content that can be loaded in a WebView.

NOTE: This class is a modified version of the original Accompanist WebView content class. Modifications made include:

  • Addition of MessageOnly type to handle custom web content loading from a pop up.

Inheritors

Types

Link copied to clipboard
data class NavigatorOnly(val default: TWSSnippet? = null) : WebContent

Represents a state where the WebView is controlled only via a navigator, without loading content directly into it. All communication with WebView must be done through navigator.

Link copied to clipboard
data class Snippet(val target: TWSSnippet) : WebContent