public class
CountrySpecification
extends Object
implements SafeParcelable
implements SafeParcelable
Parcelable representing a country.
Inherited Constant Summary
Field Summary
public static final Creator<CountrySpecification> | CREATOR |
Public Constructor Summary
CountrySpecification(String countryCode)
Constructs a country specification based on a country code.
|
Public Method Summary
String | |
int | |
void |
writeToParcel(Parcel dest, int flags)
|
Inherited Method Summary
Fields
Public Constructors
public CountrySpecification (String countryCode)
Constructs a country specification based on a country code.
Country code should follow the ISO 3166-2 format (ex: "US", "CA", "JP"). Providing a
country code that is not supported or malformed will return
ERROR_CODE_INVALID_PARAMETERS
.
Parameters
countryCode | an ISO 3166-2 formatted country code |
---|