# FormEditRecord.Builder

Added in[API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in[S Extensions 13](https://developer.android.com/sdkExtensions)  
Summary:[Ctors](https://developer.android.com/reference/android/graphics/pdf/models/FormEditRecord.Builder#pubctors)\|[Methods](https://developer.android.com/reference/android/graphics/pdf/models/FormEditRecord.Builder#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/graphics/pdf/models/FormEditRecord.Builder#inhmethods)  

# FormEditRecord.Builder

*** ** * ** ***

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

`
public
static
final

class
FormEditRecord.Builder
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


``


`

|---|----------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.graphics.pdf.models.FormEditRecord.Builder |

<br />

*** ** * ** ***

Builder for[FormEditRecord](https://developer.android.com/reference/android/graphics/pdf/models/FormEditRecord)

## Summary

|                                                                                           ### Public constructors                                                                                            ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[Builder](https://developer.android.com/reference/android/graphics/pdf/models/FormEditRecord.Builder#Builder(int,%20int,%20int))`(int type, int pageNumber, int widgetIndex) ` Creates a new instance. |

|                                                                                                                                                                                             ### Public methods                                                                                                                                                                                              ||
|-------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` `[FormEditRecord](https://developer.android.com/reference/android/graphics/pdf/models/FormEditRecord)                 | ` `[build](https://developer.android.com/reference/android/graphics/pdf/models/FormEditRecord.Builder#build())`() ` Builds this record                                                                                                                                             |
| ` `[FormEditRecord.Builder](https://developer.android.com/reference/android/graphics/pdf/models/FormEditRecord.Builder) | ` `[setClickPoint](https://developer.android.com/reference/android/graphics/pdf/models/FormEditRecord.Builder#setClickPoint(android.graphics.Point))`(`[Point](https://developer.android.com/reference/android/graphics/Point)` clickPoint) ` Sets the click point for this record |
| ` `[FormEditRecord.Builder](https://developer.android.com/reference/android/graphics/pdf/models/FormEditRecord.Builder) | ` `[setSelectedIndices](https://developer.android.com/reference/android/graphics/pdf/models/FormEditRecord.Builder#setSelectedIndices(int[]))`(int[] selectedIndices) ` Sets the selected indices for this record                                                                  |
| ` `[FormEditRecord.Builder](https://developer.android.com/reference/android/graphics/pdf/models/FormEditRecord.Builder) | ` `[setText](https://developer.android.com/reference/android/graphics/pdf/models/FormEditRecord.Builder#setText(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` text) ` Sets the text for this record                                     |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||

## Public constructors

### Builder

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

```
public Builder (int type, 
                int pageNumber, 
                int widgetIndex)
```

Creates a new instance.

<br />

|                                                                                                                                                                                                                                                                                            Parameters                                                                                                                                                                                                                                                                                             ||
|---------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `type`        | `int`: the type of[FormEditRecord](https://developer.android.com/reference/android/graphics/pdf/models/FormEditRecord)to create Value is[FormEditRecord.EDIT_TYPE_CLICK](https://developer.android.com/reference/android/graphics/pdf/models/FormEditRecord#EDIT_TYPE_CLICK),[FormEditRecord.EDIT_TYPE_SET_INDICES](https://developer.android.com/reference/android/graphics/pdf/models/FormEditRecord#EDIT_TYPE_SET_INDICES), or[FormEditRecord.EDIT_TYPE_SET_TEXT](https://developer.android.com/reference/android/graphics/pdf/models/FormEditRecord#EDIT_TYPE_SET_TEXT) <br /> |
| `pageNumber`  | `int`: the page number of which the record is Value is 0 or greater <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `widgetIndex` | `int`: the index of the widget within the page's widget annotations array in the PDF Value is 0 or greater <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |

|                                                                            Throws                                                                             ||
|--------------------------------------------------------------------------------------------------------|-------------------------------------------------------|
| [IllegalArgumentException](https://developer.android.com/reference/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#ApiLevels)  
Also in[S Extensions 13](https://developer.android.com/sdkExtensions)  

```
public FormEditRecord build ()
```

Builds this record

<br />

|                                                                 Returns                                                                  ||
|------------------------------------------------------------------------------------------------------|------------------------------------|
| [FormEditRecord](https://developer.android.com/reference/android/graphics/pdf/models/FormEditRecord) | This value cannot be`null`. <br /> |

|                                                                                                                                            Throws                                                                                                                                             ||
|------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [NullPointerException](https://developer.android.com/reference/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#ApiLevels)  
Also in[S Extensions 13](https://developer.android.com/sdkExtensions)  

```
public FormEditRecord.Builder setClickPoint (Point clickPoint)
```

Sets the click point for this record

<br />

|                       Parameters                       ||
|--------------|------------------------------------------|
| `clickPoint` | `Point`: This value may be`null`. <br /> |

|                                                                         Returns                                                                          ||
|----------------------------------------------------------------------------------------------------------------------|------------------------------------|
| [FormEditRecord.Builder](https://developer.android.com/reference/android/graphics/pdf/models/FormEditRecord.Builder) | This value cannot be`null`. <br /> |

|                                                                   Throws                                                                   ||
|--------------------------------------------------------------------------------------------------------|------------------------------------|
| [IllegalArgumentException](https://developer.android.com/reference/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#ApiLevels)  
Also in[S Extensions 13](https://developer.android.com/sdkExtensions)  

```
public FormEditRecord.Builder setSelectedIndices (int[] selectedIndices)
```

Sets the selected indices for this record

<br />

|                        Parameters                         ||
|-------------------|----------------------------------------|
| `selectedIndices` | `int`: This value may be`null`. <br /> |

|                                                                         Returns                                                                          ||
|----------------------------------------------------------------------------------------------------------------------|------------------------------------|
| [FormEditRecord.Builder](https://developer.android.com/reference/android/graphics/pdf/models/FormEditRecord.Builder) | This value cannot be`null`. <br /> |

|                                                                      Throws                                                                      ||
|--------------------------------------------------------------------------------------------------------|------------------------------------------|
| [IllegalArgumentException](https://developer.android.com/reference/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#ApiLevels)  
Also in[S Extensions 13](https://developer.android.com/sdkExtensions)  

```
public FormEditRecord.Builder setText (String text)
```

Sets the text for this record

<br />

|                    Parameters                     ||
|--------|-------------------------------------------|
| `text` | `String`: This value may be`null`. <br /> |

|                                                                         Returns                                                                          ||
|----------------------------------------------------------------------------------------------------------------------|------------------------------------|
| [FormEditRecord.Builder](https://developer.android.com/reference/android/graphics/pdf/models/FormEditRecord.Builder) | This value cannot be`null`. <br /> |

|                                                                    Throws                                                                     ||
|--------------------------------------------------------------------------------------------------------|---------------------------------------|
| [IllegalArgumentException](https://developer.android.com/reference/java/lang/IllegalArgumentException) | if this is not a set text type record |