public class

CountrySpecification

extends Object
implements Parcelable
java.lang.Object
   ↳ com.google.android.gms.wallet.CountrySpecification

Class Overview

Parcelable representing a country.

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<CountrySpecification> CREATOR
Public Constructors
CountrySpecification(String countryCode)
Constructs a country specification based on a country code.
Public Methods
String getCountryCode()
void writeToParcel(Parcel dest, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public static final Creator<CountrySpecification> CREATOR

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 String: an ISO 3166-2 formatted country code

Public Methods

public String getCountryCode ()

Returns
String the country code for this specification.

public void writeToParcel (Parcel dest, int flags)

Parameters
dest Parcel
flags int