WebChromeClientBridge

open class WebChromeClientBridge : WebChromeClient


Exposes WebChromeClient callbacks not yet available directly on WebContent when presenting via WebSurface.

Because presentation is managed by WebSurface in Compose, custom View fullscreen callbacks are not supported by WebSurface and are deprecated on this class.

Summary

Public constructors

Public functions

open View?

This function is deprecated. Fullscreen custom Views are not supported by WebSurface.

open Unit

This function is deprecated. Fullscreen custom Views are not supported by WebSurface.

open Unit
onShowCustomView(
    view: View?,
    callback: WebChromeClient.CustomViewCallback?
)

This function is deprecated. Fullscreen custom Views are not supported by WebSurface.

open Unit
onShowCustomView(
    view: View?,
    requestedOrientation: Int,
    callback: WebChromeClient.CustomViewCallback?
)

This function is deprecated. Fullscreen custom Views are not supported by WebSurface.

Public properties

open View?

This property is deprecated. Fullscreen custom Views are not supported by WebSurface.

Inherited functions

From android.webkit.WebChromeClient
Unit
Unit
Boolean
Unit
onConsoleMessage(message: String, lineNumber: Int, sourceID: String)
Boolean
onCreateWindow(
    view: WebView,
    isDialog: Boolean,
    isUserGesture: Boolean,
    resultMsg: Message
)
Unit
onExceededDatabaseQuota(
    url: String,
    databaseIdentifier: String,
    quota: Long,
    estimatedDatabaseSize: Long,
    totalQuota: Long,
    quotaUpdater: WebStorage.QuotaUpdater
)
Unit
Unit
Boolean
onJsAlert(view: WebView, url: String, message: String, result: JsResult)
Boolean
onJsBeforeUnload(
    view: WebView,
    url: String,
    message: String,
    result: JsResult
)
Boolean
onJsConfirm(view: WebView, url: String, message: String, result: JsResult)
Boolean
onJsPrompt(
    view: WebView,
    url: String,
    message: String,
    defaultValue: String,
    result: JsPromptResult
)
Boolean
Unit
Unit
Unit
onProgressChanged(view: WebView, newProgress: Int)
Unit
onReceivedIcon(view: WebView, icon: Bitmap)
Unit
onReceivedTitle(view: WebView, title: String)
Unit
onReceivedTouchIconUrl(view: WebView, url: String, precomposed: Boolean)
Unit
Boolean
onShowFileChooser(
    webView: WebView,
    filePathCallback: ValueCallback<Array<Uri>>,
    fileChooserParams: WebChromeClient.FileChooserParams
)

Inherited properties

From android.webkit.WebChromeClient

Public constructors

WebChromeClientBridge

Added in 1.0.0-alpha02
WebChromeClientBridge()

Public functions

getVideoLoadingProgressView

Added in 1.0.0-alpha02
Deprecated in 1.0.0-alpha02
open fun getVideoLoadingProgressView(): View?

onHideCustomView

Added in 1.0.0-alpha02
Deprecated in 1.0.0-alpha02
open fun onHideCustomView(): Unit

onShowCustomView

Added in 1.0.0-alpha02
Deprecated in 1.0.0-alpha02
open fun onShowCustomView(
    view: View?,
    callback: WebChromeClient.CustomViewCallback?
): Unit

onShowCustomView

open fun onShowCustomView(
    view: View?,
    requestedOrientation: Int,
    callback: WebChromeClient.CustomViewCallback?
): Unit

Public properties

videoLoadingProgressView

Added in 1.0.0-alpha02
Deprecated in 1.0.0-alpha02
open val videoLoadingProgressView: View?