Checks if the text passed matches a defined regular expression. Pass the value as a string in quotes to have the expression evaluated.
pattern {
regex ("\\d{5}") {
on-error ("That won't work")
}
}
numeric-keypad-enabled optional | If set to true, enables the numeric keypad on devices with screens to allow users to provide numbers |
on-error optional | Error message to display if the text inputted by user does not match the expected pattern |
Copyright 2024 Samsung All rights reserved