public class GeoFenceDatabase
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
GeoFenceDatabase.InsertOrUpdateResult |
Modifier and Type | Method and Description |
---|---|
void |
clearAll() |
int |
getCount() |
GeoFence |
getGeoFence(java.lang.String uid,
boolean isTracking) |
java.util.List<GeoFence> |
getGeoFences(GeoFenceManager manager) |
boolean |
hasFence(java.lang.String uid)
Returns true if the GeoFenceDatabase contains the fence.
|
GeoFenceDatabase.InsertOrUpdateResult |
insertOrUpdate(GeoFence fence)
Insert or update Geo Fence in DB
|
static GeoFenceDatabase |
instance() |
void |
remove(java.lang.String uid) |
public static GeoFenceDatabase instance()
public int getCount()
public java.util.List<GeoFence> getGeoFences(GeoFenceManager manager)
public boolean hasFence(java.lang.String uid)
uid
- is the unique identifier that describes both the item and the
contained fence.public GeoFence getGeoFence(java.lang.String uid, boolean isTracking)
public GeoFenceDatabase.InsertOrUpdateResult insertOrUpdate(GeoFence fence)
fence
- the geofence to insert or updatepublic void remove(java.lang.String uid)
public void clearAll()