Builder
class Builder
kotlin.Any | |
↳ | android.adservices.ondevicepersonalization.WebTriggerOutput.Builder |
A builder for WebTriggerOutput
Summary
Public constructors | |
---|---|
Builder() |
Public methods | |
---|---|
WebTriggerOutput.Builder |
addEventLogRecord(value: EventLogRecord) |
WebTriggerOutput |
build() Builds the instance. |
WebTriggerOutput.Builder |
setEventLogRecords(value: MutableList<EventLogRecord!>) A list of |
WebTriggerOutput.Builder |
setRequestLogRecord(value: RequestLogRecord?) Persistent data to be written to the REQUESTS table after |
Public constructors
Public methods
addEventLogRecord
fun addEventLogRecord(value: EventLogRecord): WebTriggerOutput.Builder
Parameters | |
---|---|
value |
EventLogRecord: This value cannot be null . |
Return | |
---|---|
WebTriggerOutput.Builder |
This value cannot be null . |
See Also
build
fun build(): WebTriggerOutput
Builds the instance. This builder should not be touched after calling this!
Return | |
---|---|
WebTriggerOutput |
This value cannot be null . |
setEventLogRecords
fun setEventLogRecords(value: MutableList<EventLogRecord!>): WebTriggerOutput.Builder
A list of EventLogRecord
objects to be written to the EVENTS table. Each EventLogRecord
must be associated with an existing RequestLogRecord
in the REQUESTS table, specified using EventLogRecord.Builder.setRequestLogRecord(RequestLogRecord)
. If the RequestLogRecord
is not specified, the EventLogRecord
will not be written. The list can be empty if no data needs to be written to the EVENTS table.
Parameters | |
---|---|
value |
MutableList<EventLogRecord!>: This value cannot be null . |
Return | |
---|---|
WebTriggerOutput.Builder |
This value cannot be null . |
setRequestLogRecord
fun setRequestLogRecord(value: RequestLogRecord?): WebTriggerOutput.Builder
Persistent data to be written to the REQUESTS table after IsolatedWorker.onWebTrigger(WebTriggerInput, android.os.OutcomeReceiver)
completes. This can be null
if no data needs to be written to the REQUESTS table.
Parameters | |
---|---|
value |
RequestLogRecord?: This value may be null . |