ForageElement

interface ForageElement<out T : ElementState>

The interface that defines methods for configuring and interacting with a ForageElement. A ForageElement is a secure, client-side entity that accepts and submits customer input for a transaction. Both ForagePanElement and ForageVaultElement adhere to the ForageElement interface.

See also

Inheritors

Properties

Link copied to clipboard
abstract var typeface: Typeface?

The Typeface that is used to render text within the ForageElement.

Functions

Link copied to clipboard
abstract fun clearText()

Clears the text input field of the ForageElement.

Link copied to clipboard
abstract fun getElementState(): T

Gets the current ElementState state of the ForageElement.

Link copied to clipboard
abstract fun setOnChangeEventListener(l: StatefulElementListener<T>)

Sets an event listener to be fired when the text inside the ForageElement input field changes.

Link copied to clipboard
abstract fun setTextColor(textColor: Int)

Sets the text color for the ForageElement.

Link copied to clipboard
abstract fun setTextSize(textSize: Float)

Sets the text size for the ForageElement.