# WebSourceParams

Artifact: [androidx.privacysandbox.ads:ads-adservices](https://developer.android.com/jetpack/androidx/releases/privacysandbox-ads) [View Source](https://cs.android.com/search?q=file:androidx/privacysandbox/ads/adservices/measurement/WebSourceParams.kt+class:androidx.privacysandbox.ads.adservices.measurement.WebSourceParams) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/privacysandbox-ads#1.0.0)

*** ** * ** ***


```
public final class WebSourceParams
```

<br />

*** ** * ** ***

Class holding source registration parameters.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/measurement/WebSourceParams#WebSourceParams(android.net.Uri,kotlin.Boolean)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/net/Uri.html registrationUri, boolean debugKeyAllowed)` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/measurement/WebSourceParams#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final boolean` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/measurement/WebSourceParams#getDebugKeyAllowed()()` Used by the browser to indicate whether the debug key obtained from the registration URI is allowed to be used. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/net/Uri.html` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/measurement/WebSourceParams#getRegistrationUri()()` URI that the Attribution Reporting API sends a request to in order to obtain source registration parameters. |
| `int` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/measurement/WebSourceParams#hashCode()()` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/measurement/WebSourceParams#toString()()` |

## Public constructors

### WebSourceParams

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/privacysandbox-ads#1.0.0)

```
public WebSourceParams(@NonNull Uri registrationUri, boolean debugKeyAllowed)
```

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/net/Uri.html registrationUri` | URI that the Attribution Reporting API sends a request to in order to obtain source registration parameters. |
| `boolean debugKeyAllowed` | Used by the browser to indicate whether the debug key obtained from the registration URI is allowed to be used. |

## Public methods

### equals

```
public boolean equals(Object other)
```

### getDebugKeyAllowed

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/privacysandbox-ads#1.0.0)

```
public final boolean getDebugKeyAllowed()
```

Used by the browser to indicate whether the debug key obtained from the registration URI is allowed to be used.

### getRegistrationUri

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/privacysandbox-ads#1.0.0)

```
public final @NonNull Uri getRegistrationUri()
```

URI that the Attribution Reporting API sends a request to in order to obtain source registration parameters.

### hashCode

```
public int hashCode()
```

### toString

```
public @NonNull String toString()
```