Package com.geouniq.android
Class GeoUniq.GeoFence
java.lang.Object
com.geouniq.android.GeoUniq.GeoFence
- Enclosing class:
- GeoUniq
Represents an area that has to be monitored.
Instances of this class can be obtained through
GeoUniq.GeoFence.Builder-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class to obtainGeoUniq.GeoFenceobjectsstatic enumModels the status of the device with respect to aGeofence. -
Method Summary
Modifier and TypeMethodDescriptiongetArea()Returns the callback class set for thisGeoFence.Returns the expiration date if set ornullotherwisegetId()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
-
Method Details
-
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
- Returns:
- the
GeoUniq.CircularAreawhich thisGeoFencerefers to. - See Also:
-
getCallbackClass
Returns the callback class set for thisGeoFence.- Returns:
- the name of the callback class
- See Also:
-
getStatus
- Returns:
- the current status of this
GeoFence. - See Also:
-
getLastStatusChange
- Returns:
- a
Datecorresponding to the the last time the status of thisGeofencechanged.
-
getExpirationDate
Returns the expiration date if set ornullotherwise- Returns:
- the expiration date
- See Also:
-