public class

CountrySpecification

extends Object
implements Parcelable
java.lang.Object
   ↳ com.google.android.gms.identity.intents.model.CountrySpecification

Class Overview

Parcelable representing a country. Used for restricting which addresses a user can choose to share.

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
int describeContents()
String getCountryCode()
int getVersionCode()
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").

Parameters
countryCode an ISO 3166-2 formatted country code

Public Methods

public int describeContents ()

public String getCountryCode ()

Returns
  • the 2-letter ISO 3166-2 country code (ex: "US" or "CA").

public int getVersionCode ()

public void writeToParcel (Parcel dest, int flags)