CountryDetectionSource

Where a detected country came from.

Exposed rather than kept internal because the source is what makes the detected-country row honest: "Detected from your SIM" is a claim a user can evaluate, whereas a bare "Detected" is not.

Ordinal order is the confidence order used by DefaultCountryDetector's fallback ladder — earlier entries are stronger signals.

Entries

Link copied to clipboard

The user picked it. The strongest signal; never overridden by detection.

Link copied to clipboard

Restored from a previous session's saved choice.

Link copied to clipboard

Supplied by the host from the signed-in profile.

Link copied to clipboard

The SIM card's registered country. Strongest device signal.

Link copied to clipboard

The network the device is currently attached to, or a host-provided IP lookup.

Link copied to clipboard

The device's configured language/region. Weakest — a language is not a location.

Link copied to clipboard

A hardcoded fallback, used when nothing else resolved.

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

Supporting text for the detected-country row, e.g. "From your SIM card · tap to change".

Link copied to clipboard
val labelRes: StringResource
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.