Stay organized with collections
Save and categorize content based on your preferences.
Builder
class Builder
A builder for EventOutput
Summary
Public constructors
Public methods
build
fun build(): EventOutput
Builds the instance. This builder should not be touched after calling this!
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# EventOutput.Builder\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nBuilder\n=======\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/adservices/ondevicepersonalization/EventOutput.Builder \"View this page in Java\") \n\n```\nclass Builder\n```\n\n|---|---------------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.adservices.ondevicepersonalization.EventOutput.Builder](#) |\n\nA builder for [EventOutput](/reference/kotlin/android/adservices/ondevicepersonalization/EventOutput)\n\nSummary\n-------\n\n| Public constructors ||\n|----------------------------------|---|\n| [Builder](#Builder())`()` \u003cbr /\u003e |\n\n| Public methods ||\n|-----------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [EventOutput](/reference/kotlin/android/adservices/ondevicepersonalization/EventOutput) | [build](#build())`()` Builds the instance. |\n| [EventOutput.Builder](#) | [setEventLogRecord](#setEventLogRecord(android.adservices.ondevicepersonalization.EventLogRecord))`(`value:` `[EventLogRecord](/reference/kotlin/android/adservices/ondevicepersonalization/EventLogRecord)?`)` An [EventLogRecord](/reference/kotlin/android/adservices/ondevicepersonalization/EventLogRecord) to be written to the EVENTS table, if not null. |\n\nPublic constructors\n-------------------\n\n### Builder\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nBuilder()\n```\n\nPublic methods\n--------------\n\n### build\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun build(): EventOutput\n```\n\nBuilds the instance. This builder should not be touched after calling this!\n\n| Return ||\n|-----------------------------------------------------------------------------------------|------------------------------|\n| [EventOutput](/reference/kotlin/android/adservices/ondevicepersonalization/EventOutput) | This value cannot be `null`. |\n\n### setEventLogRecord\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun setEventLogRecord(value: EventLogRecord?): EventOutput.Builder\n```\n\nAn [EventLogRecord](/reference/kotlin/android/adservices/ondevicepersonalization/EventLogRecord) to be written to the EVENTS table, if not null. Each [EventLogRecord](/reference/kotlin/android/adservices/ondevicepersonalization/EventLogRecord) is associated with a row in an existing [RequestLogRecord](/reference/kotlin/android/adservices/ondevicepersonalization/RequestLogRecord) that has been written to the REQUESTS table.\n\n| Parameters ||\n|---------|---------------------------------------------------------------------------------------------------------------------------|\n| `value` | [EventLogRecord](/reference/kotlin/android/adservices/ondevicepersonalization/EventLogRecord)?: This value may be `null`. |"]]