ParsedNumber

data class ParsedNumber(val country: Country, val nationalDigits: String, val countryWasDetected: Boolean)(source)

Result of parseInternational.

Constructors

Link copied to clipboard
constructor(country: Country, nationalDigits: String, countryWasDetected: Boolean)

Properties

Link copied to clipboard
Link copied to clipboard

True only when the input itself identified the country. Callers use this to decide whether changing the selected country is justified — an explicit user choice must not be overwritten by a bare national number that carried no country signal.

Link copied to clipboard