public class GeoFenceComponent extends AbstractMapComponent
Modifier and Type | Class and Description |
---|---|
static interface |
GeoFenceComponent.GeoFenceListener
Listen for updates to geo fences
|
AbstractMapComponent.OnAllComponentsCreatedCallback
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BREACH_MARKER_TYPE |
Constructor and Description |
---|
GeoFenceComponent() |
Modifier and Type | Method and Description |
---|---|
void |
addGeoFenceChangedListener(GeoFenceComponent.GeoFenceListener listener)
Add a groupList listener
|
void |
dispatch(GeoFence fence,
MapItem item) |
void |
dispatchGeoFenceAdded(GeoFence fence,
MapItem item)
Invoked when a GeoFence is added
|
void |
dispatchGeoFenceChanged(GeoFence fence,
MapItem item)
Invoked when a GeoFence is updated
|
void |
dispatchGeoFenceRemoved(java.lang.String mapItemUid)
Invoked when a GeoFence is removed
|
GeoFenceDatabase |
getDatabase() |
static GeoFenceComponent |
getInstance() |
GeoFenceManager |
getManager() |
static MapGroup |
getMapGroup() |
MapView |
getMapView() |
void |
notify(MapItem item) |
void |
onCreate(android.content.Context context,
android.content.Intent intent,
MapView view)
Called when the component is first created
|
protected void |
onDestroyImpl(android.content.Context context,
MapView view)
This method is invoked as a subset of the onDestroy call as part of the
MapComponent lifecycle.
|
void |
removeGeoFenceChangedListener(GeoFenceComponent.GeoFenceListener listener)
Remove a groupList listener
|
addOverlay, onConfigurationChanged, onCreateOptionsMenu, onDestroy, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPrepareOptionsMenu, onResume, onStart, onStop, registerReceiver, removeOverlay, setOnAllComponentsCreatedCallback, unregisterReceiver
public static final java.lang.String BREACH_MARKER_TYPE
public void onCreate(android.content.Context context, android.content.Intent intent, MapView view)
MapComponent
context
- the context of the component (the MapActivity instance)intent
- the intent of the MapActivityview
- the main MapViewpublic static GeoFenceComponent getInstance()
public static MapGroup getMapGroup()
public GeoFenceDatabase getDatabase()
public MapView getMapView()
protected void onDestroyImpl(android.content.Context context, MapView view)
AbstractMapComponent
onDestroyImpl
in class AbstractMapComponent
public GeoFenceManager getManager()
public final void addGeoFenceChangedListener(GeoFenceComponent.GeoFenceListener listener)
listener
- the listenerpublic final void removeGeoFenceChangedListener(GeoFenceComponent.GeoFenceListener listener)
listener
- the listenerpublic void notify(MapItem item)
public final void dispatchGeoFenceAdded(GeoFence fence, MapItem item)
fence
- the fence that is addeditem
- the map itempublic final void dispatchGeoFenceRemoved(java.lang.String mapItemUid)
mapItemUid
- the uid for the map item that is associated with the geofence