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/models/FormEditRecord.Builder "View this page in Java")

```
class Builder
```

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

Builder for `https://developer.android.com/reference/kotlin/android/graphics/pdf/models/FormEditRecord`

## Summary

| Public constructors ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/graphics/pdf/models/FormEditRecord.Builder#Builder(kotlin.Int,%20kotlin.Int,%20kotlin.Int)(type: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html, pageNumber: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html, widgetIndex: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` Creates a new instance. |

| Public methods ||
|---|---|
| [FormEditRecord](https://developer.android.com/reference/kotlin/android/graphics/pdf/models/FormEditRecord) | `https://developer.android.com/reference/kotlin/android/graphics/pdf/models/FormEditRecord.Builder#build()()` Builds this record |
| [FormEditRecord.Builder](https://developer.android.com/reference/kotlin/android/graphics/pdf/models/FormEditRecord.Builder#) | `https://developer.android.com/reference/kotlin/android/graphics/pdf/models/FormEditRecord.Builder#setClickPoint(android.graphics.Point)(clickPoint: https://developer.android.com/reference/kotlin/android/graphics/Point.html#?)` Sets the click point for this record |
| [FormEditRecord.Builder](https://developer.android.com/reference/kotlin/android/graphics/pdf/models/FormEditRecord.Builder#) | `https://developer.android.com/reference/kotlin/android/graphics/pdf/models/FormEditRecord.Builder#setSelectedIndices(kotlin.IntArray)(selectedIndices: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int-array/index.html?)` Sets the selected indices for this record |
| [FormEditRecord.Builder](https://developer.android.com/reference/kotlin/android/graphics/pdf/models/FormEditRecord.Builder#) | `https://developer.android.com/reference/kotlin/android/graphics/pdf/models/FormEditRecord.Builder#setText(kotlin.String)(text: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?)` Sets the text for this record |

## 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(
    type: Int, 
    pageNumber: Int, 
    widgetIndex: Int)
```

Creates a new instance.

| Parameters ||
|---|---|
| `type` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): the type of `https://developer.android.com/reference/kotlin/android/graphics/pdf/models/FormEditRecord` to create. Value is one of the following: - `https://developer.android.com/reference/kotlin/android/graphics/pdf/models/FormEditRecord#EDIT_TYPE_CLICK:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/graphics/pdf/models/FormEditRecord#EDIT_TYPE_SET_INDICES:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/graphics/pdf/models/FormEditRecord#EDIT_TYPE_SET_TEXT:kotlin.Int` |
| `pageNumber` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): the page number of which the record is. Value is 0 or greater |
| `widgetIndex` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): the index of the widget within the page's widget annotations array in the PDF. Value is 0 or greater |

| Exceptions ||
|---|---|
| `java.lang.IllegalArgumentException` | if a negative page number or widget index is provided |

## 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(): FormEditRecord
```

Builds this record

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/graphics/pdf/models/FormEditRecord` | This value cannot be `null`. |

| Exceptions ||
|---|---|
| `java.lang.NullPointerException` | if the click point is not provided for a click type record, if the selected indices are not provided for a set indices type record, or if the text is not provided for a set text type record |

### setClickPoint

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 setClickPoint(clickPoint: Point?): FormEditRecord.Builder
```

Sets the click point for this record

| Parameters ||
|---|---|
| `clickPoint` | [Point](https://developer.android.com/reference/kotlin/android/graphics/Point.html#)?: This value may be `null`. |

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/graphics/pdf/models/FormEditRecord.Builder#` | This value cannot be `null`. |

| Exceptions ||
|---|---|
| `java.lang.IllegalArgumentException` | if this is not a click type record |

### setSelectedIndices

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 setSelectedIndices(selectedIndices: IntArray?): FormEditRecord.Builder
```

Sets the selected indices for this record

| Parameters ||
|---|---|
| `selectedIndices` | [IntArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int-array/index.html)?: This value may be `null`. |

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/graphics/pdf/models/FormEditRecord.Builder#` | This value cannot be `null`. |

| Exceptions ||
|---|---|
| `java.lang.IllegalArgumentException` | if this is not a set indices type record |

### setText

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 setText(text: String?): FormEditRecord.Builder
```

Sets the text for this record

| Parameters ||
|---|---|
| `text` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?: This value may be `null`. |

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/graphics/pdf/models/FormEditRecord.Builder#` | This value cannot be `null`. |

| Exceptions ||
|---|---|
| `java.lang.IllegalArgumentException` | if this is not a set text type record |