CountrySectionKind

The kinds of section the sheet can show, in the order they appear.

Declaration order is the deduplication priority: a country appears in the first section that claims it and nowhere else. That is what keeps a selected Germany out of "Suggested" and "All countries" — showing the same row three times makes the list feel broken and makes the check marks ambiguous.

Entries

Link copied to clipboard

Currently selected (single) or pending-selected (multi). Highest priority.

Link copied to clipboard

Everything not claimed above.

Link copied to clipboard

Flat search results.

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
Link copied to clipboard
val titleRes: StringResource?

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.