WebTriggerParams.Builder

public static final class WebTriggerParams.Builder
extends Object

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


A builder for WebTriggerParams.

Summary

Public constructors

Builder()

Builder for WebTriggerParams.

Public methods

WebTriggerParams build()

Built immutable WebTriggerParams.

WebTriggerParams.Builder setAllowDebugKey(boolean allowDebugKey)

Setter for debug allow/disallow flag.

WebTriggerParams.Builder setRegistrationUri(Uri registrationUri)

Setter for registration Uri.

Inherited methods

Public constructors

Builder

public Builder ()

Builder for WebTriggerParams.

Public methods

build

public WebTriggerParams build ()

Built immutable WebTriggerParams.

Returns
WebTriggerParams immutable WebTriggerParams This value cannot be null.

setAllowDebugKey

public WebTriggerParams.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
WebTriggerParams.Builder builder This value cannot be null.

setRegistrationUri

public WebTriggerParams.Builder setRegistrationUri (Uri registrationUri)

Setter for registration Uri. It is a required parameter.

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

Returns
WebTriggerParams.Builder builder This value cannot be null.