# GetValueRequest.Builder

Added in[API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# Builder

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/service/settings/preferences/GetValueRequest.Builder "View this page in Java")  

```
class Builder
```

|---|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                                               ||
| ↳ | [android.service.settings.preferences.GetValueRequest.Builder](https://developer.android.com/reference/kotlin/android/service/settings/preferences/GetValueRequest.Builder#) |

Builder to construct[GetValueRequest](https://developer.android.com/reference/kotlin/android/service/settings/preferences/GetValueRequest).

## Summary

|                                                                                                                                                                                        Public constructors                                                                                                                                                                                         ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [Builder](https://developer.android.com/reference/kotlin/android/service/settings/preferences/GetValueRequest.Builder#Builder(kotlin.String,%20kotlin.String))`(`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)`)` Create Builder instance. |

|                                                                                                                                                                                                Public methods                                                                                                                                                                                                 ||
|------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [GetValueRequest](https://developer.android.com/reference/kotlin/android/service/settings/preferences/GetValueRequest) | [build](https://developer.android.com/reference/kotlin/android/service/settings/preferences/GetValueRequest.Builder#build())`()` Constructs an immutable[GetValueRequest](https://developer.android.com/reference/kotlin/android/service/settings/preferences/GetValueRequest)object. |

## Public constructors

### Builder

Added in[API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
Builder(
    screenKey: String, 
    preferenceKey: String)
```

Create Builder instance.

|                                                         Parameters                                                         ||
|-----------------|-----------------------------------------------------------------------------------------------------------|
| `screenKey`     | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html):required to be not empty |
| `preferenceKey` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html):required to be not empty |

## Public methods

### build

Added in[API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun build(): GetValueRequest
```

Constructs an immutable[GetValueRequest](https://developer.android.com/reference/kotlin/android/service/settings/preferences/GetValueRequest)object.