# PrefetchOptions

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

*** ** * ** ***


```
@ExperimentalPrefetch
public final class PrefetchOptions
```

<br />

*** ** * ** ***

Composes optional parameters used in `https://developer.android.com/reference/androidx/browser/customtabs/CustomTabsSession#prefetch(android.net.Uri,androidx.browser.customtabs.PrefetchOptions)`.

## Summary

| ### Nested types |
|---|
| `@https://developer.android.com/reference/androidx/browser/customtabs/ExperimentalPrefetch public final class https://developer.android.com/reference/androidx/browser/customtabs/PrefetchOptions.Builder` Builder class for `https://developer.android.com/reference/androidx/browser/customtabs/PrefetchOptions` |

| ### Public fields |
|---|---|
| `final boolean` | `https://developer.android.com/reference/androidx/browser/customtabs/PrefetchOptions#requiresAnonymousIpWhenCrossOrigin()` Set true to anonymize IP address of the prefetch request when it is cross-origin. |
| `final @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/net/Uri.html` | `https://developer.android.com/reference/androidx/browser/customtabs/PrefetchOptions#sourceOrigin()` The origin that prefetch is requested from. |

## Public fields

### requiresAnonymousIpWhenCrossOrigin

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

```
public final boolean requiresAnonymousIpWhenCrossOrigin
```

Set true to anonymize IP address of the prefetch request when it is cross-origin.

### sourceOrigin

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

```
public final @Nullable Uri sourceOrigin
```

The origin that prefetch is requested from.