public abstract class RegionDecorator
extends java.lang.Object
Constructor and Description |
---|
RegionDecorator() |
Modifier and Type | Method and Description |
---|---|
boolean |
didJustExit(long currentTimeMillis,
long expiration)
Checks if device had just exited the region.
|
abstract java.lang.String |
getRegionIdentifier()
Returns unique identifier of werapped
Region objects; |
boolean |
isInside(long currentTimeMillis,
long expiration) |
boolean |
markAsSeen(long currentTimeMillis)
Marks current region as seen and checks if user entered this region.
|
public boolean markAsSeen(long currentTimeMillis)
currentTimeMillis
- Current time in millis when region was seen.public boolean isInside(long currentTimeMillis, long expiration)
currentTimeMillis
- Current time in millis.expiration
- public boolean didJustExit(long currentTimeMillis, long expiration)
currentTimeMillis
- Current time in millis.expiration
- public abstract java.lang.String getRegionIdentifier()
Region
objects;