Values

public class Values

Values collected by the terminal.

Methods

create

public static Values create()

Creates an instance of Values

getImage

public Image getImage()

Refer to setImage(Bitmap).

getNumericValue

public Decimal getNumericValue()

Gets the response value when the Input Type is InputType.NUMBER or InputType.DECIMAL.

getSelectedIndices

public ArrayList<Integer> getSelectedIndices()

Refer to setSelectedIndices(Collection).

getValue

public String getValue()

Gets the response value when the Input Type is InputType.EMAIL, InputType.PASSWORD, or InputType.TEXT. If the InputType is InputType#NUMBER and the input is phone number entered with a leading ‘+’ symbol or ‘0’ or just numeric phone number, this contains the full value as entered by the user.

isConfirmed

public boolean isConfirmed()

Refer to setConfirmed(boolean).

isValidForType

public boolean isValidForType(InputType inputType)

Validates the current values for the given Input Type.

setConfirmed

public void setConfirmed(boolean confirmed)

Sets the response value when the Input Type is InputType.CONFIRMATION, InputType.MANAGER_APPROVAL, or InputType.ANY_KEY.

setImage

public void setImage(Image image)

Used when the Input Type is InputType.SIGNATURE to provide the image of the signature.

setNumericValue

public void setNumericValue(Decimal value)

Sets the response value when the Input Type is InputType.NUMBER or InputType.DECIMAL.

setSelectedIndices

public void setSelectedIndices(ArrayList<Integer> indices)

Used when the Input Type is InputType.MENU_OPTIONS to provide back the selected index from the options. a negative number means to go back to a previous menu

setValue

public void setValue(String value)

Sets the response value when the Input Type is InputType.EMAIL, InputType.PASSWORD, or InputType.TEXT.