# FormWidgetInfo

Artifact: [androidx.pdf:pdf-core](https://developer.android.com/jetpack/androidx/releases/pdf) [View Source](https://cs.android.com/search?q=file:androidx/pdf/models/FormWidgetInfo.kt+class:androidx.pdf.models.FormWidgetInfo) Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

*** ** * ** ***


```
class FormWidgetInfo : Parcelable
```

<br />

*** ** * ** ***

Information about a form widget of a PDF document.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/pdf/models/<` | [PDF 32000-1:2008]("https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/PDF32000_2008.pdf") |

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#WIDGET_TYPE_CHECKBOX() = 2` Represents a checkbox type form widget |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#WIDGET_TYPE_COMBOBOX() = 4` Represents a combobox type form widget |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#WIDGET_TYPE_LISTBOX() = 5` Represents a listbox type form widget |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#WIDGET_TYPE_PUSHBUTTON() = 1` Represents a push button type form widget |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#WIDGET_TYPE_RADIOBUTTON() = 3` Represents a radio button type form widget |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#WIDGET_TYPE_SIGNATURE() = 7` Represents a signature type form widget |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#WIDGET_TYPE_TEXTFIELD() = 6` Represents a text field type form widget |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#WIDGET_TYPE_UNKNOWN() = 0` Represents a form widget type that is unknown |

| ### Public companion functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo` | `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#createCheckbox(kotlin.Int,android.graphics.Rect,kotlin.String,kotlin.String,kotlin.Boolean)( widgetIndex: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, widgetRect: https://developer.android.com/reference/android/graphics/Rect.html, textValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?, accessibilityLabel: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?, isReadOnly: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html )` Factory method for creating form widget of type `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#WIDGET_TYPE_CHECKBOX()`. |
| `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo` | `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#createComboBox(kotlin.Int,android.graphics.Rect,kotlin.String,kotlin.String,kotlin.Boolean,kotlin.Boolean,kotlin.Float,kotlin.collections.List)( widgetIndex: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, widgetRect: https://developer.android.com/reference/android/graphics/Rect.html, textValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?, accessibilityLabel: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?, isReadOnly: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, isEditableText: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, fontSize: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0.0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, listItems: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/pdf/models/ListItem> )` Factory method for creating form widget of type `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#WIDGET_TYPE_COMBOBOX()`. |
| `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo` | `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#createListBox(kotlin.Int,android.graphics.Rect,kotlin.String,kotlin.String,kotlin.Boolean,kotlin.Boolean,kotlin.collections.List)( widgetIndex: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, widgetRect: https://developer.android.com/reference/android/graphics/Rect.html, textValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?, accessibilityLabel: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?, isReadOnly: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, isMultiSelect: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, listItems: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/pdf/models/ListItem> )` |
| `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo` | `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#createPushButton(kotlin.Int,android.graphics.Rect,kotlin.String,kotlin.String,kotlin.Boolean)( widgetIndex: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, widgetRect: https://developer.android.com/reference/android/graphics/Rect.html, textValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?, accessibilityLabel: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?, isReadOnly: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html )` Factory method for creating form widget of type `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#WIDGET_TYPE_PUSHBUTTON()`. |
| `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo` | `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#createRadioButton(kotlin.Int,android.graphics.Rect,kotlin.String,kotlin.String,kotlin.Boolean)( widgetIndex: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, widgetRect: https://developer.android.com/reference/android/graphics/Rect.html, textValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?, accessibilityLabel: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?, isReadOnly: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html )` Factory method for creating form widget of type `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#WIDGET_TYPE_RADIOBUTTON()`. |
| `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo` | `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#createSignature(kotlin.Int,android.graphics.Rect,kotlin.String,kotlin.String,kotlin.Boolean)( widgetIndex: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, widgetRect: https://developer.android.com/reference/android/graphics/Rect.html, textValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?, accessibilityLabel: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?, isReadOnly: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html )` Factory method for creating form widget of type `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#WIDGET_TYPE_SIGNATURE()`. |
| `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo` | `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#createTextField(kotlin.Int,android.graphics.Rect,kotlin.String,kotlin.String,kotlin.Boolean,kotlin.Boolean,kotlin.Boolean,kotlin.Int,kotlin.Float)( widgetIndex: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, widgetRect: https://developer.android.com/reference/android/graphics/Rect.html, textValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?, accessibilityLabel: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?, isReadOnly: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, isEditableText: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, isMultiLineText: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, maxLength: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, fontSize: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0.0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html )` Factory method for creating form widget of type `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#WIDGET_TYPE_TEXTFIELD()`. |

| ### Public companion properties |
|---|---|
| `https://developer.android.com/reference/android/os/Parcelable.Creator.html<https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo>` | `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#CREATOR()` |

| ### Public functions |
|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#describeContents()()` |
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#hashCode()()` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#writeToParcel(android.os.Parcel,kotlin.Int)(dest: https://developer.android.com/reference/android/os/Parcel.html, flags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#accessibilityLabel()` The accessibility label for this widget, if present. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#fontSize()` The configured font size for a form widget that accepts text input (`https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#WIDGET_TYPE_COMBOBOX()` or `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#WIDGET_TYPE_TEXTFIELD()`), or 0 for widgets this does not apply to. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#isEditableText()` True if this widget has editable text. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#isMultiLineText()` True if this widget supports multi-line text input. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#isMultiSelect()` True if this widget supports selecting multiple `https://developer.android.com/reference/kotlin/androidx/pdf/models/ListItem`s. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#isReadOnly()` True if this widget is read-only and accepts changes |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/pdf/models/ListItem>` | `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#listItems()` The set of choice options in a form widget of type `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#WIDGET_TYPE_COMBOBOX()` or `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#WIDGET_TYPE_LISTBOX()`, or an empty list for other widget types. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#maxLength()` The configured maximum text length for a form widget of type `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#WIDGET_TYPE_TEXTFIELD()`), or -1 for widgets this does not apply to. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#textValue()` The text value of this widget, if present. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#widgetIndex()` The index of this widget among all form widgets on the page |
| `https://developer.android.com/reference/android/graphics/Rect.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#widgetRect()` The bounds of this widget in PDF coordinates |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#widgetType()` The `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo.WidgetType` of this widget |

## Constants

### WIDGET_TYPE_CHECKBOX

```
const val WIDGET_TYPE_CHECKBOX = 2: Int
```

Represents a checkbox type form widget

### WIDGET_TYPE_COMBOBOX

```
const val WIDGET_TYPE_COMBOBOX = 4: Int
```

Represents a combobox type form widget

### WIDGET_TYPE_LISTBOX

```
const val WIDGET_TYPE_LISTBOX = 5: Int
```

Represents a listbox type form widget

### WIDGET_TYPE_PUSHBUTTON

```
const val WIDGET_TYPE_PUSHBUTTON = 1: Int
```

Represents a push button type form widget

### WIDGET_TYPE_RADIOBUTTON

```
const val WIDGET_TYPE_RADIOBUTTON = 3: Int
```

Represents a radio button type form widget

### WIDGET_TYPE_SIGNATURE

```
const val WIDGET_TYPE_SIGNATURE = 7: Int
```

Represents a signature type form widget

### WIDGET_TYPE_TEXTFIELD

```
const val WIDGET_TYPE_TEXTFIELD = 6: Int
```

Represents a text field type form widget

### WIDGET_TYPE_UNKNOWN

```
const val WIDGET_TYPE_UNKNOWN = 0: Int
```

Represents a form widget type that is unknown

## Public companion functions

### createCheckbox

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
fun createCheckbox(
    widgetIndex: @IntRange(from = 0) Int,
    widgetRect: Rect,
    textValue: String?,
    accessibilityLabel: String?,
    isReadOnly: Boolean
): FormWidgetInfo
```

Factory method for creating form widget of type `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#WIDGET_TYPE_CHECKBOX()`.

### createComboBox

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
fun createComboBox(
    widgetIndex: @IntRange(from = 0) Int,
    widgetRect: Rect,
    textValue: String?,
    accessibilityLabel: String?,
    isReadOnly: Boolean,
    isEditableText: Boolean,
    fontSize: @FloatRange(from = 0.0) Float,
    listItems: List<ListItem>
): FormWidgetInfo
```

Factory method for creating form widget of type `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#WIDGET_TYPE_COMBOBOX()`.

### createListBox

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
fun createListBox(
    widgetIndex: @IntRange(from = 0) Int,
    widgetRect: Rect,
    textValue: String?,
    accessibilityLabel: String?,
    isReadOnly: Boolean,
    isMultiSelect: Boolean,
    listItems: List<ListItem>
): FormWidgetInfo
```

### createPushButton

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
fun createPushButton(
    widgetIndex: @IntRange(from = 0) Int,
    widgetRect: Rect,
    textValue: String?,
    accessibilityLabel: String?,
    isReadOnly: Boolean
): FormWidgetInfo
```

Factory method for creating form widget of type `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#WIDGET_TYPE_PUSHBUTTON()`.

### createRadioButton

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
fun createRadioButton(
    widgetIndex: @IntRange(from = 0) Int,
    widgetRect: Rect,
    textValue: String?,
    accessibilityLabel: String?,
    isReadOnly: Boolean
): FormWidgetInfo
```

Factory method for creating form widget of type `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#WIDGET_TYPE_RADIOBUTTON()`.

### createSignature

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
fun createSignature(
    widgetIndex: @IntRange(from = 0) Int,
    widgetRect: Rect,
    textValue: String?,
    accessibilityLabel: String?,
    isReadOnly: Boolean
): FormWidgetInfo
```

Factory method for creating form widget of type `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#WIDGET_TYPE_SIGNATURE()`.

### createTextField

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
fun createTextField(
    widgetIndex: @IntRange(from = 0) Int,
    widgetRect: Rect,
    textValue: String?,
    accessibilityLabel: String?,
    isReadOnly: Boolean,
    isEditableText: Boolean,
    isMultiLineText: Boolean,
    maxLength: @IntRange(from = 0) Int,
    fontSize: @FloatRange(from = 0.0) Float
): FormWidgetInfo
```

Factory method for creating form widget of type `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#WIDGET_TYPE_TEXTFIELD()`.

## Public companion properties

### CREATOR

```
val CREATOR: Parcelable.Creator<FormWidgetInfo>
```

## Public functions

### describeContents

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
open fun describeContents(): Int
```

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

```
open fun hashCode(): Int
```

### writeToParcel

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
open fun writeToParcel(dest: Parcel, flags: Int): Unit
```

## Public properties

### accessibilityLabel

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
val accessibilityLabel: String?
```

The accessibility label for this widget, if present. Comes from the "TU" or "T" value in the annotation dictionary.

See PDF spec 1.7 Table 8.69

### fontSize

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
val fontSize: Float
```

The configured font size for a form widget that accepts text input (`https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#WIDGET_TYPE_COMBOBOX()` or `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#WIDGET_TYPE_TEXTFIELD()`), or 0 for widgets this does not apply to.

### isEditableText

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
val isEditableText: Boolean
```

True if this widget has editable text. Only applicable to `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#WIDGET_TYPE_COMBOBOX()` or `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#WIDGET_TYPE_TEXTFIELD()`. Defaults to 'false' for other widget types.

### isMultiLineText

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
val isMultiLineText: Boolean
```

True if this widget supports multi-line text input. Only applicable to `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#WIDGET_TYPE_TEXTFIELD()`. Defaults to 'false' for other widget types.

### isMultiSelect

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
val isMultiSelect: Boolean
```

True if this widget supports selecting multiple `https://developer.android.com/reference/kotlin/androidx/pdf/models/ListItem`s. Only applicable to `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#WIDGET_TYPE_LISTBOX()`. Defaults to 'false' for other widget types.

### isReadOnly

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
val isReadOnly: Boolean
```

True if this widget is read-only and accepts changes

### listItems

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
val listItems: List<ListItem>
```

The set of choice options in a form widget of type `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#WIDGET_TYPE_COMBOBOX()` or `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#WIDGET_TYPE_LISTBOX()`, or an empty list for other widget types.

### maxLength

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
val maxLength: Int
```

The configured maximum text length for a form widget of type `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo#WIDGET_TYPE_TEXTFIELD()`), or -1 for widgets this does not apply to.

### textValue

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
val textValue: String?
```

The text value of this widget, if present. Comes from the "V" value in the annotation dictionary.

See PDF spec 1.7 Table 8.69

### widgetIndex

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
val widgetIndex: Int
```

The index of this widget among all form widgets on the page

### widgetRect

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
val widgetRect: Rect
```

The bounds of this widget in PDF coordinates

### widgetType

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
val widgetType: Int
```

The `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo.WidgetType` of this widget

Value is one of the following:

- `0`
- `1`
- `2`
- `3`
- `4`
- `5`
- `6`
- `7`

<br />