CountryLoadState

sealed interface CountryLoadState(source)

How the country list is doing.

Loading and Error only occur with a custom, usually remote, com.ezzy.ccp.countrypicker.data.CountryDataSource — the bundled dataset is in-memory, so the default path goes straight to Loaded on the first frame and the picker works offline.

Inheritors

Types

Link copied to clipboard
data class Error(val message: UiText, val offline: Boolean = false) : CountryLoadState

Loading failed. message is shown with a Retry action.

Link copied to clipboard
data object Loaded : CountryLoadState
Link copied to clipboard