Package-level declarations
The canonical Country model, PhoneNumberValue, UiText, and the small enums that describe selection mode, search fields, supporting content and regions. Also the conversions between the canonical model and the legacy com.ezzy.ccp.model types.
The canonical Country model, PhoneNumberValue, UiText, and the small enums that describe selection mode, search fields, supporting content and regions. Also the conversions between the canonical model and the legacy com.ezzy.ccp.model types.
Types
A country that matched a search query, plus the information needed to rank and highlight it.
Geographic region a Country belongs to, following the UN M49 top-level groupings used by the country dataset. These are the regions offered by the sheet's quick filter chips.
Fields com.ezzy.ccp.countrypicker.data.CountrySearchEngine matches a query against.
Whether the picker commits a selection immediately or stages it behind a confirm action.
The metadata line a Country selector or row shows under the country name — e.g. "DE · +49".
Whether a field-like component (the phone number field, a country selector) shows a visible label.
What kind of line a phone number is, as classified by libphonenumber's per-region metadata.
Machine-readable validation outcome, kept separate from the user-facing message so hosts can branch on the reason without string matching.
Everything a caller needs to know about the phone number currently in the field.
What the phone country-code prefix shows before the divider — e.g. 🇰🇪 +254 is FlagAndDialCode.
Functions
References an Android plurals resource; see UiText.Companion.plural for how args default.
Resolves a country from an ISO code or a country name, the way the legacy setCountry parameter worked.
Resolves a legacy LegacyCountry to its canonical counterpart.
Projects a PhoneNumberValue into the legacy Phone snapshot.
Projects a canonical Country into the legacy SelectedCountry used by Phone.