Phone Number Validity
Machine-readable validation outcome, kept separate from the user-facing message so hosts can branch on the reason without string matching.
This is intentionally finer-grained than a boolean: "too short" while typing should not look like "invalid", and an unsupported region is a configuration problem rather than user error.
Entries
Plausible prefix but not yet long enough. The normal state while typing.
The leading country calling code does not correspond to any region.
libphonenumber has no metadata for the selected country, so it cannot be validated.
A real, dialable number — but not one of the types the caller accepts.
Properties
Functions
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.