WebSourceParams.Builder

public static final class WebSourceParams.Builder
extends Object

java.lang.Object
   ↳ android.adservices.measurement.WebSourceParams.Builder


A builder for WebSourceParams.

Summary

Public constructors

Builder()

Builder for WebSourceParams.

Public methods

WebSourceParams build()

Built immutable WebSourceParams.

WebSourceParams.Builder setAllowDebugKey(boolean allowDebugKey)

Setter for debug allow/disallow flag.

WebSourceParams.Builder setRegistrationUri(Uri registrationUri)

Setter for registration Uri.

Inherited methods

Public constructors

Builder

public Builder ()

Builder for WebSourceParams.

Public methods

build

public WebSourceParams build ()

Built immutable WebSourceParams.

Returns
WebSourceParams immutable WebSourceParams This value cannot be null.

setAllowDebugKey

public WebSourceParams.Builder setAllowDebugKey (boolean allowDebugKey)

Setter for debug allow/disallow flag. Setting it to true will allow parsing debug keys from registration responses and their addition in the generated reports.

Parameters
allowDebugKey boolean: debug allow/disallow flag

Returns
WebSourceParams.Builder builder This value cannot be null.

setRegistrationUri

public WebSourceParams.Builder setRegistrationUri (Uri registrationUri)

Setter for registration Uri. It is a required parameter.

Parameters
registrationUri Uri: registration URI This value cannot be null.

Returns
WebSourceParams.Builder builder This value cannot be null.