Package com.geouniq.android
Class GeoUniq.GeoFence
- java.lang.Object
-
- com.geouniq.android.GeoUniq.GeoFence
-
- Enclosing class:
- GeoUniq
public static class GeoUniq.GeoFence extends java.lang.ObjectRepresents an area that has to be monitored. Instances of this class can be obtained throughGeoUniq.GeoFence.Builder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGeoUniq.GeoFence.BuilderBuilder class to obtainGeoUniq.GeoFenceobjectsstatic classGeoUniq.GeoFence.StatusModels the status of the device with respect to aGeofence.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeoUniq.CircularAreagetArea()java.lang.StringgetCallbackClass()Returns the callback class set for thisGeoFence.java.util.DategetExpirationDate()Returns the expiration date if set ornullotherwisejava.lang.StringgetId()Allows to obtain the ID of thisGeoFence.
Note that an ID is assigned only when the geofence is actually set throughGeoUniq.setGeoFence(GeoFence), otherwise it will benulljava.util.DategetLastStatusChange()GeoUniq.GeoFence.StatusgetStatus()
-
-
-
Method Detail
-
getId
public java.lang.String getId()
Allows to obtain the ID of thisGeoFence.
Note that an ID is assigned only when the geofence is actually set throughGeoUniq.setGeoFence(GeoFence), otherwise it will benull- Returns:
- the Monitoring ID or
nullif thisGeoFencehas not be set.
-
getArea
public GeoUniq.CircularArea getArea()
- Returns:
- the
GeoUniq.CircularAreawhich thisGeoFencerefers to. - See Also:
GeoUniq.GeoFence.Builder.setArea(GeoUniq.CircularArea)
-
getCallbackClass
public java.lang.String getCallbackClass()
Returns the callback class set for thisGeoFence.- Returns:
- the name of the callback class
- See Also:
GeoUniq.GeoFence.Builder.setCallbackClass(Class)
-
getStatus
public GeoUniq.GeoFence.Status getStatus()
- Returns:
- the current status of this
GeoFence. - See Also:
GeoUniq.GeoFence.Status
-
getLastStatusChange
public java.util.Date getLastStatusChange()
- Returns:
- a
Datecorresponding to the the last time the status of thisGeofencechanged.
-
getExpirationDate
public java.util.Date getExpirationDate()
Returns the expiration date if set ornullotherwise- Returns:
- the expiration date
- See Also:
GeoUniq.GeoFence.Builder.setExpirationDate(Date)
-
-