WebSourceRegistrationRequest.Builder


public final class WebSourceRegistrationRequest.Builder


Builder for WebSourceRegistrationRequest.

Summary

Public constructors

Builder(
    @NonNull List<@NonNull WebSourceParams> webSourceParams,
    @NonNull Uri topOriginUri
)

Public methods

final @NonNull WebSourceRegistrationRequest

Pre-validates parameters and builds WebSourceRegistrationRequest.

final @NonNull WebSourceRegistrationRequest.Builder
setAppDestination(Uri appDestination)

Setter for app destination.

final @NonNull WebSourceRegistrationRequest.Builder

Setter for input event.

final @NonNull WebSourceRegistrationRequest.Builder
setVerifiedDestination(Uri verifiedDestination)

Setter for verified destination.

final @NonNull WebSourceRegistrationRequest.Builder
setWebDestination(Uri webDestination)

Setter for web destination.

Public constructors

Builder

Added in 1.0.0
public Builder(
    @NonNull List<@NonNull WebSourceParams> webSourceParams,
    @NonNull Uri topOriginUri
)
Parameters
@NonNull List<@NonNull WebSourceParams> webSourceParams

source parameters containing source registration parameters, the list should not be empty

@NonNull Uri topOriginUri

source publisher Uri

Public methods

build

Added in 1.0.0
public final @NonNull WebSourceRegistrationRequest build()

Pre-validates parameters and builds WebSourceRegistrationRequest.

setAppDestination

Added in 1.0.0
public final @NonNull WebSourceRegistrationRequest.Builder setAppDestination(Uri appDestination)

Setter for app destination. It is the android app {@link Uri} where corresponding conversion is expected. At least one of app destination or web destination is required.

Parameters
Uri appDestination

app destination Uri

setInputEvent

Added in 1.0.0
public final @NonNull WebSourceRegistrationRequest.Builder setInputEvent(@NonNull InputEvent inputEvent)

Setter for input event.

Parameters
@NonNull InputEvent inputEvent

User Interaction InputEvent used by the AttributionReporting API to distinguish clicks from views.

setVerifiedDestination

Added in 1.0.0
public final @NonNull WebSourceRegistrationRequest.Builder setVerifiedDestination(Uri verifiedDestination)

Setter for verified destination.

Parameters
Uri verifiedDestination

verified destination

setWebDestination

Added in 1.0.0
public final @NonNull WebSourceRegistrationRequest.Builder setWebDestination(Uri webDestination)

Setter for web destination. It is the website {@link Uri} where corresponding conversion is expected. At least one of app destination or web destination is required.

Parameters
Uri webDestination

web destination Uri