set Input Mask Phone
fun setInputMaskPhone(validation: EnterpriseTextInputField.ValidationType.PhoneValidation? = null)
Content copied to clipboard
Restricts input to follow Phone format (defaults to system java.util.Locale, but also supports international formats when used with country codes), ie. (555) 123-4567
or +44 7911 123456
. Automatically inserts Space and Parenthesis mask characters. Automatically removes formatting when invalid / unable to be parsed. Sets keyboard to InputType.TYPE_CLASS_PHONE. See PhoneNumberFormattingTextWatcher.
Parameters
validation
Optional PhoneValidation. If supplied, validates based on android.util.Patterns.PHONE.