Stay organized with collections
Save and categorize content based on your preferences.
Builder
class Builder
Builder to construct SetValueRequest
.
Summary
Public constructors |
Create Builder instance.
|
Public constructors
Public methods
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-03-13 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-03-13 UTC."],[],[],null,["# SetValueRequest.Builder\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nBuilder\n=======\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/service/settings/preferences/SetValueRequest.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.service.settings.preferences.SetValueRequest.Builder](#) |\n\nBuilder to construct [SetValueRequest](/reference/kotlin/android/service/settings/preferences/SetValueRequest).\n\nSummary\n-------\n\n| Public constructors ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [Builder](#Builder(kotlin.String,%20kotlin.String,%20android.service.settings.preferences.SettingsPreferenceValue))`(`screenKey:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, `preferenceKey:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, `value:` `[SettingsPreferenceValue](/reference/kotlin/android/service/settings/preferences/SettingsPreferenceValue)`)` Create Builder instance. |\n\n| Public methods ||\n|-------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------|\n| [SetValueRequest](/reference/kotlin/android/service/settings/preferences/SetValueRequest) | [build](#build())`()` Constructs an immutable [SetValueRequest](/reference/kotlin/android/service/settings/preferences/SetValueRequest) object. |\n\nPublic constructors\n-------------------\n\n### Builder\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nBuilder(\n screenKey: String, \n preferenceKey: String, \n value: SettingsPreferenceValue)\n```\n\nCreate Builder instance.\n\n| Parameters ||\n|-----------------|-------------------------------------------------------------------------------------------------------------------------------------------------|\n| `screenKey` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html): required to be not empty |\n| `preferenceKey` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html): required to be not empty |\n| `value` | [SettingsPreferenceValue](/reference/kotlin/android/service/settings/preferences/SettingsPreferenceValue): value to set to requested Preference |\n\nPublic methods\n--------------\n\n### build\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun build(): SetValueRequest\n```\n\nConstructs an immutable [SetValueRequest](/reference/kotlin/android/service/settings/preferences/SetValueRequest) object."]]