GeocoderParamspublic class GeocoderParams extends Object implements android.os.ParcelableThis 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. |
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
mLocale = locale;
mPackageName = context.getPackageName();
|
Methods Summary |
---|
public int | describeContents()
return 0;
| public java.lang.String | getClientPackage()returns the package name of the Geocoder's client
return mPackageName;
| public java.util.Locale | getLocale()returns the Geocoder's locale
return mLocale;
| public void | writeToParcel(android.os.Parcel parcel, int flags)
parcel.writeString(mLocale.getLanguage());
parcel.writeString(mLocale.getCountry());
parcel.writeString(mLocale.getVariant());
parcel.writeString(mPackageName);
|
|