Skip to main content
Geofence API functions are used to add, remove, modify, pause, or resume location geofencing sessions. Invoke the geofence APIs after invoking CapabilitiesCb, which is registered with the LocationClient constructor.

addGeofences

Adds any number of geofences.
  • The geofenceBreachCallback delivers the status of each geofence according to the geofence parameter.
  • If this API is called when any previous position/batching/geofence session hasn’t yet received responseCallback, then this API receives an error code of LOCATION_RESPONSE_REQUEST_ALREADY_IN_PROGRESS via its responseCallback.
Syntax
Parameters Response None

removeGeofences

Removes any number of geofences. Syntax
Parameters Response None

modifyGeofences

Modifies any number of geofences. Syntax
Parameters Response None

pauseGeofences

Pauses any number of geofences similar to removeGeofences, however, they can be resumed anytime. Syntax
Parameters Response None

resumeGeofences

Resumes any number of geofences that are currently paused. Syntax
Parameters Response None