CountrySpec

data class CountrySpec(onlyShowCountryCodes: Set<String>) : SectionFieldSpec

This is the specification for a country field.

Constructors

Link copied to clipboard
fun CountrySpec(onlyShowCountryCodes: Set<String> = emptySet())

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
fun transform(country: String?): SectionFieldElement
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

Link copied to clipboard
open val identifier: IdentifierSpec
Link copied to clipboard
val onlyShowCountryCodes: Set<String>

: a list of country code that should be shown. If empty all countries will be shown.