# WebSourceParams

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

*** ** * ** ***

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

<br />

```
class WebSourceParams
```

<br />

*** ** * ** ***

Class holding source registration parameters.

## Summary

|                                                                                                                                                                                ### Public constructors                                                                                                                                                                                 |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [WebSourceParams](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/measurement/WebSourceParams#WebSourceParams(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/WebSourceParams#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/WebSourceParams#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/WebSourceParams#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/WebSourceParams#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/WebSourceParams#registrationUri()) URI that the Attribution Reporting API sends a request to in order to obtain source registration parameters.    |

## Public constructors

### WebSourceParams

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

```
WebSourceParams(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 source 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 source registration parameters.