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
IALocationupdate refers to aIARegion.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceIARegion.ListenerUsed 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>CREATORstatic intTYPE_FLOOR_PLANstatic intTYPE_UNKNOWNstatic intTYPE_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 intdescribeContents()booleanequals(Object o)IAFloorPlangetFloorPlan()Return the floor plan metadata.StringgetId()Return the id of the region.StringgetName()Returns the name of the region.longgetTimestamp()Unix timestamp in milliseconds, i.e.intgetType()Returns the type of the region.IAVenuegetVenue()Return the venue metadata.inthashCode()StringtoString()voidwriteToParcel(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. SeeIARegionfor 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 benullif this region represents a floor plan.- Since:
- SDK 2.9
-
getFloorPlan
public IAFloorPlan getFloorPlan()
Return the floor plan metadata. This will benullif this region represents a venue.- Since:
- SDK 2.9
-
writeToParcel
public void writeToParcel(Parcel dest, int flags)
- Specified by:
writeToParcelin interfaceParcelable
-
describeContents
public int describeContents()
- Specified by:
describeContentsin interfaceParcelable
-
-