public abstract class Region
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Class and Description |
---|---|
static class |
Region.Event
Events that can occur for a
Region (enter and exit) |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
attributes |
protected boolean |
enterAnalyticsEnabled |
protected boolean |
exitAnalyticsEnabled |
protected double |
latitude |
protected static java.lang.String |
LOCATION_PROVIDER |
protected double |
longitude |
protected java.lang.String |
name |
protected long |
placeId |
protected int |
schemaVersion |
protected java.lang.String |
type |
protected java.lang.String |
uniqueId |
Constructor and Description |
---|
Region() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
Get the attributes associated with this region.
|
double |
getLatitude()
Get the latitude.
|
double |
getLongitude()
Get the longitude.
|
java.lang.String |
getName()
Get the region name.
|
android.location.Location |
getOriginLocation()
Get the origin of this region as an android Location object.
|
protected long |
getPlaceId()
Get the region place ID
|
protected int |
getSchemaVersion() |
java.lang.String |
getType()
Get the region type.
|
java.lang.String |
getUniqueId()
Get the region unique ID
|
int |
hashCode() |
protected boolean |
isEnterAnalyticsEnabled() |
protected boolean |
isExitAnalyticsEnabled() |
protected java.util.Map<java.lang.String,java.lang.String> |
readStringMap(android.os.Parcel in) |
protected void |
setEnterAnalyticsEnabled(boolean enterAnalyticsEnabled) |
protected void |
setExitAnalyticsEnabled(boolean exitAnalyticsEnabled) |
protected void |
setLatitude(double latitude) |
protected void |
setLongitude(double longitude) |
protected void |
setName(java.lang.String name) |
protected void |
setSchemaVersion(int schemaVersion) |
protected void |
writeStringMap(android.os.Parcel dest,
java.util.Map<java.lang.String,java.lang.String> map) |
protected static final java.lang.String LOCATION_PROVIDER
protected long placeId
protected java.lang.String uniqueId
protected double latitude
protected double longitude
protected java.lang.String name
protected java.lang.String type
protected boolean enterAnalyticsEnabled
protected boolean exitAnalyticsEnabled
protected int schemaVersion
protected java.util.Map<java.lang.String,java.lang.String> attributes
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
protected long getPlaceId()
public java.lang.String getUniqueId()
public double getLatitude()
protected void setLatitude(double latitude)
public double getLongitude()
protected void setLongitude(double longitude)
public java.lang.String getName()
protected void setName(java.lang.String name)
public java.lang.String getType()
public java.util.Map<java.lang.String,java.lang.String> getAttributes()
@NonNull public android.location.Location getOriginLocation()
protected boolean isEnterAnalyticsEnabled()
protected boolean isExitAnalyticsEnabled()
protected void setEnterAnalyticsEnabled(boolean enterAnalyticsEnabled)
protected void setExitAnalyticsEnabled(boolean exitAnalyticsEnabled)
protected int getSchemaVersion()
protected void setSchemaVersion(int schemaVersion)
@NonNull protected java.util.Map<java.lang.String,java.lang.String> readStringMap(@NonNull android.os.Parcel in)
protected void writeStringMap(@NonNull android.os.Parcel dest, @NonNull java.util.Map<java.lang.String,java.lang.String> map)