Builder
class Builder
kotlin.Any | |
↳ | android.adservices.measurement.WebSourceRegistrationRequest.Builder |
Builder for WebSourceRegistrationRequest
.
Summary
Public constructors | |
---|---|
Builder(webSourceParams: MutableList<WebSourceParams!>, topOriginUri: Uri) Builder constructor for |
Public methods | |
---|---|
WebSourceRegistrationRequest |
build() Pre-validates parameters and builds |
WebSourceRegistrationRequest.Builder |
setAppDestination(appDestination: Uri?) Setter for app destination. |
WebSourceRegistrationRequest.Builder |
setInputEvent(inputEvent: InputEvent?) Setter for input event. |
WebSourceRegistrationRequest.Builder |
setVerifiedDestination(verifiedDestination: Uri?) Setter for verified destination. |
WebSourceRegistrationRequest.Builder |
setWebDestination(webDestination: Uri?) Setter for web destination. |
Public constructors
Builder
Builder(
webSourceParams: MutableList<WebSourceParams!>,
topOriginUri: Uri)
Builder constructor for WebSourceRegistrationRequest
.
Parameters | |
---|---|
webSourceParams |
MutableList<WebSourceParams!>: source parameters containing source registration parameters, the list should not be empty This value cannot be null . |
topOriginUri |
Uri: source publisher Uri This value cannot be null . |
Public methods
build
fun build(): WebSourceRegistrationRequest
Pre-validates parameters and builds WebSourceRegistrationRequest
.
Return | |
---|---|
WebSourceRegistrationRequest |
This value cannot be null . |
setAppDestination
fun setAppDestination(appDestination: Uri?): WebSourceRegistrationRequest.Builder
Setter for app destination. It is the android app Uri
where corresponding conversion is expected. At least one of app destination or web destination is required.
Parameters | |
---|---|
appDestination |
Uri?: app destination Uri This value may be null . |
Return | |
---|---|
WebSourceRegistrationRequest.Builder |
builder This value cannot be null . |
setInputEvent
fun setInputEvent(inputEvent: InputEvent?): WebSourceRegistrationRequest.Builder
Setter for input event.
Parameters | |
---|---|
inputEvent |
InputEvent?: User Interaction InputEvent used by the AttributionReporting API to distinguish clicks from views. This value may be null . |
Return | |
---|---|
WebSourceRegistrationRequest.Builder |
builder This value cannot be null . |
setVerifiedDestination
fun setVerifiedDestination(verifiedDestination: Uri?): WebSourceRegistrationRequest.Builder
Setter for verified destination.
Parameters | |
---|---|
verifiedDestination |
Uri?: verified destination This value may be null . |
Return | |
---|---|
WebSourceRegistrationRequest.Builder |
builder This value cannot be null . |
setWebDestination
fun setWebDestination(webDestination: Uri?): WebSourceRegistrationRequest.Builder
Setter for web destination. It is the website Uri
where corresponding conversion is expected. At least one of app destination or web destination is required.
Parameters | |
---|---|
webDestination |
Uri?: web destination Uri This value may be null . |
Return | |
---|---|
WebSourceRegistrationRequest.Builder |
builder This value cannot be null . |