public class IARegion extends Object implements 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 when region has changed.
|
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<IARegion> |
CREATOR |
static int |
TYPE_FLOOR_PLAN |
static int |
TYPE_UNKNOWN |
static int |
TYPE_VENUE |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
IARegion(int regionType,
long timestamp,
String regionId) |
protected |
IARegion(Parcel in) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(Object o) |
static IARegion |
floorPlan(String floorPlanId)
Returns new region of type
TYPE_FLOOR_PLAN with given floorPlanId . |
String |
getId()
Returns regions id.
|
long |
getTimestamp()
Unix timestamp in milliseconds, i.e.
|
int |
getType()
Returns region's type.
|
int |
hashCode() |
String |
toString() |
static IARegion |
unknown()
Returns new region of type
TYPE_UNKNOWN . |
static IARegion |
venue(String venueId)
Returns new region of type
TYPE_VENUE with given venueId . |
void |
writeToParcel(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 Parcelable.Creator<IARegion> CREATOR
public IARegion(int regionType, long timestamp, String regionId)
protected IARegion(Parcel in)
public static IARegion unknown()
TYPE_UNKNOWN
.public static IARegion floorPlan(String floorPlanId)
TYPE_FLOOR_PLAN
with given floorPlanId
.public static IARegion venue(String venueId)
TYPE_VENUE
with given venueId
.public int getType()
IARegion
for possible values defined as TYPE_XXX
.public String getId()
getType()
public long getTimestamp()
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
public int describeContents()
describeContents
in interface Parcelable