public class IARegion
extends java.lang.Object
implements android.os.Parcelable
A data object describing a typed region in IndoorAtlas namespace. Each IALocation
update refers to a IARegion
.
Modifier and Type | Class and Description |
---|---|
static interface |
IARegion.Listener
Used for receiving notifications about region changes.
|
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<IARegion> |
CREATOR |
static int |
TYPE_FLOOR_PLAN |
static int |
TYPE_UNKNOWN |
static int |
TYPE_VENUE |
Modifier | Constructor and Description |
---|---|
|
IARegion(int regionType,
long timestamp,
java.lang.String regionId,
java.lang.String regionName,
IAVenue venue,
IAFloorPlan floorPlan) |
protected |
IARegion(android.os.Parcel in) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
IAFloorPlan |
getFloorPlan()
Return the floor plan metadata.
|
java.lang.String |
getId()
Return the id of the region.
|
java.lang.String |
getName()
Returns the name of the region.
|
long |
getTimestamp()
Unix timestamp in milliseconds, i.e.
|
int |
getType()
Returns the type of the region.
|
IAVenue |
getVenue()
Return the venue metadata.
|
int |
hashCode() |
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final int TYPE_UNKNOWN
public static final int TYPE_FLOOR_PLAN
public static final int TYPE_VENUE
public static final android.os.Parcelable.Creator<IARegion> CREATOR
public IARegion(int regionType, long timestamp, java.lang.String regionId, java.lang.String regionName, IAVenue venue, IAFloorPlan floorPlan)
protected IARegion(android.os.Parcel in)
public int getType()
IARegion
for possible values defined as TYPE_XXX
.public java.lang.String getId()
getType()
public java.lang.String getName()
getType()
public long getTimestamp()
public IAVenue getVenue()
null
if this region represents a
floor plan or if IALocationManager.setLocation(com.indooratlas.android.sdk.IALocation)
has been called with explicit region
IDs.public IAFloorPlan getFloorPlan()
null
if this region represents
a venue or if IALocationManager.setLocation(com.indooratlas.android.sdk.IALocation)
has been called with explicit region
IDs.public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
public int describeContents()
describeContents
in interface android.os.Parcelable