# 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)

*** ** * ** ***


```
public 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/androidx/webkit/WebViewCompat#getExecutionWorld(android.webkit.WebView,java.lang.String)` for creating an instance.

## Summary

| ### Constants |
|---|---|
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/webkit/JavaScriptExecutionWorld#PAGE_WORLD_NAME() = ""` Name for the default page world. |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/webkit/JavaScriptExecutionWorld#equals(java.lang.Object)(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/Object.html o)` |
| `int` | `https://developer.android.com/reference/androidx/webkit/JavaScriptExecutionWorld#hashCode()()` |

## Constants

### PAGE_WORLD_NAME

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

```
public static final String PAGE_WORLD_NAME = ""
```

Name for the default page world.

## Public methods

### equals

```
public boolean equals(@Nullable Object o)
```

### hashCode

```
public int hashCode()
```