getAdvancedMaskedString method
text
is the string to be formatted
maxLenght
is used to limit the maximum returned text. Set it as -1 to not limitate.
placeholder
String character to be applyed as placeholder
maxPlaceHolderCharacters
Numbers of times the placeholder could be counted. A typed character consumes a count.
It returns a formatted String.
Implementation
String getAdvancedMaskedString(String text, int maxLenght, String placeholder,
int maxPlaceHolderCharacters) {
return executeMasking(text, 0, false, maxLenght, placeholder,
maxPlaceHolderCharacters)['text'];
}