# JavaScriptExecutionWorld

Artifact: [androidx.webkit:webkit](https://developer.android.com/jetpack/androidx/releases/webkit) [View Source](https://cs.android.com/search?q=file:androidx/webkit/JavaScriptExecutionWorld.java+class:androidx.webkit.JavaScriptExecutionWorld) Added in [1.16.0](https://developer.android.com/jetpack/androidx/releases/webkit#1.16.0)

*** ** * ** ***


```
class JavaScriptExecutionWorld
```

<br />

*** ** * ** ***

This is the encapsulation of a JavaScript execution world in which to inject JavaScript.

Worlds are tied to the WebView they are registered to. Using a world with a WebView that it is not registered to will throw an error. See `https://developer.android.com/reference/kotlin/androidx/webkit/WebViewCompat#getExecutionWorld(android.webkit.WebView,java.lang.String)` for creating an instance.

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/webkit/JavaScriptExecutionWorld#PAGE_WORLD_NAME() = ""` Name for the default page world. |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/webkit/JavaScriptExecutionWorld#equals(java.lang.Object)(o: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webkit/JavaScriptExecutionWorld#hashCode()()` |

## Constants

### PAGE_WORLD_NAME

Added in [1.16.0](https://developer.android.com/jetpack/androidx/releases/webkit#1.16.0)

```
const val PAGE_WORLD_NAME = "": String!
```

Name for the default page world.

## Public functions

### equals

```
fun equals(o: Any?): Boolean
```

### hashCode

```
fun hashCode(): Int
```