Skip to content

Commit d88628f

Browse files
committed
Updated readme.MD
1 parent 76f4856 commit d88628f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

readme.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,20 @@ app:oev_mask_character="ø"
106106

107107
P.S. Please note that, in case of masking with a special character other than `*`, specify string with length one, otherwise the input string will be truncated to length 1.
108108

109+
### OnComplete callback for the View
110+
To implement an OnComplete callback, use `setOnCompleteListener` setter method and pass on an interface implementation.
111+
eg:
112+
```
113+
editText.setOnCompleteListener(new OnCompleteListener() {
114+
@Override
115+
public void onComplete(String value) {
116+
Toast.makeText(MainActivity.this, "Completed " + value, Toast.LENGTH_SHORT).show();
117+
}
118+
});
119+
```
120+
121+
This callback will be triggered when the number of characters is equal to the `android:maxLength` value.
122+
109123
## For optimum usage; Please note.
110124
* Specify `android:textSize` according to your needs.
111125
* Specify `android:padding` according to your needs, there are no paddings drawn by default.

0 commit comments

Comments
 (0)