# WebTriggerParams

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/WebTriggerParams.kt+class:androidx.privacysandbox.ads.adservices.measurement.WebTriggerParams) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/privacysandbox-ads#1.0.0)

*** ** * ** ***


```
public final class WebTriggerParams
```

<br />

*** ** * ** ***

Class holding trigger registration parameters.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/measurement/WebTriggerParams#WebTriggerParams(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/WebTriggerParams#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/WebTriggerParams#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/WebTriggerParams#getRegistrationUri()()` URI that the Attribution Reporting API sends a request to in order to obtain trigger registration parameters. |
| `int` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/measurement/WebTriggerParams#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/WebTriggerParams#toString()()` |

## Public constructors

### WebTriggerParams

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

```
public WebTriggerParams(@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 trigger 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 trigger registration parameters.

### hashCode

```
public int hashCode()
```

### toString

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