ForagePaymentSheetField

abstract class ForagePaymentSheetField(    editText: TextInputEditText,     layout: TextInputLayout,     border: GradientDrawable) : ForageElement<ElementState> , EditTextElement

Inheritors

Constructors

Link copied to clipboard
constructor(editText: TextInputEditText, layout: TextInputLayout, border: GradientDrawable)

Properties

Link copied to clipboard
open override var typeface: Typeface?

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

Functions

Link copied to clipboard
open override fun clearText()

Clears the text input field of the ForageElement.

Link copied to clipboard
Link copied to clipboard
open override fun setBoxStrokeColor(@ColorInt boxStrokeColor: Int)

Sets the border color of the input field.

Link copied to clipboard
open override fun setBoxStrokeWidth(boxStrokeWidth: Int)

Sets the border thickness of the input field.

Link copied to clipboard
open override fun setBoxStrokeWidthFocused(boxStrokeWidthFocused: Int)

Sets the border thickness of the input field when the field is in focus state.

Link copied to clipboard
open override fun setHint(hint: String)

Sets the text to be displayed when the ForageElement input field is empty.

Link copied to clipboard
open override fun setHintTextColor(@ColorInt hintTextColor: Int)

Sets the hint text color.

Link copied to clipboard
open override fun setOnBlurEventListener(l: SimpleElementListener)

Sets an event listener to be fired when the ForageElement is blurred.

Link copied to clipboard
open override fun setOnChangeEventListener(l: StatefulElementListener<ElementState>)

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

Link copied to clipboard
open override fun setOnFocusEventListener(l: SimpleElementListener)

Sets an event listener to be fired when the ForageElement is in focus.

Link copied to clipboard
open override fun setTextColor(textColor: Int)

Sets the text color for the ForageElement.

Link copied to clipboard
open override fun setTextSize(textSize: Float)

Sets the text size for the ForageElement.

Link copied to clipboard
open override fun showKeyboard()

Explicitly request that the current input method's soft input be shown to the user, if needed. This only has an effect if the ForageElement is focused, which can be done using .requestFocus()

Inherited functions

Link copied to clipboard

Gets the current ElementState state of the ForageElement.