Identity iOS
1.12
Search
K

Country

An enumeration containing the supported countries and varies details

Declaration

@objc public enum Country : Int, CaseIterable {
case Angola
case Bangladesh
case Botswana
case DemocraticRepublicOfTheCongo
case Egypt
case Ethiopia
case Generic
case Ghana
case Kenya
case Lesotho
case Malawi
case Mauritius
case Mozambique
case Namibia
case Nigeria
case Pakistan
case Philippines
case Somalia
case SouthAfrica
case Tanzania
case Uganda
case UnitedKingdom
case Zambia
case Zimbabwe
public var fullName: String { get }
public var idCardCountryCode: String { get }
public var passportCountryCode: String { get }
public var isoCode: String { get }
public var supportedDocuments: [DocumentType] { get }
}
Only relevant details are shown, boilerplate or standard Swift generated code is omitted

Summary

Cases

Name
Description
Angola
Indicates the country is Angola.
Indicates the country is Bangladesh.
Botswana
Indicates the country is Botswana.
Indicates the country is Democratic Republic of the Congo.
Egypt
Indicates the country is Egypt.
Ethiopia
Indicates the country is Ethiopia.
Generic
Indicates the country is Generic.
Ghana
Indicates the country is Ghana.
Kenya
Indicates the country is Kenya.
Lesotho
Indicates the country is Lesotho.
Malawi
Indicates the country is Malawi.
Mauritius
Indicates the country is Mauritius.
Indicates the country is Mozambique.
Namibia
Indicates the country is Namibia.
Nigeria
Indicates the country is Nigeria.
Pakistan
Indicates the country is Pakistan.
Indicates the country is Philippines.
Somalia
Indicates the country is Somalia.
Indicates the country is South Africa.
Tanzania
Indicates the country is Tanzania.
Uganda
Indicates the country is Uganda.
Indicates the country is United Kingdom.
Zambia
Indicates the country is Zambia.
Zimbabwe
Indicates the country is Zimbabwe.

Public variables

Name
Type
Description
fullName
String
Returns the name of the country.
String
Returns the ID card code of the country.
String
Returns the passport code of the country.
isoCode
String
Returns the ISO code of the country.
Returns the document types that we support for the specified country.

Cases

Angola

case Angola
Indicates the country is Angola.

Bangladesh

case Bangladesh
Indicates the country is Bangladesh.

Botswana

case Botswana
Indicates the country is Botswana.

DemocraticRepublicOfTheCongo

case DemocraticRepublicOfTheCongo
Indicates the country is DemocraticRepublic of the Congo.

Egypt

case Egypt
Indicates the country is Egypt.

Ethiopia

case Ethiopia
Indicates the country is Ethiopia.

Generic

case Ghana
Indicates the country is Generic.

Ghana

case Ghana
Indicates the country is Ghana.

Kenya

case Kenya
Indicates the country is Kenya.

Lesotho

case Lesotho
Indicates the country is Lesotho.

Malawi

case Malawi
Indicates the country is Malawi.

Mauritius

case Mauritius
Indicates the country is Mauritius.

Mozambique

case Mozambique
Indicates the country is Mozambique.

Namibia

case Namibia
Indicates the country is Namibia.

Nigeria

case Nigeria
Indicates the country is Nigeria.

Pakistan

case Pakistan
Indicates the country is Pakistan.

Philippines

case Philippines
Indicates the country is Philippines.

Somalia

case Somalia
Indicates the country is Somalia.

SouthAfrica

case SouthAfrica
Indicates the country is South Africa.

Tanzania

case Tanzania
Indicates the country is Tanzania.

Uganda

case Uganda
Indicates the country is Uganda.

UnitedKingdom

case UnitedKingdom
Indicates the country is United Kingdom.

Zambia

case Zambia
Indicates the country is Zambia.

Zimbabwe

case Zimbabwe
Indicates the country is Zimbabwe.

Public variables

fullName

public var fullName: String { get }
Example: "South Africa"
Returns the name of the country.

idCardCountryCode

public var idCardCountryCode: String { get }
Example: "RSA"
Returns the ID card code of the country.

passportCountryCode

public var passportCountryCode: String { get }
Example: "ZAF"
Returns the passport code of the country.

isoCode

public var isoCode: String { get }
Example: "ZA"
Returns the ISO code of the country.

supportedDocuments

public var supportedDocuments: [DocumentType] { get }
Example: [DocumentType.DriversLicense, DocumentType.IDCard, DocumentType.Passport]
Returns the document types that we support for the specified country.

See also

Where this is used