Webview

interface Webview(source)

Displays html content, similarly to an iframe.

Online Documentation

Properties

Link copied to clipboard
abstract val cspSource: String

Content security policy source for webview resources.

Link copied to clipboard
abstract var html: String

HTML contents of the webview.

Link copied to clipboard

Fired when the webview content posts a message.

Link copied to clipboard
abstract var options: WebviewOptions

Content settings for the webview.

Functions

Link copied to clipboard
abstract fun asWebviewUri(localResource: Uri): Uri

Convert a uri for the local file system to one that can be used inside webviews.

Link copied to clipboard
abstract fun postMessage(message: JsAny?): PromiseLike<JsBoolean>

Post a message to the webview content.