Country Picker Defaults
Behaviour presets for the three kinds of picker.
These build a CountryPickerConfig; for appearance see CountryPickerStyles and CountryPickerTheme.
Functions
Link copied to clipboard
fun config(allowedCountryCodes: Set<String>? = null, excludedCountryCodes: Set<String> = emptySet(), disabledCountryCodes: Set<String> = emptySet(), suggestedCountryCodes: List<String> = emptyList(), showSearch: Boolean = true): CountryPickerConfig
A single-country picker, such as country of residence.
Link copied to clipboard
fun multiSelectConfig(allowedCountryCodes: Set<String>? = null, excludedCountryCodes: Set<String> = emptySet(), disabledCountryCodes: Set<String> = emptySet(), minimumSelectionCount: Int = 1, maximumSelectionCount: Int? = null, suggestedCountryCodes: List<String> = emptyList()): CountryPickerConfig
A multiple-selection picker: the sheet stays open, rows tick, and nothing reaches the caller until Confirm.
Link copied to clipboard
fun phoneConfig(allowedCountryCodes: Set<String>? = null, excludedCountryCodes: Set<String> = emptySet(), suggestedCountryCodes: List<String> = emptyList()): CountryPickerConfig
The country-code picker behind a phone field.