# WebTriggerParams

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

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/measurement/WebTriggerParams "View this page in Java")

<br />

```
class WebTriggerParams
```

<br />

*** ** * ** ***

Class holding trigger registration parameters.

## Summary

|                                                                                                                                                                                  ### Public constructors                                                                                                                                                                                  |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [WebTriggerParams](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/measurement/WebTriggerParams#WebTriggerParams(android.net.Uri,kotlin.Boolean))`(registrationUri: `[Uri](https://developer.android.com/reference/android/net/Uri.html)`, debugKeyAllowed: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`)` |

|                                        ### Public functions                                         |
|-----------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `open operator `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [equals](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/measurement/WebTriggerParams#equals(kotlin.Any))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` |
| `open `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                  | [hashCode](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/measurement/WebTriggerParams#hashCode())`()`                                                                                            |
| `open `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)            | [toString](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/measurement/WebTriggerParams#toString())`()`                                                                                            |

|                                ### Public properties                                |
|-------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [debugKeyAllowed](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/measurement/WebTriggerParams#debugKeyAllowed()) Used by the browser to indicate whether the debug key obtained from the registration URI is allowed to be used. |
| [Uri](https://developer.android.com/reference/android/net/Uri.html)                 | [registrationUri](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/measurement/WebTriggerParams#registrationUri()) URI that the Attribution Reporting API sends a request to in order to obtain trigger registration parameters.   |

## Public constructors

### WebTriggerParams

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

```
WebTriggerParams(registrationUri: Uri, debugKeyAllowed: Boolean)
```  

|                                               Parameters                                               |
|--------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------|
| `registrationUri: `[Uri](https://developer.android.com/reference/android/net/Uri.html)                 | URI that the Attribution Reporting API sends a request to in order to obtain trigger registration parameters.   |
| `debugKeyAllowed: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | Used by the browser to indicate whether the debug key obtained from the registration URI is allowed to be used. |

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```  

### hashCode

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

### toString

```
open fun toString(): String
```  

## Public properties

### debugKeyAllowed

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

```
val debugKeyAllowed: Boolean
```

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

### registrationUri

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

```
val registrationUri: Uri
```

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