net.rim.device.api.location
Interface GeofenceListener


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.

See Also:
Geofence
Since:
BlackBerry API 7.0.0

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

perimeterEntered

void perimeterEntered(String tag,
                      BlackBerryLocation location)
Notifies the listener when the device is on the perimeter of, or has entered a monitored area.

Parameters:
tag - A string associated with a previously defined area.
location - The current location of the device.
Since:
BlackBerry API 7.0.0

perimeterExited

void perimeterExited(String tag,
                     BlackBerryLocation location)
Notifies the listener when the device exited a monitored area.

Parameters:
tag - A string associated with a previously defined area.
location - The current location of the device.
Since:
BlackBerry API 7.0.0

errorOccurred

void errorOccurred(int errorCode)
Notifies the listener when an error occurs during the monitoring of an area.

Parameters:
errorCode - The error code can be one of the following:
Since:
BlackBerry API 7.0.0





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