CountrySearchField

Fields com.ezzy.ccp.countrypicker.data.CountrySearchEngine matches a query against.

Narrowing this set is a way to make search stricter — for example a residence picker that should not match dial codes can pass setOf(Name, Iso2, Iso3, AlternativeNames).

Entries

Link copied to clipboard

Country.displayName, accent-folded. Also the only field that produces a highlight range.

Link copied to clipboard

Country.iso2Code, prefix match ("ke" → Kenya).

Link copied to clipboard

Country.iso3Code, prefix match ("ken" → Kenya).

Link copied to clipboard

Country.dialCode, with or without the leading + ("254" and "+254" → Kenya).

Link copied to clipboard

Country.alternativeNames, substring match ("uae" → United Arab Emirates).

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

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.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.