# WebViewClientBoundaryInterface

# WebViewClientBoundaryInterface

<br />

```
interface WebViewClientBoundaryInterface : FeatureFlagHolderBoundaryInterface
```

<br />

Known direct subclasses  
[WebViewClientCompat](https://developer.android.com/reference/kotlin/androidx/webkit/WebViewClientCompat)  

|-----------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------|
| [WebViewClientCompat](https://developer.android.com/reference/kotlin/androidx/webkit/WebViewClientCompat) | Compatibility version of[android.webkit.WebViewClient](https://developer.android.com/reference/android/webkit/WebViewClient.html). |

*** ** * ** ***

Boundary interface for WebViewClientCompat.

## Summary

|                                                                                                                                                                                                                                                                                                                                                                                  ### Public functions                                                                                                                                                                                                                                                                                                                                                                                   ||
|------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)       | [onPageCommitVisible](https://developer.android.com/reference/kotlin/org/chromium/support_lib_boundary/WebViewClientBoundaryInterface#onPageCommitVisible(android.webkit.WebView,java.lang.String))`(view: `[WebView](https://developer.android.com/reference/android/webkit/WebView.html)`?, url: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?)`                                                                                                                                                                                                                                                                                                            |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)       | [onReceivedError](https://developer.android.com/reference/kotlin/org/chromium/support_lib_boundary/WebViewClientBoundaryInterface#onReceivedError(android.webkit.WebView,android.webkit.WebResourceRequest,java.lang.reflect.InvocationHandler))`(` ` view: `[WebView](https://developer.android.com/reference/android/webkit/WebView.html)`?,` ` request: `[WebResourceRequest](https://developer.android.com/reference/android/webkit/WebResourceRequest.html)`?,` ` error: `[InvocationHandler](https://developer.android.com/reference/java/lang/reflect/InvocationHandler.html)`?` `)`                                                                                                         |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)       | [onReceivedHttpError](https://developer.android.com/reference/kotlin/org/chromium/support_lib_boundary/WebViewClientBoundaryInterface#onReceivedHttpError(android.webkit.WebView,android.webkit.WebResourceRequest,android.webkit.WebResourceResponse))`(` ` view: `[WebView](https://developer.android.com/reference/android/webkit/WebView.html)`?,` ` request: `[WebResourceRequest](https://developer.android.com/reference/android/webkit/WebResourceRequest.html)`?,` ` errorResponse: `[WebResourceResponse](https://developer.android.com/reference/android/webkit/WebResourceResponse.html)`?` `)`                                                                                         |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)       | [onSafeBrowsingHit](https://developer.android.com/reference/kotlin/org/chromium/support_lib_boundary/WebViewClientBoundaryInterface#onSafeBrowsingHit(android.webkit.WebView,android.webkit.WebResourceRequest,int,java.lang.reflect.InvocationHandler))`(` ` view: `[WebView](https://developer.android.com/reference/android/webkit/WebView.html)`?,` ` request: `[WebResourceRequest](https://developer.android.com/reference/android/webkit/WebResourceRequest.html)`?,` ` threatType: `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`,` ` callback: `[InvocationHandler](https://developer.android.com/reference/java/lang/reflect/InvocationHandler.html)`?` `)` |
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [shouldOverrideUrlLoading](https://developer.android.com/reference/kotlin/org/chromium/support_lib_boundary/WebViewClientBoundaryInterface#shouldOverrideUrlLoading(android.webkit.WebView,android.webkit.WebResourceRequest))`(view: `[WebView](https://developer.android.com/reference/android/webkit/WebView.html)`?, request: `[WebResourceRequest](https://developer.android.com/reference/android/webkit/WebResourceRequest.html)`?)`                                                                                                                                                                                                                                                         |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ### Inherited functions                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| From class[FeatureFlagHolderBoundaryInterface](https://developer.android.com/reference/kotlin/org/chromium/support_lib_boundary/FeatureFlagHolderBoundaryInterface) |------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?>?` | [getSupportedFeatures](https://developer.android.com/reference/kotlin/org/chromium/support_lib_boundary/FeatureFlagHolderBoundaryInterface#getSupportedFeatures())`()` Indicate the list of[org.chromium.support_lib_boundary.util.Features](https://developer.android.com/reference/kotlin/org/chromium/support_lib_boundary/util/Features)supported by this object. | |

## Public functions

### onPageCommitVisible

```
fun onPageCommitVisible(view: WebView?, url: String?): Unit
```  

### onReceivedError

```
fun onReceivedError(
    view: WebView?,
    request: WebResourceRequest?,
    error: InvocationHandler?
): Unit
```  

### onReceivedHttpError

```
fun onReceivedHttpError(
    view: WebView?,
    request: WebResourceRequest?,
    errorResponse: WebResourceResponse?
): Unit
```  

### onSafeBrowsingHit

```
fun onSafeBrowsingHit(
    view: WebView?,
    request: WebResourceRequest?,
    threatType: Int,
    callback: InvocationHandler?
): Unit
```  

### shouldOverrideUrlLoading

```
fun shouldOverrideUrlLoading(view: WebView?, request: WebResourceRequest?): Boolean
```