Package com.indooratlas.android.sdk
Class IARegion
- java.lang.Object
-
- com.indooratlas.android.sdk.IARegion
-
- All Implemented Interfaces:
Parcelable
public class IARegion extends Object implements Parcelable
A data object describing a typed region in IndoorAtlas namespace. Each
IALocation
update refers to aIARegion
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
IARegion.Listener
Used for receiving notifications about region changes.-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<IARegion>
CREATOR
static int
TYPE_FLOOR_PLAN
static int
TYPE_UNKNOWN
static int
TYPE_VENUE
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
describeContents()
boolean
equals(Object o)
IAFloorPlan
getFloorPlan()
Return the floor plan metadata.String
getId()
Return the id of the region.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()
String
toString()
void
writeToParcel(Parcel dest, int flags)
-
-
-
Field Detail
-
TYPE_UNKNOWN
public static final int TYPE_UNKNOWN
- See Also:
- Constant Field Values
-
TYPE_FLOOR_PLAN
public static final int TYPE_FLOOR_PLAN
- See Also:
- Constant Field Values
-
TYPE_VENUE
public static final int TYPE_VENUE
- See Also:
- Constant Field Values
-
CREATOR
public static final Parcelable.Creator<IARegion> CREATOR
-
-
Constructor Detail
-
IARegion
public IARegion(int regionType, long timestamp, String regionId, String regionName, IAVenue venue, IAFloorPlan floorPlan)
-
IARegion
protected IARegion(Parcel in)
-
-
Method Detail
-
getType
public int getType()
Returns the type of the region. SeeIARegion
for possible values defined asTYPE_XXX
.
-
getName
public String getName()
Returns the name of the region. This is the name of the venue or floor plan.- See Also:
getType()
-
getTimestamp
public long getTimestamp()
Unix timestamp in milliseconds, i.e. time since Jan 1st 1970, 00:00 UTC. This value is set to the time when the region is received from the service during positioning but may be zero when this object is create manually.
-
getVenue
public IAVenue getVenue()
Return the venue metadata. This will benull
if this region represents a floor plan or ifIALocationManager.setLocation(com.indooratlas.android.sdk.IALocation)
has been called with explicit region IDs.- Since:
- SDK 2.9
-
getFloorPlan
public IAFloorPlan getFloorPlan()
Return the floor plan metadata. This will benull
if this region represents a venue or ifIALocationManager.setLocation(com.indooratlas.android.sdk.IALocation)
has been called with explicit region IDs.- Since:
- SDK 2.9
-
writeToParcel
public void writeToParcel(Parcel dest, int flags)
- Specified by:
writeToParcel
in interfaceParcelable
-
describeContents
public int describeContents()
- Specified by:
describeContents
in interfaceParcelable
-
-