FileDocCategorySizeDatePackage
GeocoderParams.javaAPI DocAndroid 5.1 API2835Thu Mar 12 22:22:30 GMT 2015android.location

GeocoderParams

public class GeocoderParams extends Object implements android.os.Parcelable
This class contains extra parameters to pass to an IGeocodeProvider implementation from the Geocoder class. Currently this contains the language, country and variant information from the Geocoder's locale as well as the Geocoder client's package name for geocoder server logging. This information is kept in a separate class to allow for future expansion of the IGeocodeProvider interface.
hide

Fields Summary
private Locale
mLocale
private String
mPackageName
public static final Parcelable.Creator
CREATOR
Constructors Summary
private GeocoderParams()

    
public GeocoderParams(android.content.Context context, Locale locale)
This object is only constructed by the Geocoder class

hide

        mLocale = locale;
        mPackageName = context.getPackageName();
    
Methods Summary
public intdescribeContents()


       
        return 0;
    
public java.lang.StringgetClientPackage()
returns the package name of the Geocoder's client

        return mPackageName;
    
public java.util.LocalegetLocale()
returns the Geocoder's locale

        return mLocale;
    
public voidwriteToParcel(android.os.Parcel parcel, int flags)

        parcel.writeString(mLocale.getLanguage());
        parcel.writeString(mLocale.getCountry());
        parcel.writeString(mLocale.getVariant());
        parcel.writeString(mPackageName);