|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface GeofenceListener
A listener interface for geofencing notifications.
The listener is notified when the device is on the perimeter, or has entered
or exited the perimeter of the monitored areea. Applications must implement
the following GeofenceListener callbacks to receive event notifications.
Geofence| Method Summary | ||
|---|---|---|
void |
errorOccurred(int errorCode)
Notifies the listener when an error occurs during the monitoring of an area. |
|
void |
perimeterEntered(String tag,
BlackBerryLocation location)
Notifies the listener when the device is on the perimeter of, or has entered a monitored area. |
|
void |
perimeterExited(String tag,
BlackBerryLocation location)
Notifies the listener when the device exited a monitored area. |
|
| Method Detail |
|---|
void perimeterEntered(String tag,
BlackBerryLocation location)
tag - A string associated with a previously defined area.location - The current location of the device.
void perimeterExited(String tag,
BlackBerryLocation location)
tag - A string associated with a previously defined area.location - The current location of the device.void errorOccurred(int errorCode)
errorCode - The error code can be one of the following:
Geofence.NO_ERROR
Geofence.LOCATION_DISALLOWED_BY_IT_POLICY
Geofence.LOCATION_DISALLOWED_BY_USER
Geofence#TEMPORARILY_UNAVAILBLE_AUTO_RESTART
Geofence.OUT_OF_SERVICE
Geofence.LOW_BATTERY
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal