Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Also in [S Extensions 13](https://developer.android.com/sdkExtensions)

# Builder

*** ** * ** ***

Kotlin \|[Java](https://developer.android.com/reference/android/graphics/pdf/LoadParams.Builder "View this page in Java")

```
class Builder
```

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

Builder for constructing `https://developer.android.com/reference/kotlin/android/graphics/pdf/LoadParams`.

## Summary

| Public constructors ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/graphics/pdf/LoadParams.Builder#Builder()()` Constructor for builder to create `https://developer.android.com/reference/kotlin/android/graphics/pdf/LoadParams`. |

| Public methods ||
|---|---|
| [LoadParams](https://developer.android.com/reference/kotlin/android/graphics/pdf/LoadParams) | `https://developer.android.com/reference/kotlin/android/graphics/pdf/LoadParams.Builder#build()()` Builds the `https://developer.android.com/reference/kotlin/android/graphics/pdf/LoadParams` after the optional values has been set. |
| [LoadParams.Builder](https://developer.android.com/reference/kotlin/android/graphics/pdf/LoadParams.Builder#) | `https://developer.android.com/reference/kotlin/android/graphics/pdf/LoadParams.Builder#setPassword(kotlin.String)(password: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?)` Sets the optional password for a protected PDF document. |

## Public constructors

### Builder

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Also in [S Extensions 13](https://developer.android.com/sdkExtensions)

```
Builder()
```

Constructor for builder to create `https://developer.android.com/reference/kotlin/android/graphics/pdf/LoadParams`.

## Public methods

### build

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Also in [S Extensions 13](https://developer.android.com/sdkExtensions)

```
fun build(): LoadParams
```

Builds the `https://developer.android.com/reference/kotlin/android/graphics/pdf/LoadParams` after the optional values has been set.

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/graphics/pdf/LoadParams` | new instance of `https://developer.android.com/reference/kotlin/android/graphics/pdf/LoadParams` This value cannot be `null`. |

### setPassword

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Also in [S Extensions 13](https://developer.android.com/sdkExtensions)

```
fun setPassword(password: String?): LoadParams.Builder
```

Sets the optional password for a protected PDF document. A `null` value will be treated as no password supplied or document is unprotected.

| Parameters ||
|---|---|
| `password` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?: Password for the protected PDF document. This value may be `null`. |