CountrySearchState

constructor(countriesToShow: List<String> = emptyList(), countriesToExclude: List<String> = emptyList(), pinnedCountries: List<String> = emptyList())(source)

Parameters

countriesToShow

Whitelist of ISO codes to show. Empty = all countries.

countriesToExclude

Blacklist of ISO codes to hide regardless of countriesToShow.

pinnedCountries

ISO codes of countries pinned to a "Suggested" section at the top of the list. Only visible when query is blank.

Create via rememberCountrySearchState.