# WebSettingsBoundaryInterface

# WebSettingsBoundaryInterface

<br />

```
interface WebSettingsBoundaryInterface
```

<br />

*** ** * ** ***

Boundary interface for WebSettingsCompat.

## Summary

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

|                                                                                                                                                                                                                                                                          ### Public methods                                                                                                                                                                                                                                                                          ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `abstract int`                                                                                                                                                                               | [getDisabledActionModeMenuItems](https://developer.android.com/reference/org/chromium/support_lib_boundary/WebSettingsBoundaryInterface#getDisabledActionModeMenuItems())`()`                                                                                                                                                                                          |
| `abstract int`                                                                                                                                                                               | [getForceDark](https://developer.android.com/reference/org/chromium/support_lib_boundary/WebSettingsBoundaryInterface#getForceDark())`()`                                                                                                                                                                                                                              |
| `abstract @`[WebSettingsBoundaryInterface.ForceDarkBehavior](https://developer.android.com/reference/org/chromium/support_lib_boundary/WebSettingsBoundaryInterface.ForceDarkBehavior)` int` | [getForceDarkBehavior](https://developer.android.com/reference/org/chromium/support_lib_boundary/WebSettingsBoundaryInterface#getForceDarkBehavior())`()`                                                                                                                                                                                                              |
| `abstract boolean`                                                                                                                                                                           | [getOffscreenPreRaster](https://developer.android.com/reference/org/chromium/support_lib_boundary/WebSettingsBoundaryInterface#getOffscreenPreRaster())`()`                                                                                                                                                                                                            |
| `abstract boolean`                                                                                                                                                                           | [getSafeBrowsingEnabled](https://developer.android.com/reference/org/chromium/support_lib_boundary/WebSettingsBoundaryInterface#getSafeBrowsingEnabled())`()`                                                                                                                                                                                                          |
| `abstract boolean`                                                                                                                                                                           | [getWillSuppressErrorPage](https://developer.android.com/reference/org/chromium/support_lib_boundary/WebSettingsBoundaryInterface#getWillSuppressErrorPage())`()`                                                                                                                                                                                                      |
| `abstract void`                                                                                                                                                                              | [setDisabledActionModeMenuItems](https://developer.android.com/reference/org/chromium/support_lib_boundary/WebSettingsBoundaryInterface#setDisabledActionModeMenuItems(int))`(int menuItems)`                                                                                                                                                                          |
| `abstract void`                                                                                                                                                                              | [setForceDark](https://developer.android.com/reference/org/chromium/support_lib_boundary/WebSettingsBoundaryInterface#setForceDark(int))`(int forceDarkMode)`                                                                                                                                                                                                          |
| `abstract void`                                                                                                                                                                              | [setForceDarkBehavior](https://developer.android.com/reference/org/chromium/support_lib_boundary/WebSettingsBoundaryInterface#setForceDarkBehavior(int))`(` ` @`[WebSettingsBoundaryInterface.ForceDarkBehavior](https://developer.android.com/reference/org/chromium/support_lib_boundary/WebSettingsBoundaryInterface.ForceDarkBehavior)` int forceDarkBehavior` `)` |
| `abstract void`                                                                                                                                                                              | [setOffscreenPreRaster](https://developer.android.com/reference/org/chromium/support_lib_boundary/WebSettingsBoundaryInterface#setOffscreenPreRaster(boolean))`(boolean enabled)`                                                                                                                                                                                      |
| `abstract void`                                                                                                                                                                              | [setSafeBrowsingEnabled](https://developer.android.com/reference/org/chromium/support_lib_boundary/WebSettingsBoundaryInterface#setSafeBrowsingEnabled(boolean))`(boolean enabled)`                                                                                                                                                                                    |
| `abstract void`                                                                                                                                                                              | [setWillSuppressErrorPage](https://developer.android.com/reference/org/chromium/support_lib_boundary/WebSettingsBoundaryInterface#setWillSuppressErrorPage(boolean))`(boolean suppressed)`                                                                                                                                                                             |

## Public methods

### getDisabledActionModeMenuItems

```
abstract int getDisabledActionModeMenuItems()
```  

### getForceDark

```
abstract int getForceDark()
```  

### getForceDarkBehavior

```
@WebSettingsBoundaryInterface.ForceDarkBehavior
abstract int getForceDarkBehavior()
```  

### getOffscreenPreRaster

```
abstract boolean getOffscreenPreRaster()
```  

### getSafeBrowsingEnabled

```
abstract boolean getSafeBrowsingEnabled()
```  

### getWillSuppressErrorPage

```
abstract boolean getWillSuppressErrorPage()
```  

### setDisabledActionModeMenuItems

```
abstract void setDisabledActionModeMenuItems(int menuItems)
```  

### setForceDark

```
abstract void setForceDark(int forceDarkMode)
```  

### setForceDarkBehavior

```
abstract void setForceDarkBehavior(
    @WebSettingsBoundaryInterface.ForceDarkBehavior int forceDarkBehavior
)
```  

### setOffscreenPreRaster

```
abstract void setOffscreenPreRaster(boolean enabled)
```  

### setSafeBrowsingEnabled

```
abstract void setSafeBrowsingEnabled(boolean enabled)
```  

### setWillSuppressErrorPage

```
abstract void setWillSuppressErrorPage(boolean suppressed)
```