ws1-framework/com.airwatch.simplifiedenrollment.views/AWInputField
AWInputField¶
open class AWInputField
A custom view that extends LinearLayout and provides a user input field with enhanced functionality.
This view combines a TextInputLayout with EditText to provide Material Design compliant input fields with support for password visibility toggle, biometric authentication, and clipboard control.
Types¶
| Name | Summary |
|---|---|
| INPUT_MODE | enum INPUT_MODE Defines the input mode types for the AWInputField, determining keyboard type and input behavior. |
| OnEditorActionListener | open class OnEditorActionListener Custom editor action listener that handles IME actions in conjunction with AWNextActionView. |
Functions¶
| Name | Summary |
|---|---|
| addTextChangedListener | open fun addTextChangedListener(watcher: TextWatcher) Adds a text watcher to monitor text changes in the input field. |
| getText | open fun getText(): Editable Returns the current text content of the input field. |
| getTextInputLayout | open fun getTextInputLayout(): TextInputLayout Returns the underlying TextInputLayout component. |
| isEmpty | open fun isEmpty(): Boolean Checks if the input field is empty. |
| setContentDescription | open fun setContentDescription(contentDescription: CharSequence) Overrides the default content description behavior to set it on the EditText component as well. |
| setHint | open fun setHint(hint: String) Sets the hint text to be displayed when the input field is empty. |
| setInputMode | open fun setInputMode(mode: AWInputField.INPUT_MODE) Sets the input mode for the field, determining the keyboard type and input behavior. |
| setMaxLength | open fun setMaxLength(maxLength: Int) Sets the maximum length of text that can be entered in the input field. |
| setOnEditorActionListener | open fun setOnEditorActionListener(listener: OnEditorActionListener) Sets a listener to be invoked when an editor action is performed on the input field. open fun setOnEditorActionListener(imeOptions: Int) Sets the IME action options for the input field. |
| setText | open fun setText(text: CharSequence) Sets the text content of the input field. |