public class GeoFenceAlerting
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
GeoFenceAlerting.Alert
Container for alert details
|
Constructor and Description |
---|
GeoFenceAlerting() |
Modifier and Type | Method and Description |
---|---|
void |
alert(GeoFenceMonitor monitor,
java.util.List<GeoFenceAlerting.Alert> items,
boolean bAutoDismiss) |
void |
dismiss(GeoFenceMonitor monitor)
Removes a monitor from the alerting mechanism.
|
boolean |
dismiss(GeoFenceMonitor monitor,
boolean bStopMonitoring)
Dismiss the alerts for specified monitor, optionally quit monitoring those alerts/items
|
boolean |
dismiss(GeoFenceMonitor monitor,
GeoFenceAlerting.Alert alert,
boolean bStopMonitoring)
Dismiss a specific alert for a given monitor
|
boolean |
dismiss(GeoFenceMonitor monitor,
PointMapItem item,
boolean bStopMonitoring)
Dismiss the alert, optionally quit monitoring
|
void |
dismissAll()
Cleans up the current ongoing alerts.
|
void |
dispose() |
int |
getAlertCount() |
java.util.Map<GeoFenceMonitor,java.util.List<GeoFenceAlerting.Alert>> |
getAlerts()
Get list of ongoing alerts
|
java.util.List<GeoFenceAlerting.Alert> |
getAlerts(java.lang.String mapItemUID)
Get list of ongoing alerts for monitor associated with the specified Shape Map Item UID
|
public void dispose()
public void alert(GeoFenceMonitor monitor, java.util.List<GeoFenceAlerting.Alert> items, boolean bAutoDismiss)
public void dismissAll()
public void dismiss(GeoFenceMonitor monitor)
public boolean dismiss(GeoFenceMonitor monitor, boolean bStopMonitoring)
monitor
- the monitor to usebStopMonitoring
- if the monitor also needs to stop monitoringpublic boolean dismiss(GeoFenceMonitor monitor, GeoFenceAlerting.Alert alert, boolean bStopMonitoring)
monitor
- Monitoralert
- AlertbStopMonitoring
- True to stop monitoring the alert's itempublic boolean dismiss(GeoFenceMonitor monitor, PointMapItem item, boolean bStopMonitoring)
monitor
- the monitor associated with the alert.item
- the item associated with the alertbStopMonitoring
- if the monitoring should stop when the alert is dismissedpublic int getAlertCount()
public java.util.Map<GeoFenceMonitor,java.util.List<GeoFenceAlerting.Alert>> getAlerts()
public java.util.List<GeoFenceAlerting.Alert> getAlerts(java.lang.String mapItemUID)
mapItemUID
- find an ongoing alert for a specific map item.