> Documentation index: https://developer.android.com/reference/llms.txt

# WebChromeClientBridge

Artifact: [androidx.web:web-compose](https://developer.android.com/jetpack/androidx/releases/web.md.txt) [View Source](https://cs.android.com/search?q=file:androidx/web/compose/WebChromeClientBridge.kt+class:androidx.web.compose.WebChromeClientBridge) Added in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/web.md.txt#1.0.0-alpha02)


```
open class WebChromeClientBridge : WebChromeClient
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [android.webkit.WebChromeClient](https://developer.android.com/reference/android/webkit/WebChromeClient.md.txt) ||
|   | ↳ | [androidx.web.compose.WebChromeClientBridge](https://developer.android.com/reference/kotlin/androidx/web/compose/WebChromeClientBridge.md.txt) |

*** ** * ** ***

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.

| See also |
|---|---|
| `setWebChromeClient` |   |
| `WebSurface` |   |
| `WebContent` |   |

## Summary

| ### Public constructors |
|---|
| `WebChromeClientBridge()` |

| ### Public functions |
|---|---|
| `open View?` | `[getVideoLoadingProgressView](https://developer.android.com/reference/kotlin/androidx/web/compose/WebChromeClientBridge#getVideoLoadingProgressView())()` **This function is deprecated.** Fullscreen custom Views are not supported by WebSurface. |
| `open Unit` | `[onHideCustomView](https://developer.android.com/reference/kotlin/androidx/web/compose/WebChromeClientBridge#onHideCustomView())()` **This function is deprecated.** Fullscreen custom Views are not supported by WebSurface. |
| `open Unit` | `[onShowCustomView](https://developer.android.com/reference/kotlin/androidx/web/compose/WebChromeClientBridge#onShowCustomView(android.view.View,android.webkit.WebChromeClient.CustomViewCallback))( view: View?, callback: WebChromeClient.CustomViewCallback? )` **This function is deprecated.** Fullscreen custom Views are not supported by WebSurface. |
| `open Unit` | `[onShowCustomView](https://developer.android.com/reference/kotlin/androidx/web/compose/WebChromeClientBridge#onShowCustomView(android.view.View,kotlin.Int,android.webkit.WebChromeClient.CustomViewCallback))( view: View?, requestedOrientation: Int, callback: WebChromeClient.CustomViewCallback? )` **This function is deprecated.** Fullscreen custom Views are not supported by WebSurface. |

| ### Public properties |
|---|---|
| `open View?` | `videoLoadingProgressView` **This property is deprecated.** Fullscreen custom Views are not supported by WebSurface. |

### Inherited functions

From [android.webkit.WebChromeClient](https://developer.android.com/reference/android/webkit/WebChromeClient.md.txt) `Unit` `getVisitedHistory(callback: ValueCallback<Array<String>>)` `Unit` `onCloseWindow(window: WebView)` `Boolean` `onConsoleMessage(consoleMessage: ConsoleMessage)` `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` `onGeolocationPermissionsHidePrompt()` `Unit` `onGeolocationPermissionsShowPrompt(
origin: String,
callback: GeolocationPermissions.Callback
)` `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` `onJsTimeout()` `Unit` `onPermissionRequest(request: PermissionRequest)` `Unit` `onPermissionRequestCanceled(request: PermissionRequest)` `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` `onRequestFocus(view: WebView)` `Boolean` `onShowFileChooser(
webView: WebView,
filePathCallback: ValueCallback<Array<Uri>>,
fileChooserParams: WebChromeClient.FileChooserParams
)`

### Inherited properties

From [android.webkit.WebChromeClient](https://developer.android.com/reference/android/webkit/WebChromeClient.md.txt) `open Bitmap?` `defaultVideoPoster`

## Public constructors

### WebChromeClientBridge

Added in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/web.md.txt#1.0.0-alpha02)

```
WebChromeClientBridge()
```

## Public functions

### getVideoLoadingProgressView

Added in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/web.md.txt#1.0.0-alpha02) Deprecated in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/web.md.txt#1.0.0-alpha02)

```
open fun [getVideoLoadingProgressView](https://developer.android.com/reference/kotlin/androidx/web/compose/WebChromeClientBridge#getVideoLoadingProgressView())(): View?
```

> [!CAUTION]
> **This function is deprecated.**   
> Fullscreen custom Views are not supported by WebSurface.

### onHideCustomView

Added in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/web.md.txt#1.0.0-alpha02) Deprecated in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/web.md.txt#1.0.0-alpha02)

```
open fun [onHideCustomView](https://developer.android.com/reference/kotlin/androidx/web/compose/WebChromeClientBridge#onHideCustomView())(): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Fullscreen custom Views are not supported by WebSurface.

### onShowCustomView

Added in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/web.md.txt#1.0.0-alpha02) Deprecated in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/web.md.txt#1.0.0-alpha02)

```
open fun [onShowCustomView](https://developer.android.com/reference/kotlin/androidx/web/compose/WebChromeClientBridge#onShowCustomView(android.view.View,android.webkit.WebChromeClient.CustomViewCallback))(
    view: View?,
    callback: WebChromeClient.CustomViewCallback?
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Fullscreen custom Views are not supported by WebSurface.

### onShowCustomView

```
open fun [onShowCustomView](https://developer.android.com/reference/kotlin/androidx/web/compose/WebChromeClientBridge#onShowCustomView(android.view.View,kotlin.Int,android.webkit.WebChromeClient.CustomViewCallback))(
    view: View?,
    requestedOrientation: Int,
    callback: WebChromeClient.CustomViewCallback?
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Fullscreen custom Views are not supported by WebSurface.

## Public properties

### videoLoadingProgressView

Added in 1.0.0-alpha02 Deprecated in 1.0.0-alpha02

```
open val videoLoadingProgressView: View?
```

> [!CAUTION]
> **This property is deprecated.**   
> Fullscreen custom Views are not supported by WebSurface.