# WebSettingsBoundaryInterface

# WebSettingsBoundaryInterface

<br />

```
interface WebSettingsBoundaryInterface
```

<br />

*** ** * ** ***

Boundary interface for WebSettingsCompat.

## Summary

|                                                                                   ### Nested types                                                                                   ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [WebSettingsBoundaryInterface.ForceDarkBehavior](https://developer.android.com/reference/kotlin/org/chromium/support_lib_boundary/WebSettingsBoundaryInterface.ForceDarkBehavior) |   |

|                                                                                                                                                                                                                                                                                                                                                      ### Public functions                                                                                                                                                                                                                                                                                                                                                       ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                                                                                                        | [getDisabledActionModeMenuItems](https://developer.android.com/reference/kotlin/org/chromium/support_lib_boundary/WebSettingsBoundaryInterface#getDisabledActionModeMenuItems())`()`                                                                                                                                                                                                                                                                         |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                                                                                                        | [getForceDark](https://developer.android.com/reference/kotlin/org/chromium/support_lib_boundary/WebSettingsBoundaryInterface#getForceDark())`()`                                                                                                                                                                                                                                                                                                             |
| `@`[WebSettingsBoundaryInterface.ForceDarkBehavior](https://developer.android.com/reference/kotlin/org/chromium/support_lib_boundary/WebSettingsBoundaryInterface.ForceDarkBehavior)` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getForceDarkBehavior](https://developer.android.com/reference/kotlin/org/chromium/support_lib_boundary/WebSettingsBoundaryInterface#getForceDarkBehavior())`()`                                                                                                                                                                                                                                                                                             |
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                                                                                                | [getOffscreenPreRaster](https://developer.android.com/reference/kotlin/org/chromium/support_lib_boundary/WebSettingsBoundaryInterface#getOffscreenPreRaster())`()`                                                                                                                                                                                                                                                                                           |
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                                                                                                | [getSafeBrowsingEnabled](https://developer.android.com/reference/kotlin/org/chromium/support_lib_boundary/WebSettingsBoundaryInterface#getSafeBrowsingEnabled())`()`                                                                                                                                                                                                                                                                                         |
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                                                                                                | [getWillSuppressErrorPage](https://developer.android.com/reference/kotlin/org/chromium/support_lib_boundary/WebSettingsBoundaryInterface#getWillSuppressErrorPage())`()`                                                                                                                                                                                                                                                                                     |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                                                                                      | [setDisabledActionModeMenuItems](https://developer.android.com/reference/kotlin/org/chromium/support_lib_boundary/WebSettingsBoundaryInterface#setDisabledActionModeMenuItems(int))`(menuItems: `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)`                                                                                                                                                                               |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                                                                                      | [setForceDark](https://developer.android.com/reference/kotlin/org/chromium/support_lib_boundary/WebSettingsBoundaryInterface#setForceDark(int))`(forceDarkMode: `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)`                                                                                                                                                                                                               |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                                                                                      | [setForceDarkBehavior](https://developer.android.com/reference/kotlin/org/chromium/support_lib_boundary/WebSettingsBoundaryInterface#setForceDarkBehavior(int))`(` ` @`[WebSettingsBoundaryInterface.ForceDarkBehavior](https://developer.android.com/reference/kotlin/org/chromium/support_lib_boundary/WebSettingsBoundaryInterface.ForceDarkBehavior)` forceDarkBehavior: `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) `)` |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                                                                                      | [setOffscreenPreRaster](https://developer.android.com/reference/kotlin/org/chromium/support_lib_boundary/WebSettingsBoundaryInterface#setOffscreenPreRaster(boolean))`(enabled: `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)`                                                                                                                                                                                       |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                                                                                      | [setSafeBrowsingEnabled](https://developer.android.com/reference/kotlin/org/chromium/support_lib_boundary/WebSettingsBoundaryInterface#setSafeBrowsingEnabled(boolean))`(enabled: `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)`                                                                                                                                                                                     |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                                                                                      | [setWillSuppressErrorPage](https://developer.android.com/reference/kotlin/org/chromium/support_lib_boundary/WebSettingsBoundaryInterface#setWillSuppressErrorPage(boolean))`(suppressed: `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)`                                                                                                                                                                              |

## Public functions

### getDisabledActionModeMenuItems

```
fun getDisabledActionModeMenuItems(): Int
```  

### getForceDark

```
fun getForceDark(): Int
```  

### getForceDarkBehavior

```
@WebSettingsBoundaryInterface.ForceDarkBehavior
fun getForceDarkBehavior(): Int
```  

### getOffscreenPreRaster

```
fun getOffscreenPreRaster(): Boolean
```  

### getSafeBrowsingEnabled

```
fun getSafeBrowsingEnabled(): Boolean
```  

### getWillSuppressErrorPage

```
fun getWillSuppressErrorPage(): Boolean
```  

### setDisabledActionModeMenuItems

```
fun setDisabledActionModeMenuItems(menuItems: Int): Unit
```  

### setForceDark

```
fun setForceDark(forceDarkMode: Int): Unit
```  

### setForceDarkBehavior

```
fun setForceDarkBehavior(
    @WebSettingsBoundaryInterface.ForceDarkBehavior forceDarkBehavior: Int
): Unit
```  

### setOffscreenPreRaster

```
fun setOffscreenPreRaster(enabled: Boolean): Unit
```  

### setSafeBrowsingEnabled

```
fun setSafeBrowsingEnabled(enabled: Boolean): Unit
```  

### setWillSuppressErrorPage

```
fun setWillSuppressErrorPage(suppressed: Boolean): Unit
```