Stay organized with collections
Save and categorize content based on your preferences.
Builder
class Builder
A builder for RenderingConfig
Summary
Public constructors
Public methods
build
fun build(): RenderingConfig
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,["# RenderingConfig.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/RenderingConfig.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.RenderingConfig.Builder](#) |\n\nA builder for [RenderingConfig](/reference/kotlin/android/adservices/ondevicepersonalization/RenderingConfig)\n\nSummary\n-------\n\n| Public constructors ||\n|----------------------------------|---|\n| [Builder](#Builder())`()` \u003cbr /\u003e |\n\n| Public methods ||\n|-------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [RenderingConfig.Builder](#) | [addKey](#addKey(kotlin.String))`(`value:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` \u003cbr /\u003e |\n| [RenderingConfig](/reference/kotlin/android/adservices/ondevicepersonalization/RenderingConfig) | [build](#build())`()` Builds the instance. |\n| [RenderingConfig.Builder](#) | [setKeys](#setKeys(kotlin.collections.MutableList))`(`value:` `[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\u003c[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\u003e`)` A List of keys in the REMOTE_DATA [IsolatedService.getRemoteData(RequestToken)](/reference/kotlin/android/adservices/ondevicepersonalization/IsolatedService#getRemoteData(android.adservices.ondevicepersonalization.RequestToken)) table that identify the content to be rendered. |\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### addKey\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun addKey(value: String): RenderingConfig.Builder\n```\n\n| Parameters ||\n|---------|----------------------------------------------------------------------------------------------------------------|\n| `value` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html): This value cannot be `null`. |\n\n| Return ||\n|------------------------------|------------------------------|\n| [RenderingConfig.Builder](#) | This value cannot be `null`. |\n\n**See Also**\n\n- [#setKeys](#setKeys(kotlin.collections.MutableList)) \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(): RenderingConfig\n```\n\nBuilds the instance. This builder should not be touched after calling this!\n\n| Return ||\n|-------------------------------------------------------------------------------------------------|------------------------------|\n| [RenderingConfig](/reference/kotlin/android/adservices/ondevicepersonalization/RenderingConfig) | This value cannot be `null`. |\n\n### setKeys\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun setKeys(value: MutableList\u003cString!\u003e): RenderingConfig.Builder\n```\n\nA List of keys in the REMOTE_DATA [IsolatedService.getRemoteData(RequestToken)](/reference/kotlin/android/adservices/ondevicepersonalization/IsolatedService#getRemoteData(android.adservices.ondevicepersonalization.RequestToken)) table that identify the content to be rendered.\n\n| Parameters ||\n|---------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `value` | [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\\\u003c[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\\\u003e: This value cannot be `null`. |\n\n| Return ||\n|------------------------------|------------------------------|\n| [RenderingConfig.Builder](#) | This value cannot be `null`. |"]]