WebSourceRegistrationRequest


public final class WebSourceRegistrationRequest


Class to hold input to measurement source registration calls from web context.

Summary

Nested types

Builder for WebSourceRegistrationRequest.

Public constructors

WebSourceRegistrationRequest(
    @NonNull List<@NonNull WebSourceParams> webSourceParams,
    @NonNull Uri topOriginUri,
    InputEvent inputEvent,
    Uri appDestination,
    Uri webDestination,
    Uri verifiedDestination
)

Public methods

boolean
equals(Object other)
final Uri

App destination of the source.

final InputEvent

User Interaction {@link InputEvent} used by the AttributionReporting API to distinguish clicks from views.

final @NonNull Uri

Top level origin of publisher.

final Uri

Verified destination by the caller.

final Uri

Web destination of the source.

final @NonNull List<@NonNull WebSourceParams>

Registration info to fetch sources.

int
@NonNull String

Public constructors

WebSourceRegistrationRequest

Added in 1.0.0
public WebSourceRegistrationRequest(
    @NonNull List<@NonNull WebSourceParams> webSourceParams,
    @NonNull Uri topOriginUri,
    InputEvent inputEvent,
    Uri appDestination,
    Uri webDestination,
    Uri verifiedDestination
)
Parameters
@NonNull List<@NonNull WebSourceParams> webSourceParams

Registration info to fetch sources.

@NonNull Uri topOriginUri

Top level origin of publisher.

InputEvent inputEvent

User Interaction {@link InputEvent} used by the AttributionReporting API to distinguish clicks from views.

Uri appDestination

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

Uri webDestination

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

Uri verifiedDestination

Verified destination by the caller. This is where the user actually landed.

Public methods

equals

public boolean equals(Object other)

getAppDestination

Added in 1.0.0
public final Uri getAppDestination()

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

getInputEvent

Added in 1.0.0
public final InputEvent getInputEvent()

User Interaction {@link InputEvent} used by the AttributionReporting API to distinguish clicks from views.

getTopOriginUri

Added in 1.0.0
public final @NonNull Uri getTopOriginUri()

Top level origin of publisher.

getVerifiedDestination

Added in 1.0.0
public final Uri getVerifiedDestination()

Verified destination by the caller. This is where the user actually landed.

getWebDestination

Added in 1.0.0
public final Uri getWebDestination()

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

getWebSourceParams

Added in 1.0.0
public final @NonNull List<@NonNull WebSourceParamsgetWebSourceParams()

Registration info to fetch sources.

hashCode

public int hashCode()

toString

public @NonNull String toString()