# ServiceWorkerWebSettingsBoundaryInterface

# ServiceWorkerWebSettingsBoundaryInterface

<br />

```
interface ServiceWorkerWebSettingsBoundaryInterface
```

<br />

*** ** * ** ***

Boundary interface for ServiceWorkerWebSettings.

## Summary

|                                                                                                                                                                         ### Public functions                                                                                                                                                                          ||
|------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [getAllowContentAccess](https://developer.android.com/reference/kotlin/org/chromium/support_lib_boundary/ServiceWorkerWebSettingsBoundaryInterface#getAllowContentAccess())`()`                                                                                                   |
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [getAllowFileAccess](https://developer.android.com/reference/kotlin/org/chromium/support_lib_boundary/ServiceWorkerWebSettingsBoundaryInterface#getAllowFileAccess())`()`                                                                                                         |
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [getBlockNetworkLoads](https://developer.android.com/reference/kotlin/org/chromium/support_lib_boundary/ServiceWorkerWebSettingsBoundaryInterface#getBlockNetworkLoads())`()`                                                                                                     |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)         | [getCacheMode](https://developer.android.com/reference/kotlin/org/chromium/support_lib_boundary/ServiceWorkerWebSettingsBoundaryInterface#getCacheMode())`()`                                                                                                                     |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)       | [setAllowContentAccess](https://developer.android.com/reference/kotlin/org/chromium/support_lib_boundary/ServiceWorkerWebSettingsBoundaryInterface#setAllowContentAccess(boolean))`(allow: `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)       | [setAllowFileAccess](https://developer.android.com/reference/kotlin/org/chromium/support_lib_boundary/ServiceWorkerWebSettingsBoundaryInterface#setAllowFileAccess(boolean))`(allow: `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)`       |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)       | [setBlockNetworkLoads](https://developer.android.com/reference/kotlin/org/chromium/support_lib_boundary/ServiceWorkerWebSettingsBoundaryInterface#setBlockNetworkLoads(boolean))`(flag: `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)`    |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)       | [setCacheMode](https://developer.android.com/reference/kotlin/org/chromium/support_lib_boundary/ServiceWorkerWebSettingsBoundaryInterface#setCacheMode(int))`(mode: `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)`                                |

## Public functions

### getAllowContentAccess

```
fun getAllowContentAccess(): Boolean
```  

### getAllowFileAccess

```
fun getAllowFileAccess(): Boolean
```  

### getBlockNetworkLoads

```
fun getBlockNetworkLoads(): Boolean
```  

### getCacheMode

```
fun getCacheMode(): Int
```  

### setAllowContentAccess

```
fun setAllowContentAccess(allow: Boolean): Unit
```  

### setAllowFileAccess

```
fun setAllowFileAccess(allow: Boolean): Unit
```  

### setBlockNetworkLoads

```
fun setBlockNetworkLoads(flag: Boolean): Unit
```  

### setCacheMode

```
fun setCacheMode(mode: Int): Unit
```