public static interface

FormListeners.OnChoiceFormFieldUpdatedListener

com.pspdfkit.forms.FormListeners.OnChoiceFormFieldUpdatedListener

Class Overview

Listener for ChoiceFormField updates.

Summary

Public Methods
abstract void onCustomOptionSet(ChoiceFormField formField, ChoiceFormElement formElement, String customOption)
Called when custom option has been set in choice field.
abstract void onOptionSelected(ChoiceFormField formField, ChoiceFormElement formElement, List<Integer> selectedOptionIndexes)
Called when choice field option has been selected.

Public Methods

public abstract void onCustomOptionSet (ChoiceFormField formField, ChoiceFormElement formElement, String customOption)

Called when custom option has been set in choice field.

Parameters
formField Updated form field.
formElement Form element that has been changed.
customOption Custom option text or null to clear.

public abstract void onOptionSelected (ChoiceFormField formField, ChoiceFormElement formElement, List<Integer> selectedOptionIndexes)

Called when choice field option has been selected.

Parameters
formField Updated form field.
formElement Form element that has been changed.
selectedOptionIndexes List of indexes of selected options.